Grokking the System Design Interview
0% completed
Server-Side Caching vs Client-Side Caching
A bug puts a wrong price into an API response, and the response is cached. How the team fixes the wrong price depends on where the cached copies are.
If the copy is in the team's own Redis cache, they delete one key, and every user sees the correct price immediately. If the copies are in a million users' browsers, the team cannot delete them. Each browser keeps showing its own copy until it checks with the server again, or until that copy expires.
Both kinds of caching keep a copy of a response, so the system does not repeat the work that produced the response
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%