ایک API gateway ایک واحد entry point ہے جو backend services کے سامنے بیٹھا ہوتا ہے — routing، authentication، rate limiting اور دیگر جیسے cross-cutting concerns کو handle کرتا ہے۔ یہ خاص طور پر microservices architectures میں عام functionality کو centralize کرنے کے لیے مفید ہے۔
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
