એક API gateway એ એક એકલ પ્રવેશ બિંદુ છે જે બેકએન્ડ સર્વિસીસ સામે આવેલો હોય છે — રૂટિંગ, પ્રમાણીકરણ, રેટ લિમિટિંગ અને વધુ જેવી ક્રોસ-કટિંગ સમસ્યાઓ સંભાળે છે। તે ખાસ કરીને માઇક્રોસર્વિસીસ આર્કિટેક્ચરમાં સામાન્ય કાર્યક્ષમતા કેન્દ્રીય કરવા માટે ઉપયોગી છે.
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
સામાન્ય gateway જવાબદારીઓ
✓ ROUTING → direct requests to the appropriate backend service
✓ AUTHENTICATION/authorization → verify identity/permissions centrally
✓ RATE LIMITING / throttling → protect backends from abuse/overload
✓ Request/response TRANSFORMATION; protocol translation; aggregation (combine service calls)
✓ CACHING; load balancing; SSL termination
✓ LOGGING, monitoring, analytics; error handling
