Implementing scatter gather
We're going to use the start orchestration shape to process all of these requests in true parallel. This pattern is commonly referred to as scatter-gather because we scatter the requests out and then gather the responses back together. To do this we will use a self-correlating direct bound port and another orchestration. First we will add this new port to the ReorderCalculations
orchestration:
- In
ReorderCalculations.odx
drag a new port to the port canvas. - Name the port
Receive_DirectCalculationPort
and create a new port type namedDirectCalculationPortType
. - Set the binding to
Direct
and choose theSelf Correlating
radio button. - Rename
Operation_1
toProcessCalculation
and set theMessage Type
of the requestto PRP.InventoryManagement.Orchestrations.InventoryNotificationType ...
Get Microsoft BizTalk Server 2010 Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.