Aggregator Pattern: Rebuild a Complete Business Result

Aggregator Pattern rebuilding a complete business result

Written by Jan Daris

Jan Daris is a hands-on Integration Architect and Developer who enjoys solving complex integration puzzles with Azure, Boomi, APIs, and event-driven architecture. Through this blog, he shares practical knowledge, lessons learned, and real-world solutions to help other architects, developers, and IT teams build better integration platforms.

January 27, 2026

Aggregator Pattern — Enterprise Integration Patterns in practice, part 12 of 24. After messages are split or arrive from parallel sources, a downstream action may require the complete set. The platform must know which messages belong together and when the set is complete—even when parts are late, duplicated or missing.

The Aggregator stores related messages under a correlation key and applies a completion rule. Completion can use an expected count, explicit final marker, business condition or timeout. Durable state and idempotent updates are mandatory because aggregation spans executions.

Aggregator Pattern: the architecture

Part A
Part B
Part C
Durable aggregate
Complete result
Original HTML diagram: Aggregator mapped across an Azure and Boomi integration flow.

Define the completion rule before implementation. Store received part identities, not only a count, so redelivery does not inflate completion. Make timeout a first-class business outcome with an owner.

Implementation on Microsoft Azure

  • Durable Functions can model fan-out/fan-in orchestration, while Cosmos DB, SQL or another state store can support event-driven aggregation.
  • Use optimistic concurrency or transactions so two arriving parts cannot complete the same aggregate twice.
  • Publish a completed event through an outbox-style boundary so state completion and downstream notification remain consistent.

Implementation on Boomi

  • Combine Documents can aggregate documents inside one execution, which is useful when the full set is already present.
  • For parts arriving across executions, use an external durable store keyed by correlation ID; dynamic process properties alone are not a distributed aggregation database.
  • A scheduled Boomi process can detect expired incomplete aggregates and route them to repair or partial-completion logic.

Where the pattern earns its keep

The pattern creates value when it makes coupling, reliability or operational ownership explicit. Name the message boundary, define the contract and prove the failure path. Treat Azure resources and Boomi components as deployable implementations of that decision, with versioning and monitoring that follow the same business identifiers.

Aggregation introduces state, locking and cleanup. If the consumer can work incrementally, avoid rebuilding a large composite message merely because the source originally used one.

Production checklist

  • Define correlation and completion rules.
  • Persist received part identities.
  • Make completion atomic and idempotent.
  • Set timeout and late-arrival behavior.
  • Clean up completed and abandoned state.

Measure the outcome

Track end-to-end latency, successful business outcomes, retry attempts, duplicate prevention, queue or process age and unresolved failures. Platform availability is useful, but the real service level is whether the business message reached a correct, recoverable outcome inside the promised time.

Frequently asked questions

Is Aggregator an Azure or Boomi feature?

It is an architecture pattern, not a product feature. Azure services and Boomi components implement parts of the pattern. Keeping that distinction clear lets the team compare platforms, test the intended behavior and migrate an implementation without changing the business design.

Can Azure and Boomi implement this pattern together?

Yes. A hybrid design is often strongest when one platform owns each responsibility. For example, Azure can own a durable shared channel while Boomi owns application connectivity and translation. Correlation, security, retry ownership and the recovery path must cross that boundary explicitly.

What should we prove before production?

Prove the unhappy path: dependency outage, duplicate delivery, invalid contract, timeout, restart and controlled replay. Verify the same business identifier is searchable in both platforms and that an operator can recover work without editing payloads or bypassing governance.

Primary references

Continue the series: ← Splitter Pattern in Azure Logic Apps and Boomi  |  Claim Check: Move Large Payloads Outside the Broker →

You May Also Like…

0 Comments