API gateway ialah satu titik masuk tunggal yang terletak di hadapan perkhidmatan backend — mengendalikan kebimbangan rentas (cross-cutting concerns) seperti routing, authentication, rate limiting, dan banyak lagi. Ia amat berguna dalam seni bina microservices untuk memusatkan fungsi yang lazim.
Apakah fungsi 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
