Message Ordering with Service Bus Sessions and Boomi

Message Ordering with Azure Service Bus sessions and Boomi

Written by Jan Daris

Jan Daris is a hands-on Integration Architect and Developer who enjoys solving complex integration puzzles with Azure, Boomi, APIs, and event-driven architecture. Through this blog, he shares practical knowledge, lessons learned, and real-world solutions to help other architects, developers, and IT teams build better integration platforms.

December 16, 2025

Message Ordering — Enterprise Integration Patterns in practice, part 10 of 24. Queues preserve less order than many designs assume. Retries, multiple consumers and unequal processing time can make later events finish first. Global serialization solves ordering but destroys throughput.

Order only the messages that truly depend on one another. Use a business partition key, sequence number and explicit gap policy. A Resequencer buffers out-of-order messages until the expected sequence arrives or a timeout policy decides what to do.

Message Ordering: the architecture

Events 1,2,3
Session key
Ordered consumer
Gap detection
Business state
Original HTML diagram: Message Sequence and Resequencer mapped across an Azure and Boomi integration flow.

Ask what breaks if two messages swap. If the answer is nothing, do not pay for ordering. If it matters, define the ordered scope, maximum gap wait, duplicate rule and repair workflow.

Implementation on Microsoft Azure

  • Service Bus sessions group related messages under a SessionId and provide ordered, exclusive handling for that session. Different sessions can run in parallel.
  • Carry a business sequence number in the contract because transport order alone cannot detect a missing upstream event.
  • Persist the last applied sequence with business state so duplicate and stale messages are rejected atomically.

Implementation on Boomi

  • Use the Service Bus connector session-aware receive action when consuming session-enabled queues or subscriptions.
  • Keep the session or aggregate key as a document property through maps and subprocesses, but enforce business sequence in a durable store.
  • Avoid parallel Flow Control for documents that update the same ordered aggregate unless the update itself is concurrency-safe.

Where the pattern earns its keep

The pattern creates value when it makes coupling, reliability or operational ownership explicit. Name the message boundary, define the contract and prove the failure path. Treat Azure resources and Boomi components as deployable implementations of that decision, with versioning and monitoring that follow the same business identifiers.

Sessions reduce parallelism for hot keys and require consistent sender behavior. Resequencing adds storage, timers and an operational path for missing messages.

Production checklist

  • Define the smallest ordered business scope.
  • Send a session key and sequence number.
  • Persist last applied sequence atomically.
  • Set gap timeout and repair behavior.
  • Load-test hot-key distribution.

Measure the outcome

Track end-to-end latency, successful business outcomes, retry attempts, duplicate prevention, queue or process age and unresolved failures. Platform availability is useful, but the real service level is whether the business message reached a correct, recoverable outcome inside the promised time.

Frequently asked questions

Is Message Sequence and Resequencer an Azure or Boomi feature?

It is an architecture pattern, not a product feature. Azure services and Boomi components implement parts of the pattern. Keeping that distinction clear lets the team compare platforms, test the intended behavior and migrate an implementation without changing the business design.

Can Azure and Boomi implement this pattern together?

Yes. A hybrid design is often strongest when one platform owns each responsibility. For example, Azure can own a durable shared channel while Boomi owns application connectivity and translation. Correlation, security, retry ownership and the recovery path must cross that boundary explicitly.

What should we prove before production?

Prove the unhappy path: dependency outage, duplicate delivery, invalid contract, timeout, restart and controlled replay. Verify the same business identifier is searchable in both platforms and that an operator can recover work without editing payloads or bypassing governance.

Primary references

Continue the series: ← Request-Reply and Correlation IDs Across Platforms  |  Splitter Pattern in Azure Logic Apps and Boomi →

You May Also Like…

0 Comments