Correlation IDs — Enterprise Integration Patterns in practice, part 9 of 24. Some operations need an answer but take longer than an HTTP timeout or cross systems with different availability. Holding a synchronous connection open transfers every downstream failure to the caller.
Request-Reply can be asynchronous: publish a request with a stable message identity, reply address and correlation identifier, then match the later response to the original conversation. Correlation is a business protocol, not a logging afterthought.
Correlation IDs: the architecture
Use three identifiers where needed: business ID, immutable message ID and conversation correlation ID. Include causation information when one message triggers another. Operations should be able to search any platform with the same correlation value.
Implementation on Microsoft Azure
- Service Bus messages expose MessageId, CorrelationId and ReplyTo properties. Define precisely which identifier links the reply and which prevents duplicate requests.
- Use a response queue or topic subscription per bounded requester group rather than creating uncontrolled temporary entities.
- Persist conversation state when the wait can outlive a process instance; Durable Functions or a state store can manage timeout and resumption.
Implementation on Boomi
- Map correlation values into named dynamic document properties at the connector boundary and preserve them across subprocesses.
- A Boomi process can send a Service Bus request and listen or poll for replies, but a long conversation should rely on durable external state rather than an in-memory execution.
- Never use a Boomi execution ID as the external business correlation key; retries and replays create new executions.
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.
Asynchronous Request-Reply is more resilient but changes the client experience. The API may need to return 202 Accepted and a status resource instead of a final result.
Production checklist
- Define message, business and correlation IDs.
- Specify reply address and authorization.
- Persist state and timeout outcome.
- Make repeated replies harmless.
- Trace the same correlation value end to end.
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 Request-Reply and Correlation Identifier 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
- www.enterpriseintegrationpatterns.com documentation
- learn.microsoft.com documentation
- help.boomi.com documentation
Continue the series: ← Competing Consumers: Scale Integration Workers Safely | Message Ordering with Service Bus Sessions and Boomi →





0 Comments