Skip to content
StackDecode
System Design
10. API Design and Management11. Microservices ArchitectureAnimated

API Gateway

A front door for all API traffic.

The idea

Handles auth, rate limiting, routing, caching and logging in one place.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientAPI gatewayAuthOrdersCatalogData
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Every client request enters through the gateway.

step:
1/4
at:
Client
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Client calls the gateway
  2. 2It authenticates
  3. 3It limits and routes
  4. 4It returns the response

Where it is used

Microservices.

Watch out for

A central bottleneck if poorly scaled.

Related