System Design
3. Client-Server ArchitectureAnimated
Two-Tier Architecture
A client talking directly to a data tier.
The idea
The client application holds the logic and connects straight to the database.
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 desktop or mobile app contains the interface and the business logic.
- step:
- 1/3
- at:
- Client app
1/5
The green dot is a request moving through the system.
Step by step
- 1Client app starts
- 2It sends queries directly to the database
- 3The database returns data
- 4The client renders it
Where it is used
Small internal tools.
Watch out for
Database credentials and logic live in the client, which is hard to secure and scale.