270 likes | 623 Views
SESSION CODE: ASI201. Intro to Workflow Services and Windows Server AppFabric. Matt Milner Instructor Pluralsight. Overview. Declarative programming with WF4 Creating declarative workflow services Understanding Windows Server AppFabric
E N D
SESSION CODE: ASI201 Intro to Workflow Servicesand Windows Server AppFabric Matt Milner Instructor Pluralsight
Overview • Declarative programming with WF4 • Creating declarative workflow services • Understanding Windows Server AppFabric • Deploying and configuring services in Windows Server AppFabric • Managing services with Windows Server AppFabric
What is Windows Workflow Foundation? • A framework for declarative programming • Tools for creating program definitions • A runtime for executing program logic
Declarative workflow services • Services (WCF) extend the reach of workflows • WF = declarative service authoring and composition • Write services as workflows • Consume services from workflows
Benefits of declarative service authoring • Declarative flow control – parallel / async / compensation • Automatic state management • Tracking / visibility • Ideal for: • Long running, multi-interaction processes (e.g. approvals, applications) • Coordinating multiple interactions (e.g. aggregation, composition)
Workflow services in WF 4 • Messaging activities • Model communications (e.g. receive, reply, send) • WorkflowServiceHost • Customized WCF host for workflow services • Integrates WCF with WF • Message correlation • Enables long running, multi-exchange messaging
Content based correlation 1. Start Task123 Application 2. Store Task123 3. Send Submit TaskTaskID= 123 Task789 Task456 Task123 4. Receive 5. Lookup Task123 Task Complete TaskID= 123 6. Task123 Complete Application State
Windows Server AppFabric • Most WCF services are hosted in IIS / WAS • IIS tooling designed for managing web applications • Windows Server AppFabric = service management • Simplified configuration of services and workflows • Operations dashboard • Workflow service management • GUI and PowerShell tools
AppFabric hosting architecture Tools System Center Operations Manager IIS Manager PowerShell Visual Studio Runtime services Workflow management service Runtime databases Monitoring State .NET Fx Persistence Monitoring Lock Retry Durable Timer WCF Tracking WF Tracking Routing Service SQL provider WCF message logging IIS / Windows
AppFabric deployment and configuration • Simplified configuration and deployment • Default connection strings for persistence and tracking enables xcopy deploy • Many WCF configuration settings surfaced in API and UI • Graphical configuration window • Persistence, diagnostics, WCF throttles, workflow host settings • Easier operations management • Switch tracing levels through API and UI as needed • Enable more detailed tracking of WF events at runtime
Demo: Deploying and configuring services Simplified configuration of services in IIS
AppFabric operations dashboard • Health overview provides information about services • Exceptions / completed call count / throttling limits reached • Workflow instances (active / suspended) • Recent history – activations / failures • Access to workflow information • List of persisted workflows • Tracked workflow data and events • Tools are based on tool scope (site / application / service) • Custom queries also possible
Workflow instance management • Workflow management service • Windows NT Service running in the background • Monitors persistence store for workflows with work to be done • Ready to run, expired timers, abandoned instances • IIS tooling enables manual service management • Find suspended instance easily • Suspend, resume, or terminate instances
Instance recovery Id=456 Id=789 Id=123 WMS WMS WMS State Id=789 Id=456 Id=123 Id=123
PowerShell support • PowerShell is THE modern scripting environment on Windows • Most commands and data available as PowerShell cmdlets • Get and set configuration settings • Enable application messaging • Instance management – resume, suspend, terminate • Combine with other web modules • Web Administration PowerShell module for managing IIS • MSDeploy – synch or deploy local or remote services
Demo: Managing services Operational management of services
Summary • WF provides tools for writing declarative programs and services • AppFabric gives you the tools to configure and manage services • Use IIS Manager or PowerShell • Provides additional services beyond .NET Framework • Scalable, manageable solution for hosting services on Windows
Required Slide Speakers, please list the Breakout Sessions, Interactive Sessions, Labs and Demo Stations that are related to your session. Related Content • Breakout Sessions (session codes and titles) • ASI203: Undersanding the Microsoft Application Server • Windows Server AppFabric Caching: What it is and when you should use it • Interactive Sessions • ASI103-INT | Windows Server AppFabric Application Lifecycle in the Real World • Hands-on Labs • ASI04-HOL: Getting Started with Workflows, Services and Windows Server AppFabric
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. ASI Track Resources • Website – www.Microsoft.com/WindowsAzure/AppFabric • MSDN Developer Center – http://msdn.microsoft.com/en-us/azure/netservices.aspx • Blog – http://blogs.msdn.com/b/netservices/ • Twitter – http://twitter.com/azure_appfabric • Website – http://www.microsoft.com/biztalk/ • Website – http://msdn.microsoft.com/biztalk/ • Blog – http://blogs.msdn.com/biztalk_server_team_blog • Blog – http://www.biztalkblogs.com/ • Application Infrastructure Virtual Launch Event – www.appinfrastructure.com • AppFabric on Microsoft.com – http://www.microsoft.com/appfabric • Developer Center – http://msdn.microsoft.com/appfabric
Required Slide Resources Learning • Sessions On-Demand & Community • Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers • http://microsoft.com/technet • http://microsoft.com/msdn
Required Slide Complete an evaluation on CommNet and enter to win!
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registrationJoin us in Atlanta next year
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.