Enterprise integration patterns
Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf (2003) catalogued 65 patterns for integrating systems with messaging, with names and icons that are still the common language of integration. Most integration platforms, from Apache Camel and Spring Integration to commercial iPaaS products, implement them directly. The catalog is available online (opens in a new tab).
Knowing the names lets you describe an integration precisely: “a content-based router sends each order to the right fulfillment channel, an aggregator waits for all lines, and failures go to a dead-letter channel”.
Diagram
Section titled “Diagram”- An order message arrives with several lines.
- A splitter turns it into one message per line.
- A content-based router sends each line to the right fulfillment channel by product type.
- An aggregator collects the results for every line of the order before replying.
The patterns that matter most
Section titled “The patterns that matter most”| Pattern | What it does | Where you meet it today |
|---|---|---|
| Message channel | A named pipe messages travel through | Queues, topics |
| Point-to-point channel | One consumer receives each message | Work queues |
| Publish-subscribe channel | Every subscriber gets a copy | Topics, event buses |
| Message translator | Converts one format to another | Mapping in integration flows, API-led process APIs |
| Content-based router | Sends each message to a channel based on its content | Routing rules in buses and gateways |
| Splitter and aggregator | Break a message into parts; recombine related messages | Batch processing, order lines, scatter-gather |
| Content enricher | Adds data from another source | Looking up customer details for an event |
| Correlation identifier | Links a reply or related messages to the original | Correlation IDs in tracing and async request-reply |
| Dead letter channel | Where messages that can’t be delivered or processed go | Dead-letter queues |
| Idempotent receiver | Processes duplicate messages safely | Every at-least-once consumer; see idempotency |
| Guaranteed delivery | Messages persist until delivered | Durable queues, replicated logs |
| Claim check | Store a large payload and pass a reference | Large files via object storage with a link in the message |
| Process manager | Central coordinator of a multi-step flow | Workflow engines, orchestration and sagas |
| Wire tap | Copies messages for inspection | Auditing, debugging, analytics feeds |
Using them well
Section titled “Using them well”- Name the pattern in designs and reviews. “Aggregator with what completion condition and what timeout?” is a precise question. Aggregators without timeouts wait forever for a line that never arrives.
- Prefer simple compositions. A flow of eight patterns is hard to test and debug; consider whether a service owning the logic would be clearer.
- Design the failure paths first: dead letters, retries, poison messages and how someone replays a fixed message.
- Keep business logic out of routing where possible. A router that encodes pricing rules is a business system hiding in the integration layer.
Related patterns
Section titled “Related patterns”- Message queues and publish/subscribe
- Event streaming platforms
- Point-to-point vs hub-and-spoke
- Saga and dead-letter queue in the glossary
Further reading
Section titled “Further reading”- Gregor Hohpe and Bobby Woolf, Enterprise Integration Patterns (Addison-Wesley, 2003), and the online pattern catalog (opens in a new tab)
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.