aggregation
Combining data from several sources into one response.
In more detail
An aggregator calls several services, often in parallel, and merges their answers into one payload. It saves clients from making many round trips themselves.
Example
The BFF aggregator calls the user, stats and status services together and returns one payload.Related terms
- Backend for Frontend — A small backend service built for one specific frontend, which gathers data from other services and shapes it exactly for that frontend’s screens.
- Promise.allSettled — A JavaScript function that waits for every promise in a list to finish and reports each one’s result, whether it succeeded or failed.
- round trip — One journey of a request to a server and its response back, whose time adds directly to how long the caller waits.
- metric — A number measured over time, such as requests per second or error count, that shows how a system behaves in aggregate.
- deduplication — Detecting and discarding repeated copies of the same message or request, usually by remembering identifiers already processed.
Taught in
- API Gateway & BFF Patterns: Backend-for-Frontend — Production Full-Stack Engineering
- Observability As A Design Input — Scalable System Design & Distributed Architecture
- Worked Design Three: A Metrics Ingestion Pipeline — Scalable System Design & Distributed Architecture