Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M7844

Layered Architecture

Layered Architecture
Learn & MetacognitionHigh supportCognitive Science
Included
account_tree

Updated 2026-08-10

Loading revision record…

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.

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/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Multitier_architectureZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS