1 / 28

Workflow Services and Windows Server AppFabric (formerly codename “Dublin”)

FT14. Workflow Services and Windows Server AppFabric (formerly codename “Dublin”). Mark Fussell Program Manager Microsoft Corporation. Challenges. Work is increasingly distributed “I want the benefits of service-orientation and help with managing the complexity”

mili
Download Presentation

Workflow Services and Windows Server AppFabric (formerly codename “Dublin”)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FT14 Workflow Services andWindows Server AppFabric(formerly codename “Dublin”) Mark Fussell Program Manager Microsoft Corporation

  2. Challenges • Work is increasingly distributed • “I want the benefits of service-orientation and help with managing the complexity” • This leads to complex code for coordination • “I want to focus on solving the business problem” • Configuring an environment to deploy and run services is difficult • “I want to get my WF and WCF services up and running” • Minimal management and visibility into the operation of services in production • “I want to easily monitor and control running WF and WCF services”

  3. WCF and WF in .NET 4 Workflow Service Host Management Endpoint Persistence (Instances) Persistence Behavior Activity Library message Receive Monitoring Send Tracking Behavior ...

  4. Windows Server AppFabric(formerly codename “Dublin”) Evolution of WAS/IIS and Windows Application Server role to run and manage WCF and WF services Ships as part of 2010Wave IIS Manager Modules Windows Server Windows Server AppFabric Management Tools PowerShell Services Workflows Hosting Persistence Monitoring Caching .NET Framework IIS/WAS Runtime Databases Persistence Monitoring

  5. Building and Managing Workflow Services with Visual Studio 2010and Windows Server AppFabric demo

  6. Coordination of WorkAsynchronous Messaging Coordinate multiple service calls Best Price Workflow Service Get Price Supplier One Service Add/Remove Item Calculate Best Price Get Price Supplier Two Service Purchase Service

  7. Composition and Coordination of Services demo

  8. Context Based Correlation Content Based Correlation <-New in .NET 4 Message CorrelationThe mechanism for relating messages to each other or to application instance state Persistence DB (Instances) Workflow Service create correlation key3 2. Save (key 3) 1. Start Receive 3. Send (key 3) Send Key Instance 123 | key 1 123 | data 5. Load (key 3) 4. Receive (key 3) 456 | data 456 | key 2 Receive 789 | data 789 | key 3 A11 | key 4 A11 | data 6.Complete

  9. Message CorrelationThe mechanism for relating messages to each other or to application instance state Content Based Correlation Persistence DB (Instances) create correlation 1. Add item (userId 3) 2. Save (userId 3) Receive 3. View items (userId 3) 4. Load (userId 3) Receive Key Instance 123 | userid 1 123 | data 5. Best Price (userId 3) 6. Load (userId 3) 456 | data 456 | userid 2 Receive 789 | data 789 | userid 3 A11 | userid4 A11 | data

  10. Message Correlation demo

  11. Monitoring IIS Manager Modules Windows Server Windows Server AppFabric Management Tools PowerShell Services Workflows Hosting Persistence Monitoring Caching .NET Framework IIS/WAS Runtime Databases Persistence Monitoring

  12. Monitoring • Consistent WCF and WF instrumentation integrated with Event Tracing for Windows (ETW) • WCF trace events • WF tracking events • Improved performance means less impact on your applications • Visibility into the operation of services • Scenarios • Health monitoring – “How well is my app running?” • Troubleshooting – “What has failed with my app?”

  13. Monitoring Windows Server AppFabric Monitoring Tools Workflow Service WCF Trace ETW Tracking Participant Monitoring Database Event Collector Service Tracking Profile • Event Collector Service • A Windows Service installed with the Windows Server AppFabric • Collects WCF and WF instrumentation events into the Monitoring DB

  14. Health Monitoring and Troubleshooting Workflow Services demo

  15. Persistence IIS Manager Modules Windows Server Windows Server AppFabric Management Tools PowerShell Services Workflows Hosting Persistence Monitoring Caching .NET Framework IIS/WAS Runtime Databases Persistence Monitoring

  16. 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

  17. Persistence • 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 Windows Server AppFabric Workflow Service Management Endpoint Workflow Management Service Persistence DB Instance 123 | data 456 | data 789 | data 011 | data

  18. Workflow Service User Model • Suspended • Reason: • Exception code • Exception text Running Active - In Memory Idle – Persisted Suspend Resume • Successful Completion • Terminate • Cancel • Terminate • Cancel Completed • Operator Commands: • Suspend, Resume, Terminate and Cancel

  19. Instance Availability and Control of Workflow Services demo

  20. Instance Availability in a Farm Load Balancer Windows Server AppFabric • Windows • Server • AppFabric • Windows • Server • AppFabric Workflow Service Workflow Service Workflow Service Workflow Management Service Workflow Management Service Workflow Management Service Persistence DB Instance 123 | data 456 | data 789 | data 011 | data

  21. 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

  22. Call to Action • Download Visual Studio 2010 and .NET 4 Beta 2 • http://msdn.microsoft.com/vstudio • Download Windows Server AppFabric Beta 1 • http://msdn.microsoft.com/appfabric

  23. Additional Sessions

  24. Q&A

  25. YOUR FEEDBACK IS IMPORTANT TO US! Please fill out session evaluation forms online at MicrosoftPDC.com

  26. Learn More On Channel 9 • Expand your PDC experience through Channel 9 • Explore videos, hands-on labs, sample code and demos through the new Channel 9 training courses channel9.msdn.com/learn Built by Developers for Developers….

More Related