🏗️Layered Architecture
Also known as N-Tier Architecture, Three-Tier Architecture, Layers
An app split into stacked layers. Each one calls only the one below.
Think of it like
Think of it like a cake with layers. Each layer sits only on the one below it.
Example
In Jack's app, a button calls the order rules layer. That layer calls the data layer, which talks to the database. The button never touches the database.
Why it matters
Clear layers tell everyone where new code goes, which keeps a growing app in order.
Definition
Common mistake
Key takeaways
- 1Stacked layers. One kind of job each.
- 2Call one down. Never skip a layer.
- 3Easy to grasp. A common first shape.