Layered Architecture
Updated 2026-08-10
Summary
A layered architecture divides a system into layers that talk only to neighbors, isolating complexity and enabling replacement.
Definition
In a layered architecture the system is sliced by abstraction or responsibility into layers, where each layer depends only on the layer immediately below it and offers services to the one above, through stable interfaces. The mechanism is separation of concerns: volatile parts are separated from stable ones, higher-level policy is decoupled from lower-level implementation, and a single layer can be replaced without disturbing the others. Familiar instances include the OSI seven-layer model, corporate hierarchy, and Maslow's hierarchy of needs.
Introduction
How to use
- Slice by responsibility: cut the system into layers with one job each. - Fix the interfaces: allow calls only between adjacent layers so dependencies stay one-way. - Swap freely: replace any layer that still honors the interface contract.
Mechanism
Dependencies are forced to flow in one direction through stable interfaces, so a change inside one layer cannot ripple arbitrarily through the system. Because each layer hides its internal complexity from the one above, the total cognitive load is roughly the sum of the layers rather than their product.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- The OSI seven-layer model lets network protocols evolve independently at each level.
- A company replaces its data layer without touching the business logic sitting above it.
Common pitfalls
- Allowing layers to call across the boundary quietly destroys the encapsulation you built.
- Too many layers add latency and complexity instead of removing it from the system.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Multitier_architectureverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS