← System Design learning pathSystem Design · Module 7 of 10
APIs and communication
Design how services talk to each other.
📖 Key ideas
- REST over HTTP is the most common API style.
- gRPC uses Protocol Buffers for fast service-to-service calls.
- GraphQL lets clients request exact data.
- WebSockets enable real-time two-way communication.
- API gateways handle routing, auth and rate limiting.
💡 Real-life example: An API gateway is a building reception routing visitors to the right office and checking their passes.
RESTResource-based HTTP API style
gRPCHigh-performance RPC framework
WebSocketPersistent two-way connection
API gatewaySingle entry point for APIs