N-tier architecture
Splitting an app into layers, each with 1 responsibility, that can run on separate machines. A higher layer uses the one below, never the other way around.
Example
An online store with 3 layers: interface, business logic and data, each on its own server.
Test yourself: N-tier architecture
N-tier architecture
In N-tier, the data layer can call the interface layer.
Calls go from top to bottom: of the 3 layers, data is the last one and calls none.
N-tier architecture
The logic layer is overloaded and the other 2 are idle. Which N-tier advantage do you use?
You add 3 servers only to the logic, without paying for extra interface and data machines.
N-tier architecture
Adding tiers always lowers latency.
Each tier adds 1 network hop: with 4 tiers at 5 ms each, that's 20 ms extra.
0/3
â–¶ Play