Cache hit
When the requested data is in the cache and is served from there, without going to slow storage.
Example
Of 100 requests, 90 are hits answered in 1 ms; the other 10 go to the database and take 50 ms.
Lessons that use it
What system design is
Think before you build
Kinds of load balancers
Not all load balancers are alike
Cache
What's asked often, close at hand
Evicting and spreading the cache
The cache fills up
CDN
Content close to every user
Availability
Counting the nines
Scaling
Bigger or more machines
Memory and cache
Close is fast
Backtracking
Try, and if it fails, go back
SQL or NoSQL
Picking the right database
Consistent hashing
A ring to split the load
Database federation
Several databases that look like one
Rate limiting
A cap on requests
Idempotency
Repeat without breaking anything
Disaster recovery
Running again after the disaster
Requirements and estimates
Ask before you draw
