← Wiki

Integration patterns in Mule: catalog

  • 10 min read
On this page

Code

This page maps each pattern from the book Enterprise Integration Patterns (Hohpe and Woolf) to the Mule 4 component or feature that implements it. It also points to the page in the series that explains the pattern, with an example that runs when the pattern has one. The catalog also lists patterns with no Mule component and what the platform does instead. The reason for the series is in the article Integration patterns in Mule: you already use them, you just don’t know their names.

If you know the component but not the pattern’s name, start from the index by component, which goes the other way: from the Mule component to the patterns in the book.

The Mule documentation has its own table, on the page Enterprise Integration Patterns Using Mule. For some patterns it points to a different component, such as the Redelivery Policy for the Idempotent Receiver and the Validation module for the Message Filter; each page in the series says what the documentation maps and, where it differs, why.

The sections follow the book’s groups.

Integration styles: how applications exchange data

The book asks a single question for the integration styles: how to integrate applications so that they work together and exchange information. There are four answers; the fourth, Messaging, is the subject of the rest of the catalog.

Pattern How the style answers In Mule Page
File Transfer Each application produces files that the others consume File Connector: one side writes the file, the other consumes it File Transfer
Shared Database The applications store the data in a single database Database Connector; the common schema is a project decision Patterns without an example
Remote Procedure Invocation Each application offers an interface over its own data Mule APIs and requests to external APIs Patterns without an example, Request-Reply

Channels: where the message travels

Pattern Question it answers In Mule Page
Point-to-Point Channel How do you make sure a single receiver consumes each message? Anypoint MQ queue, on the broker. VM Connector queues also deliver each message to a single consumer, but they live inside the Mule runtime and do not replace a broker Point-to-Point Channel
Publish-Subscribe Channel How do you deliver the same event to every interested party? Anypoint MQ message exchange (the broker resource, not the Anypoint Exchange where assets live), which, with no routing rules on its bindings, copies each message to every queue bound to it Publish-Subscribe Channel
Dead Letter Channel What do you do with a message that cannot be delivered? Anypoint MQ dead letter queue: after a number of delivery attempts without acknowledgment (10 by default), the broker moves the message to the queue’s DLQ Dead Letter Channel
Invalid Message Channel What do you do with a message that arrives but makes no sense to the receiver? No dedicated component; error handling that sends the message to a queue separate from the DLQ, because retrying will not fix it Invalid Message Channel
Guaranteed Delivery How do you avoid losing the message if the messaging system goes down? Anypoint MQ queues; persistent VM queues, which are not available on CloudHub 2.0 or Runtime Fabric; the reliability pattern in the Mule documentation Guaranteed Delivery
Channel Adapter How do you connect an application to the messaging system? The role connectors play (Database, Salesforce, SFTP…) Channel Adapter

Message construction: what the message carries

Pattern Question it answers In Mule Page
Request-Reply How do you get a reply when applications communicate through messages? HTTP Request; the VM Publish Consume operation Request-Reply
Return Address How does the replier know where to send the reply? The temporary reply queue that VM Publish Consume creates and discards on its own Return Address
Correlation Identifier How do you know which request a reply belongs to? An ID carried in the request and returned in the reply. Mule’s correlationId is for following a request through the logs, not for matching a reply: HTTP Request sends it in the X-CORRELATION-ID header, the called application’s listener adopts it, and the logs of both show the same ID Correlation Identifier
Message Expiration How do you indicate that a message has gone stale and should no longer be processed? The time to live (TTL) of the Anypoint MQ queue, at most two weeks Message Expiration

Routing: where the message goes

