Anurag Agarwal fb2c026822 Java 11 migrate remaining e (#1112)
* Moves eip-aggregator to Java 11

* Moves eip-message-channel to Java 11

* Moves eip-publish-subscribe to Java 11

* Moves eip-splitter to Java 11

* Moves eip-wire-tap to Java 11

* Moves event-aggregator to Java 11

* Moves event-asynchronous to Java 11

* Moves event-driven-architecture to Java 11

* Moves event-queue to Java 11

* Moves event-sourcing to Java 11

* Moves execute-around to Java 11

* Moves extension-objects to Java 11
2019-12-09 19:03:30 +02:00
..
2019-12-07 18:03:49 +02:00
2019-12-09 19:03:30 +02:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern EIP Aggregator eip-aggregator /patterns/eip-aggregator/ Integration
Java
Difficulty-Intermittent
EIP

Intent

Sometimes in enterprise systems there is a need to group incoming data in order to process it as a whole. For example you may need to gather offers and after defined number of offers has been received you would like to choose the one with the best parameters.

Aggregator allows you to merge messages based on defined criteria and parameters. It gathers original messages, applies aggregation strategy and upon fulfilling given criteria, releasing merged messages.

Diagram

alt text

Applicability

Use the Aggregator pattern when

  • You need to combine multiple incoming messages
  • You want to process grouped data

Credits