Patterns
35 items
35 items
Single entry point for all client requests
An API Gateway is a single entry point for all client requests to a microservices architecture. It sits between clients and backend services, handling cross-cutting concerns like authentication, rate limiting, request routing, response aggregation, protocol translation, and monitoring. Instead of each client knowing about dozens of microservices, they interact with one gateway that orchestrates backend calls. This pattern is essential for microservices as it reduces client complexity, enforces security uniformly, and provides a central point for observability.
All client requests flow through one gateway instead of calling dozens of microservices directly. Gateway routes requests, enforces policies, and shields internal architecture from clients.
Handle authentication, authorization, rate limiting, logging, monitoring, and metrics in one place instead of duplicating across every microservice.
Gateway can aggregate multiple backend calls into one client request. Example: /api/user-dashboard calls user-service, orders-service, and recommendations-service, returns combined response.
Gateway Responsibilities: