Skip to content
StackDecode
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.

PresentationBusinessPersistenceDatabase
  • 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

  1. 1UI layer receives input
  2. 2Business layer applies rules
  3. 3Data layer reads and writes
  4. 4Results flow back up

Where it is used

Most enterprise applications.

Watch out for

Layers become pass-through and slow changes.

Related