ArchDeck · 115 cards

← All families
Open full library ↗
← Back to family

A2 · Architecture Styles

Layered Architecture

Systems in Tiers

Overview

Separate concerns into horizontal layers. Presentation, business logic, data access. Each layer only talks to the layer below. Classic, proven, and everywhere.

When to use

  • Traditional business applications
  • Clear separation of concerns needed
  • Different scaling needs per tier
  • Teams organized by technical specialty

Quick assessment

  • Do UI, business logic, and data access have different change rates?
  • Do you need to scale tiers independently?
  • Is your team organized by technical specialty?

In practice

How it works

Application coordinates rules and repository access.

Make it work

Keep business rules in the domain. Use application handlers and repository interfaces to protect the boundary.

The trade-off

Pass-through layers add ceremony. Shared models and business rules in UI or database code make boundaries ineffective.

Does each layer have a purpose beyond passing data along?

Key patterns

  • Strict layering (each layer only calls the one below)
  • Relaxed layering (can skip layers)
  • Layer-specific models
  • Dependency inversion at boundaries

Counter-patterns

  • Layers as bureaucracy (passing data unchanged)
  • Business logic leaking to UI or data layers
  • Too many layers for problem complexity
  • Shared models across all layers

Reality check

Layered architecture is so common it's often invisible. Most frameworks assume it. But layers can become bureaucratic pass-through when misapplied.

NFR profile

security
4/5
usability
3/5
performance
3/5
reliability
4/5
scalability
3/5
testability
4/5
availability
3/5
extensibility
3/5
maintainability
4/5
Explore the full library and printable cards