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.
- 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
- 1Client calls the gateway
- 2It authenticates
- 3It limits and routes
- 4It returns the response
Where it is used
Microservices.
Watch out for
A central bottleneck if poorly scaled.