Design Patterns (GoF) (50 Qs)•Part 3: Architectural Patterns & Enterprise Systems (25 - 35)
Gateway Aggregation / Backend-for-Frontend (BFF) Pattern.
mid Leveldesign-patternsArchitectural Patterns
In Simple Words:
- Gateway Aggregation: An API Gateway aggregates multiple backend microservice calls into a single HTTP round-trip, saving cellular network bandwidth for mobile clients.
- Backend-for-Frontend (BFF): Instead of a single monolithic API Gateway serving all clients, create dedicated gateway layers tailored to specific client form factors:
- iOS/Android BFF: Returns compact, minimal payloads with pre-computed localized labels for small screens.
- Desktop Web BFF: Returns rich, multi-column analytics data payloads.