API gateway — это единая точка входа перед backend-сервисами, которая обрабатывает сквозные задачи: маршрутизацию, аутентификацию, ограничение частоты запросов и многое другое. Это особенно полезно в архитектурах микросервисов для централизации общей функциональности.
Что делает API gateway
The API GATEWAY is a single entry point in front of backend services:
Client → API GATEWAY → ┬→ Service A
├→ Service B
└→ Service C
→ handles cross-cutting concerns in ONE place (so services don't each implement them)
→ routes requests to the right service; abstracts the backend from clients
Типичные функции gateway
✓ ROUTING → direct requests to the appropriate backend service
✓ AUTHENTICATION/authorization → verify identity/permissions centrally
✓ RATE LIMITING / throttling → protect backends from abuse/overload
✓ Request/response TRANSFORMATION; protocol translation; aggregation (combine service calls)
✓ CACHING; load balancing; SSL termination
✓ LOGGING, monitoring, analytics; error handling
