An API gateway hija punt ta' dħul wieħed li tqiegħed quddiem servizzi backend — tittratta concerns li jaqsmu bħall-routing, authentication, rate limiting, u aktar. Hija partikolarment utli f'arkitetturi ta' microservices biex ċentralizza funzjonalità komuni.
X'jagħmel 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
