Introduction

The entry point to backend services.

Client (Web / Mobile)
        ↓
     API Gateway
        ↓
  ┌───────────────┐
  │ User Service  │
  │ Order Service │
  │ Payment Svc   │
  └───────────────┘

===============================
  
The client only need to knows
<https://api.yourapp.com>

Not:
user-service:8081
order-service:8082
payment-service:8083

When to use an API Gateway:

✅ Microservices architecture

✅ Multiple clients (web + mobile)

✅ Need centralized auth & rate limiting

✅ Want clean, stable APIs

WSO2