Boss lesson · Unit 01
The standard web stack
Know every box between the browser and the database
What you practise
- Client, DNS, CDN, load balancer, stateless app servers, cache, database, queue, object storage: what each is for, and one request traced through all of them
Try a question from this lesson
Pick one
A shop runs on one machine: web server, code, database and uploaded images. A big sale is coming. What is the deepest problem with this design?
Correct answer
One machine is both the ceiling and the only copy
Why
When that machine is full the shop cannot grow, and when it dies everything is gone at once. The standard stack exists to remove both limits: several servers for each job, and each kind of data in a home built for it.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
The standard stack
Almost every web system starts from this sketch. Each box has one job, and most can be more than one machine.
Read it top to bottom: that is the path a request takes.
Client
| DNS: name -> IP address
v
CDN static files, near users
v
Load balancer spreads requests
v
App servers x N, keep no state
|-> Cache hot answers, in RAM
|-> Database the source of truth
|-> Queue -> Workers slow jobs
'-> Object storage files11 more exercises in the app
- 1× match the pairs
- 1× order the lines
- 5× multiple choice
- 1× fill the blanks
- 1× true or false
- 2× type the answer
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.