API gateway je jedinstvena ulazna točka koja se nalazi ispred backend servisa — obrađuje probleme koji se sijeku kroz sve slojeve kao što su rutiranje, autentifikacija, ograničenje brzine zahtjeva, i mnogo drugo. Posebno je koristan u arhitekturama mikroservisa za centralizaciju zajedničke funkcionalnosti.
Što API gateway radi
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