Pattern Question it answers In Mule Page
Content-Based Router How do you send each message to the right destination based on its content? Choice Content-Based Router
Message Filter How do you discard the messages you are not interested in? A Choice in which only the route for accepted messages does any processing. Choice does not end the flow: whatever comes after it runs for every message, including the discarded ones Message Filter
Splitter How do you process a message that carries several items? For Each, Parallel For Each Splitter
Aggregator How do you combine related messages into one? The Aggregators module, with size-based, time-based and group-based aggregators; the aggregation step in Scatter-Gather Aggregator
Recipient List How do you send a message to a list of recipients defined per message? No dedicated component: a Transform (DataWeave) computes the list from the message, and a For Each delivers a copy to each recipient. Scatter-Gather also sends to several destinations, but with routes fixed in the XML Recipient List
Scatter-Gather How do you send to several destinations and combine the replies? Scatter-Gather. If a route fails, it throws MULE:COMPOSITE_ROUTING with the errors and the results of the routes that succeeded Scatter-Gather
Process Manager How do you route a message through several steps when they may not be known in advance and may not be sequential? No dedicated component. A flow that keeps the process state (in an object store or a database, when the process spans more than one execution) and decides the next step from the intermediate results Process Manager

Transformation: what changes in the content

Pattern Question it answers In Mule Page
Message Translator How do systems with different formats exchange data? Transform Message (DataWeave) Message Translator
Content Filter How do you handle a large message when only a few fields matter? Transform Message selecting or removing fields. Message Filter discards the whole message; Content Filter trims its content Content Filter
Canonical Data Model How do you reduce dependencies between applications that use different formats? No component; a common model shared by the APIs Canonical Data Model
Content Enricher How do you complete a message that does not carry all the data? An operation’s target variable stores the fetched data without overwriting the payload; a DataWeave script combines the two Content Enricher
Claim Check How do you reduce the amount of data that travels in the message without losing information? No component; Object Store or external storage, with only the key traveling in the message Claim Check

Endpoints: how the application receives and consumes

Pattern Question it answers In Mule Page
Event-Driven Consumer How do you consume messages as soon as they arrive? Event sources: HTTP Listener, VM Listener, Anypoint MQ Subscriber Event-Driven Consumer
Polling Consumer How do you consume a message when the application is ready for it? A Scheduler followed by a read; the Consume operation of VM and Anypoint MQ Polling Consumer
Competing Consumers How do you process several messages from the same queue at the same time? The concurrent consumers of the VM listener (4 by default), or several replicas on the same queue Competing Consumers
Idempotent Receiver How do you receive the same message twice without doubling the effect? Idempotent Message Validator, with a business key in idExpression Idempotent Receiver
Transactional Client How do you control the transaction with the messaging system? Transactions started at the event source or in a Try Transactional Client

System management: how to observe and command the integration

Pattern Question it answers In Mule Page
Control Bus How do you administer a distributed messaging system? To a large extent, Runtime Manager; a command of your own, when you need one Patterns without an example
Wire Tap How do you inspect the messages that travel on a point-to-point channel? No dedicated component: an Async with a Try sends the copy, which can be lost Wire Tap
Message History How do you analyze the path messages take? The documentation describes no component that writes the list into the message; OpenTelemetry records the path outside it Patterns without an example
Message Store How do you report on messages without disturbing the flow? The documentation describes no component with that role; the copy goes out through a Wire Tap and storing it is up to the project Patterns without an example

The patterns linked to the page of patterns without an example have no example flow in the series: that page says what Mule or the platform does instead and when there is still something to build. The claims about them come from the MuleSoft documentation consulted on 2026-12-01.

Where the “In Mule” column says “no dedicated component”, the pattern still applies, but you build it yourself out of flows, configuration and a design decision.

The example that goes with the series

The scenario is always the same: an order that goes through payment, inventory and invoicing. The patterns that run inside Mule have a runnable example in the mulesoft-patterns-examples repository, under src/main/mule/eip/<pattern>/, each with its own MUnit suite and no external systems. The ones that depend on Anypoint MQ, such as the message exchange and the DLQ, are explained on their page with the broker configuration, based on the documentation, because they do not run without it.

git clone https://github.com/brunosouzas/mulesoft-patterns-examples.git
cd mulesoft-patterns-examples
mvn clean test

MUnit runs on the Enterprise runtime, so Maven needs access to the MuleSoft Enterprise repository (credentials in ~/.m2/settings.xml).

Code for this page