Content-Based Router — Enterprise Integration Patterns in practice, part 5 of 24. Consumers rarely need every message. Routing inside each consumer wastes compute and copies business selection rules across teams. Routing everything in one giant orchestration, however, creates a central bottleneck.
The Content-Based Router examines message data or metadata and sends the message to one appropriate channel. Put simple, stable selection close to the broker and keep complex or frequently changing business decisions in a tested routing component. Always design an unmatched path; silent discard is almost never an operational strategy.
Content-Based Router: the architecture
Choose routing keys that describe durable business facts such as region, order type or contract version. Avoid transient implementation facts such as the current target hostname. Monitor unmatched messages as a product metric because they often reveal a new business case or contract defect.
Implementation on Microsoft Azure
- Service Bus topic subscription filters route copies using system or application properties. Correlation filters are efficient for exact matches; SQL filters are more expressive but can reduce throughput.
- Use a Function or Logic App when routing requires external lookups, payload inspection or rule orchestration that the broker should not perform.
- Version routing properties as part of the event contract because renaming a property can strand messages in subscriptions.
Implementation on Boomi
- Use the Route shape for multiple explicit values and a default path; it evaluates route values in sequence.
- Use a Decision shape for a binary rule and isolate complex reusable routing logic in a subprocess.
- Set dynamic document properties before the Route only when they are named and documented parts of the internal message contract.
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.
Broker-side filters improve decoupling but distribute rule ownership across infrastructure. Process-side routers are easier to test as code or components but add a hop and a runtime dependency.
Production checklist
- Define one owner for each routing rule.
- Prefer stable metadata over deep payload inspection.
- Create and alert on an unmatched route.
- Load-test the chosen filter type.
- Test every route and overlapping condition.
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 Content-Based Router 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
- learn.microsoft.com documentation
- help.boomi.com documentation
- www.enterpriseintegrationpatterns.com documentation
Continue the series: ← Message Translator: Mapping Without Tight Coupling | Dynamic Router and Recipient List on Azure and Boomi →





0 Comments