📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials Microservices API Gateway

API Gateway

5 min read Quiz at the end
API Gateway is the single entry point — handles auth, routing, rate limiting, and SSL for all services.

API Gateway Pattern

Single entry point for all clients — centralises auth, rate limiting, routing, SSL, and observability.

# Without gateway (bad)
Client --> user-service:3001
Client --> product-service:3002
Client --> order-service:3003

# With gateway (good)
Client --> gateway:80
  gateway --> user-service
  gateway --> product-service

# Kong declarative config
services:
  - name: user-service
    url: http://user-service:3001
    routes: [{paths: ["/api/users"]}]
plugins:
  - name: jwt
  - name: rate-limiting
    config: {minute: 100}
Topic Quiz · 1 questions

Test your understanding before moving on

1. What does an API Gateway do in a microservices architecture?
💡 The API Gateway is the single entry point — centralising cross-cutting concerns for all services.