Building the solution
In this section, we will actually construct a working version of the proposed solution, which will leverage core components of .NET 4.0 (WCF and Windows Workflow Services) as well as the AppFabric extensions to IIS. Note that for this demonstration, we are only building the first aspect, which accepts orders, not the second piece which supports querying the status of a given order. The flow of the solution looks like the following:
An order comes from a customer to a single endpoint at McKeever Technologies. This single endpoint then routes the order based on the content of the order (that is, the value of the Product ID
element). The router sends requests to WCF Workflow Services, which can provide us durability and persistence when talking to the backend order management systems. If an order system is down, then the workflow gets suspended and will be capable of resuming once the system comes back online.
Setup
First, create a new database named Chapter8Db
in your...