API gateway అనేది బ్యాకెండ్ సర్వీసెల ముందు ఉన్న ఒక ఏకైక ప్రవేశ పాయింట్ — రూటింగ్, ఆధికారీకరణ, రేట్ లిమిటింగ్ మరియు మరిన్నవి వంటి క్రాస్-కటింగ్ సంబంధాలను నిర్వహిస్తుంది. ఇది ముఖ్యంగా మైక్రోసర్వీసেస్ ఆర్కిటెక్చర్లలో సాధారణ కార్యకারితను కేంద్రీకృत చేయడానికి ఉపయోగపడుతుంది.
API గేట్వే ఏమి చేస్తుంది
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
సాధారణ గేట్వే బాధ్యతలు
✓ 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
