Docstoc

Workflow Services and Windows Server AppFabric

Document Sample
Workflow Services and Windows Server AppFabric Powered By Docstoc
					Workflow Services and
Windows Server AppFabric
(formerly codename “Dublin”)
Viki Gaziel
CTO, Empowerment Software Solutions
Microsoft Regional Architect
VikiG@ess.org.il
No one should do everything!!
What is the developer Job ?



                         Development
What is the developer Job ?

                         Development


                         Deployment


                         Monitoring


                         Configuration


                         Management
Workflow Services and
Windows Server AppFabric
(formerly codename “Dublin”)
Viki Gaziel
CTO, Empowerment Software Solutions
Microsoft Regional Architect
VikiG@ess.org.il
Agenda
•   WCF + WF > 2
•   Windows Server AppFabric architecture
•   Our first WF service in App Fabric
•   Composition & Coordination
•   Message Correlation
• Monitoring and Persistence
• Q&A
• Summary
 WCF and WF in .NET 4

          Workflow Service Host
                                  Management
                                   Endpoint



                                  Persistence   Persistence
              Activity Library     Behavior
                                                (Instances)
message          Receive

                   Send
                                   Tracking
                     ...           Behavior     Monitoring
Windows Server AppFabric
(formerly codename “Dublin”)
                                  Management Tools
                                   IIS Manager Modules
                                         PowerShell


                    Services                                 Workflows


      Persistence              Hosting                Monitoring         Caching

                               Windows Server AppFabric

                                   .NET Framework

       Persistence                Runtime Databases                  Monitoring

                                         IIS/WAS
                                   Windows Server
Building and Managing Workflow Services with
Visual Studio 2010 and Windows Server
AppFabric
War Games - information service




                 Forces
War Games - information service




   Add Force


                               Get Forces
   Remove Force    Surface
                    Force
                  Manager WF
Composition and Coordination of Services
War Games - Correlation


                 Surface
                Air Force
                  Land
                Sea Force
                  Force
                   WF
                Force WF
               Manager WF
 Message Correlation
                        Context Based Correlation – .Net 3.5
                        Content Based Correlation <-New in .NET 4



                                create correlation
1. Get Force(Surface Air)                            2. Save (Surface Air)
                                     Receive


                                                                                 Persistence DB
                                                                                   (Instances)
3. Add Force (Surface Air)                           4. Load (Surface Air)
                                    Receive                                    Instance         Key
                                                                             123 | data   123 | userid 1

5. Delete Force(Surface Air)                         6. Load (Surface Air)   456 | data   456 | userid 2

                                     Receive                                 789 | data   789 | userid 3

                                                                             A11 | data   A11 | userid4
Message Correlation
Monitoring
                                Management Tools
                                 IIS Manager Modules
                                       PowerShell


                  Services                                 Workflows


    Persistence              Hosting                Monitoring         Caching

                             Windows Server AppFabric

                                 .NET Framework

     Persistence                Runtime Databases                  Monitoring

                                       IIS/WAS
                                 Windows Server
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?”
Monitoring
Workflow Service                                          Monitoring
                      WCF                                   Tools
                      Trace
                                 ETW
                                  Event
                   Tracking      Tracing
                   Participant               Event
                                   For
                                           Collector      Monitoring
                     Tracking      Win
                                            Service       Database
                      Profile


                                               Windows Server AppFabric

>
    >

    >
Health Monitoring and Troubleshooting
Workflow Services
Persistence
                                 Management Tools
                                  IIS Manager Modules
                                        PowerShell


                   Services                                 Workflows


     Persistence              Hosting                Monitoring         Caching

                              Windows Server AppFabric

                                  .NET Framework

      Persistence                Runtime Databases                  Monitoring

                                        IIS/WAS
                                  Windows Server
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
Persistence
                                 >

     Workflow Service                 >
                 Management
                  Endpoint



                                      >

                                    >
   Workflow
  Management
    Service
                                    >
                              Windows
                    Server AppFabric

                                                Instance

                               Persistence   123 | data


                               DB            456 | data

                                             789 | data

                                             011 | data
Workflow Service User Model
                                Suspend          Suspended
            Running
                                             Reason:
         Active - In Memory                  • Exception code
          Idle – Persisted       Resume      • Exception text


                   • Successful Completion                •Terminate
                   • Terminate                            • Cancel
                   • Cancel



          Completed


    Operator Commands:
    • Suspend, Resume, Terminate and Cancel
Instance Availability and Control of
Workflow Services
Instance Availability in a Farm
                                Load
                              Balancer



        Workflow                 Workflow                       Workflow
        Service                  Service                        Service




  Workflow                 Workflow                       Workflow
 Management   Windows     Management                     Management
   Service                  Service     Windows            Service    Windows
                 Server                    Server                        Server
              AppFabric                 AppFabric                     AppFabric


                                              Instance

                          Persistence       123 | data


                          DB             456 | data

                                         789 | data

                                         011 | data
Summary
•   WCF + WF > 2
•   Windows Server AppFabric architecture
•   Our first WF service in App Fabric
•   Composition & Coordination
•   Message Correlation
•   AppFabric Capabilities :
    • Monitoring
    • Persist

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:5/9/2013
language:English
pages:29