Bookmarks

EIP — Enterprise Integration Patterns

A catalogue of 65 messaging patterns: repeatable solutions for connecting applications through asynchronous channels.

Also: EIP

checked 8 Nov

All terms

When applications exchange data not directly but through messages, the same set of questions keeps coming up: how to route messages, transform formats, smooth out peak loads and avoid losing data during failures. From these solutions Gregor Hohpe and Bobby Woolf assembled a catalogue of patterns that became a common language for integration designers.

What’s in the catalogue

The patterns are grouped by the problems they solve. Their names have stuck: they appear in broker and framework documentation, in architecture documents and in discussions.

GroupProblemExample patterns
Messaging channelshow to connect a sender and a receiverpoint-to-point channel, publish-subscribe channel
Message constructionwhat messages look like and how they are structuredmessage, command message, document message
Routingwhere to send a messagecontent-based router, recipient list, splitter
Transformationhow to convert between formatstranslator, normalizer, envelope wrapper
Endpointshow an application connects to a channelmessaging gateway, competing consumers
System managementhow to monitor and repair the exchangewire tap, control bus, message history

How a pattern works

Every pattern is described in the same way: the problem, a solution with a messaging diagram, and links to other patterns. Many of them stack into a pipeline — for example, a typical broker-based integration combines channel adapter, translator and message channel.

textA chain of EIP patterns: receiving, transforming and fanning out a message.
sender -> channel adapter -> message channel -> translator -> recipient list -> receivers

Where EIP appears

  • Apache Camel — an integration library whose routes are assembled directly from the patterns: split(), aggregate(), content-based router; each such pattern is listed as an EIP in the Camel documentation.
  • Spring Integration — an implementation of the same patterns in the Spring stack.
  • According to the authors, the catalogue spurred the emergence of a generation of open source ESBs: Apache Camel, Mule, WSO2 and Fuse ServiceMix.

The book and the website

The catalogue was published as the book “Enterprise Integration Patterns” (Gregor Hohpe and Bobby Woolf, Addison-Wesley, 2003). The authors maintain an open version on the enterpriseintegrationpatterns.com website and keep extending it with examples for modern technologies — Kafka, RabbitMQ and cloud message buses. Individual patterns are also called EIPs — that is how the Apache Camel documentation lists them.

Sources

the term is written from these pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • message broker

    A message broker is infrastructure that passes and stores messages; EIP is a catalogue of solutions for how to organise that passing.

  • ESBenterprise service bus

    An ESB is a specific class of integration infrastructure, while EIP is a product-independent language for describing integrations.

In depth in the references

where the topic is covered in detail