System Design
3. Client-Server ArchitectureAnimated
Layered Architecture
Code organised in layers with downward dependencies.
The idea
Typical layers are presentation, business logic and data access. Each layer talks only to the one beneath it.
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
Each layer talks only to the layer below it.
- step:
- 1/4
- at:
- Presentation
1/10
The green dot is a request moving through the system.
Step by step
- 1UI layer receives input
- 2Business layer applies rules
- 3Data layer reads and writes
- 4Results flow back up
Where it is used
Most enterprise applications.
Watch out for
Layers become pass-through and slow changes.