Skip to content

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”.

A flow built from integration patterns1. An order message arrives with several lines. 2. A splitter turns it into one message per line. 3. A content-based router sends each line to the right fulfillment channel by product type. 4. An aggregator collects the results for every line of the order before replying. Order message Splitterone message per line Routercontent-based, by product Physical fulfillment Digital fulfillment Aggregatorwaits for all lines123results4
A flow built from integration patterns Patterns compose into flows. This one splits an order, routes each line by content, and reassembles the results.
  1. An order message arrives with several lines.
  2. A splitter turns it into one message per line.
  3. A content-based router sends each line to the right fulfillment channel by product type.
  4. An aggregator collects the results for every line of the order before replying.
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
  • 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.

Written and edited by Abhinav Taduka, enterprise software architect.