Back to Catalog
Integration
Message Routing
Composed Message Processor
Process each item of a composite message differently, then reassemble the results.
Intent & Description
Real-world Use Case
Multi-category cart checkout — cart contains electronics, clothing, and a digital download. Composed Message Processor splits by category, routes electronics to warehouse-fulfillment, clothing to fashion-fulfillment, digital to download-service. Aggregates shipping ETAs into one unified checkout response.
Source
📌 TL;DR
Composed Message Processor = split by type, route each piece to the right processor, aggregate results. The Swiss Army knife for heterogeneous batch processing.
Advantages
- Handles heterogeneous item types in one composite flow
- Each processor stays focused on its item type
- Parallel processing of different item types
- Reuses Splitter, Router, and Aggregator patterns — no custom invention
Disadvantages
- Orchestration complexity — multiple patterns working together
- Partial failures in one item type can block the whole aggregation
- Debugging requires tracing across multiple processors
- Correlation management across split-route-aggregate is non-trivial