va1m 5cf2fe009b
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
2021-03-13 14:19:21 +02:00
..
2019-12-07 18:03:49 +02:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern EIP Aggregator eip-aggregator /patterns/eip-aggregator/ Integration
Enterprise Integration Pattern

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