This recipe will go into implementing a parallel convoy. An example scenario where a parallel convoy can be applicable is when the order can only be shipped if the payment is approved and the stock-level has been verified. Payment comes from a financial system, while stock-level information comes from an inventory system. Both will publish their respective messages for a specific order before the order will get processed further.
Open Visual Studio 2010 to develop the parallel convoy. For reference, you can download the source code (
BTS.Cookbook.ParallelConvoy) belonging to this chapter.
A parallel convoy can be implemented by performing the following steps: