pdc highlights

31

Click here to load reader

Upload: ms-innovation-days

Post on 13-Nov-2014

1.681 views

Category:

Technology


7 download

DESCRIPTION

The Professional Developers Conference (PDC) is the definitive developer event focused on the technical strategy of the Microsoft developer platform. In this session David Glover & Catherine Eibner provide their summary of what was hot to trot at the PDC 2009.

TRANSCRIPT

Page 1: PDC Highlights

PDC Highlights

Dave GloverMicrosoft Australia, Developer Platform Group

[email protected]://blogs.msdn.com/dglover, www.twitter.com/dglover

Catherine EibnerMicrosoft Australia, Developer Platform Group

[email protected]://blogs.msdn.com/ceibner , www.twitter.com/ceibner

Page 2: PDC Highlights

PDC Highlights

Page 3: PDC Highlights

• New in WCF• Windows Server Application Fabric

Page 4: PDC Highlights

New in WCF 4

Page 5: PDC Highlights

New in WCF 4.0

• Improvements to things you do today–Configuration–Monitoring

• New scenarios enabled–Routing–Discovery

Page 6: PDC Highlights

Endpoint Configuration in 3.x

vdir2vdir2

Web.config

Echo.svc

AA BB CC

http://host

vdir2

vdir1

Page 7: PDC Highlights

Web.config

Default Bindings

AA BB CC

vdir2vdir2

Echo.svc

http://host

vdir2

vdir1

Endpoint using BasicHttpBinding picks up default binding configuration from higher in the config hierarchy

<system.serviceModel> <bindings> <basicHttpBinding> <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"/> </basicHttpBinding> </bindings></system.serviceModel>

Page 8: PDC Highlights

Web.config

Default Behaviors

AA BB CC Bv

vdir2vdir2

Echo.svc

http://host

vdir2

vdir1

A Service or Endpoint picks up default behaviors from higher in the config hierarchyWeb.

config

<system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <serviceThrottling maxConcurrentCalls="32"/> </behavior> </serviceBehaviors> </behaviors></system.serviceModel>

Page 9: PDC Highlights

Web.config

Default Behaviors

AA BB CC Bv

http://host

Behaviors from higher in the config hierarchy are merged with behaviors in a local config file

Bv

vdir2vdir2

Echo.svc

vdir2

vdir1

Web.config

<system.serviceModel> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="true"/> </behavior> </serviceBehaviors> </behaviors></system.serviceModel>

Page 10: PDC Highlights

Message Pump as a Service

Scenarios

• Basic Message Routing• Protocol Bridging• Service Aggregation• Versioning• …

Concerns

• Connection State• Security• Delivery Failure• Transactions• …

Message Pump

Routing Service

Page 11: PDC Highlights

Message Routing

Client

TimeService

RoutingService

Echo

IRequestReplyRouter

BasicHttp

http://routinghost/routerAABBCC

Supported Message Exchange Patterns Multicast Interface

Request Reply, Sessionful Request Reply No IRequestReplyRouter

OneWay Yes ISimplexDatagramRouter

Sessionful OneWay Yes ISimplexSessionRouter

Sessionful Duplex Yes IDuplexSessionRouter

Page 12: PDC Highlights

Message Routing

MessageFilter Endpoint

action == http://PDC/Echo Echo

action == http://PDC/GetCurrentTime

TimeService

Client

TimeService

RoutingService

Echo

Filter On MessageFilter

Action ActionMessageFilter

Address header AddressMessageFilter

Address header – longest prefix matching AddressPrefixMessageFilter

Endpoint Name EndpointNameMessageFilter

No Filter – matches everything MatchAllMessageFilter

Logical And of two filters StrictAndMessageFilter

XPath expression XPathMessageFilter

Custom Custom

Page 13: PDC Highlights

Protocol Bridging

Client ServiceRoutingService

BasicHttp Net.TcpSOAP 1.1 SOAP 1.2

Page 14: PDC Highlights

Security

Client ServiceRoutingService

Message sent usingClient Identity

Message sent usingRouting Service IdentityMessage sent usingClient Identity

Impersonation using WindowsIdentityToken

Page 15: PDC Highlights

Error Handling

Client

BackupEcho

Service

RoutingService

EchoService

MessageFilter Endpoint AlternateEndpoints

action == http://PDC/Echo

Echo BackupEchoService

Page 16: PDC Highlights

Discovery• The ability to publish a service’s endpoint

metadata and discover services using well defined criteria

• Design time– Find available services

• Runtime– Reduced Config– Location agility – Dynamic / self healing apps

• 2 Modes – adhoc and managed proxy service• WS-Discovery – Standard interoperable discovery

protocol

Page 17: PDC Highlights

Dallas

• “Data as a Service” • Built on Windows Azure & SQL Azure• Discover Public Data Sources, Explore them &

Use them• Aim is to encourage greater innovation & apps

to be created rapidly• http://www.sqlazureservices.com/

Page 18: PDC Highlights

Power Pivot

• Formerly known as Project “Gemini”• Data Analysis add-in that delivers unmatched

computational power within Excel 2010• http://www.powerpivot.com/

Page 19: PDC Highlights

Pivot

• Live Labs latest experiment – available to trial by invitation

• Pivot is an interaction model for viewing data collections

• Pivot makes it easier to interact with massive amounts of data in ways that are powerful, informative, and fun

• http://www.getpivot.com/

Page 20: PDC Highlights

Windows Server AppFabric

http://www.microsoft.com/windowsserver2008/en/us/app-main.aspx

Download Windows Server AppFabric Beta 1http://msdn.microsoft.com/appfabric

Page 21: PDC Highlights

Workflow Service Host

Persistence(Instances)Persistence(Instances)

MonitoringMonitoring

Activity LibraryActivity Library

Receive

WCF and WF in .NET 4

Send

...

Management Endpoint

Persistence Behavior

Tracking Behavior

Page 22: PDC Highlights

Windows ServerWindows Server

.NET Framework.NET Framework

Windows Server AppFabricWindows Server AppFabric

ServicesServices

Management ToolsManagement Tools

IIS/WASIIS/WAS

WorkflowsWorkflows

Windows Server AppFabric(formerly codename “Dublin”)

Runtime DatabasesRuntime DatabasesPersistence Monitoring

HostingPersistence CachingMonitoring

IIS Manager Modules

PowerShell

> Evolution of WAS/IIS and Windows Application Server role to run and manage WCF and WF services

> Ships as part of 2010 Wave

Page 23: PDC Highlights

Coordination of WorkAsynchronous Messaging

Supplier OneService

Supplier Two Service

Best PriceWorkflow

Service

Add/Remove Item

Calculate Best Price Get Price

Get Price

PurchaseService

Page 24: PDC Highlights

Windows ServerWindows Server

.NET Framework.NET Framework

Windows Server AppFabricWindows Server AppFabric

ServicesServices

Management ToolsManagement Tools

IIS/WASIIS/WAS

WorkflowsWorkflows

Monitoring

Runtime DatabasesRuntime DatabasesPersistence Monitoring

HostingPersistence CachingMonitoring

IIS Manager Modules

PowerShell

Page 25: PDC Highlights

Windows Server AppFabricWindows Server AppFabric

Workflow Service

Monitoring Database

Monitoring Database

Monitoring

Event CollectorService

Monitoring Tools

Monitoring Tools

> Event Collector Service> A Windows Service installed with the Windows Server

AppFabric> Collects WCF and WF instrumentation events into the

Monitoring DB

WCFTrace

Tracking Participant

TrackingProfile

Page 26: PDC Highlights

Windows ServerWindows Server

.NET Framework.NET Framework

Windows Server AppFabricWindows Server AppFabric

ServicesServices

Management ToolsManagement Tools

IIS/WASIIS/WAS

WorkflowsWorkflows

Runtime DatabasesRuntime DatabasesPersistence Monitoring

HostingPersistence CachingMonitoring

IIS Manager Modules

PowerShell

Persistence

Page 27: PDC Highlights

Persistence

• Storing WF Application State• Ensures that durable Workflows can be

recovered and processing resumed• Scenarios– Reliability - Long running workflows– Availability - Recovery when application or machine

crashes– Scalability - A workflow unloads idle instances from

memory; the retry loading of locked instances

Page 28: PDC Highlights

Persistence

Windows Server AppFabric

Windows Server AppFabric

PersistenceDB

Workflow Service

WorkflowManagement

Service

Instance

123 | data

456 | data

789 | data

011 | data

> Workflow Management Service for IIS/WAS > A Windows Service installed with

the Windows Server AppFabric that monitors the Persistence DB

> Instance restart including graceful shutdown

> Activates durable timers> Executes instance control

commands

Management

Endpoint

Page 29: PDC Highlights

Instance Availability in a Farm

Windows Server

AppFabric

Windows Server

AppFabric

Windows Server

AppFabric

Windows Server

AppFabric

Load Balancer

Load Balancer

PersistenceDB

Workflow Service

Workflow Service

WorkflowManagement

Service

WorkflowManagement

Service Windows Server

AppFabric

Windows Server

AppFabric

Workflow Service

WorkflowManagement

Service

Instance

123 | data

456 | data

789 | data

011 | data

Page 30: PDC Highlights

Summary• Workflow is ideally suited for business services• Workflow services handle complex coordination– Composition of services– Message correlation to instances

• The Windows Server AppFabric supports WCF and Workflow services by– Providing runtime databases– Capabilities for monitoring, persistence, hosting and caching– Tooling and scripting to manage and monitor WCF and WF

services

Page 31: PDC Highlights

Silverlight 4 Beta

• New Media Features• Printing• Dragging Files/Desktop interactions• Right Click Support• Webcam & Microphone Support• Multicast/UDP• Rich Text Box Support• Programmatic Clipboard access• Channel 9 Training:

http://channel9.msdn.com/learn/courses/Silverlight4