ਇੱਕ API gateway ਇੱਕ ਸਿੰਗਲ entry point ਹੈ ਜੋ backend services ਦੇ ਅੱਗੇ ਬੈਠਦਾ ਹੈ — routing, authentication, rate limiting, ਅਤੇ ਹੋਰ ਚੀਜਾਂ ਦੀ ਦੇਖਭਾਲ ਕਰਦਾ ਹੈ। ਇਹ microservices architectures ਵਿੱਚ ਵਿਸ਼ੇਸ਼ ਤੌਰ ਤੇ ਉਪਯੋਗੀ ਹੈ ਕਿਉਂਕਿ ਇਹ ਆਮ ਫੰਕਸ਼ਨਲਿਟੀ ਨੂੰ ਕੇਂਦਰੀਕਰਤ ਕਰਦਾ ਹੈ।
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
