Programming Search⌘K

Messaging patterns

The Enterprise Integration Patterns and the Azure messaging patterns: channels, message kinds, routing, transformation and endpoints.

Concepts

  • Message ordering

    Message ordering is the promise that consumers see related messages in the order in which they were sent. Brokers keep it inside a queue, a partition or a key, and rarely across all messages.

    advanced

Patterns

  • Aggregator

    An aggregator collects related messages, such as the replies for the parts of one order, until the set is complete or a timeout comes, and then publishes one message made from them.

    core
  • Asynchronous Request-Reply

    For work that takes too long for one HTTP call, the API answers at once with 202 Accepted and the URL of a status endpoint; the client polls that URL until it points to the result.

    core
  • Claim Check

    A claim check stores a large or sensitive payload in an external store and sends only a key to it through the messaging system; a later component uses the key to get the payload back.

    core
  • Command Message

    A command message is a message that asks one receiver to do something, such as to reserve stock or to charge a card. It is a normal message whose body names an operation and gives its arguments.

    core
  • Competing Consumers

    Competing consumers are many consumers on one point-to-point channel; the messaging system gives each message to one of them, so the work is shared and processed in parallel.

    core
  • Content Enricher

    A content enricher is a translator step that uses a key in a message to get missing data from another source, such as a database or a service, and adds that data to the message before it goes on.

    core
  • Content-Based Router

    A content-based router reads each message on one channel and sends it to another channel that it chooses from the content, such as the type of an item. The sender then needs to know only one channel.

    core
  • Correlation Identifier

    A correlation identifier is a value in a reply message that names the request that the reply answers. The replier copies it from the request id, so a requestor with many requests can match each reply.

    core
  • Dead Letter Channel

    A dead letter channel holds the messages that the messaging system cannot or should not deliver, so that one bad message does not block the others and a person can look at it later.

    core
  • Event Message

    An event message is a message that tells other programs that something happened, such as an order that was placed. The sender reports a fact and does not tell the receivers what to do.

    core
  • Guaranteed Delivery

    Guaranteed delivery makes a message persistent: the messaging system writes it to disk before it accepts it, and keeps it there until the receiver acknowledges it, so a crash does not lose it.

    core
  • Idempotent Receiver

    An idempotent receiver can get the same message more than once with the same result as once, because it finds duplicates by an id or because its messages have an effect that a repeat does not change.

    core
  • Message Bus

    A message bus is a shared messaging infrastructure with a common data model and command set, so that many programs can work together and a program can join or leave without changes to the others.

    core
  • Message Channel

    A message channel is a named path in a messaging system. One program writes messages to it and other programs read them, so the sender knows the name of the channel, not the receiver.

    core
  • Message Translator

    A message translator is a step between two systems that changes a message from the data format of one system into the format of the other, so that neither system must know the format of the other.

    core
  • Point-to-Point Channel

    A point-to-point channel gives each message to exactly one of its receivers. Many receivers can read the channel to share the work, but no two of them get the same message at the same time.

    core
  • Polling Consumer

    A polling consumer asks the channel for a message when it is ready for one, so the application controls when and how fast it consumes; an event-driven consumer is called when a message comes.

    core
  • Publish-Subscribe Channel

    A publish-subscribe channel gives a copy of each message to each of its subscribers. The publisher sends an event once, and each program that subscribed to the channel gets it.

    core
  • Request-Reply

    Request-Reply is a pair of messages on two channels: a requestor sends a request with a return address, and the replier sends the answer to that address. It gives two-way talk over one-way messages.

    core
  • Scatter-Gather

    Scatter-gather sends one request to many receivers, such as a request for a price to all suppliers, and then collects their replies into one message, for example the best price.

    core
  • Splitter

    A splitter takes one message that holds a list of items, such as the lines of an order, and sends one new message for each item, so that each item can go its own way.

    core
  • Wire Tap

    A wire tap is a fixed recipient list with two outputs; it sends each message on a channel to its normal receiver and a copy to a second channel, where a tool can inspect, log or store it.

    core
  • Messaging Bridge

    A messaging bridge connects two messaging systems; it reads each message on a channel of one system and sends it to the matching channel of the other, and the applications on each side need no change.

    advanced
  • Priority Queue pattern

    The Priority Queue pattern gives each message a priority, so that urgent messages are processed before the others, either in one queue that orders by priority or in a separate queue for each priority.

    advanced
  • Sequential Convoy

    A sequential convoy gives each message a category key, such as an order id, and processes the messages of one category in order, one at a time, while different categories run in parallel.

    advanced

Works

  • Enterprise Integration Patterns

    A 2003 book by Gregor Hohpe and Bobby Woolf with 65 patterns for messaging between programs: channels, messages, routing, transformation, endpoints and system management, with an icon for each.

    core