Skip to content
StackDecode
System Design
3. Client-Server ArchitectureAnimated

Three-Tier Architecture

Presentation, application logic and data in separate tiers.

The idea

A web or mobile front end calls an application server which talks to the database. Each tier can scale and change independently.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

BrowserApp serverDatabase
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Presentation tier: the browser shows the interface.

step:
1/4
at:
Browser
1/9

The green dot is a request moving through the system.

Step by step

  1. 1UI sends a request to the app tier
  2. 2App tier runs business logic
  3. 3It reads or writes the data tier
  4. 4Response flows back to the UI

Where it is used

Most web applications.

Watch out for

The app tier becomes a bottleneck unless it is stateless and scaled out.

Related