System Design
3. Client-Server ArchitectureAnimated
Client-Server Model
Clients request services and servers provide them.
The idea
Clients start the conversation; servers listen and respond. Many clients can share one server.
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
The client sends a request over the network.
- step:
- 1/3
- at:
- Client
1/7
The green dot is a request moving through the system.
Step by step
- 1Client sends a request
- 2Server processes it
- 3Server sends a response
- 4Client displays the result
Where it is used
Websites, mobile apps, APIs.
Watch out for
The server is a central point that must scale and stay up.