Four-Layer Web Architecture
Described in Domain Driven Design. Common in OO applications.
For mobile apps,
Memoization
Three-Layer Web Architecture
Purists consider “layer” a logical, categorical distinction and tier a physical distinction. So a 3-layer web app could run on a single tier.
What happens when you type a URL in your browser?
NP Hard
no polynomial time know solution for this problem