10.2. The BizTalk Processing Model

To fully understand how you can fine-tune a BizTalk solution for a low-latency scenario, you need to understand how BizTalk processes messages. Figure 10-1 shows the BizTalk architecture; the flow of a message through BizTalk is illustrated by the arrows on the diagram. I will discuss this flow in more detail shortly. As already discussed earlier in the book, at the center is the MessageBox, a durable publish-subscribe engine built in the database. The MessageBox services all of BizTalk's subservices (referred to as service classes). These include the Messaging Engine (in process and out of process), the Orchestration Engine, and the BizTalk Message Queue (MSMQT, T for Transport) adapter.

The flow through BizTalk is as follows:

  1. The MSMQ adapter receives a message from a queue and submits it to the Messaging Engine.

  2. The Messaging Engine performs some preprocessing on the message and then executes it through the receive pipeline.

  3. The Messaging Engine invokes the Message Agent in order to publish the message to the MessageBox.

  4. The message is published to the MessageBox, the subscriptions are evaluated during publication, and a reference to the message is placed in the appropriate application queue in the MessageBox.

  5. The Message Agent dequeues the message and passes it to the Orchestration Engine.

  6. The Orchestration Engine activates a new instance of the correct type of orchestration.

  7. The orchestration processes the message and then posts it to a send port. ...

Get Professional BizTalk® Server 2006 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.