System Design · Middle · Question 8 of 75

What caching layers exist between the user and the database?

Explanation

Each layer offloads the next and reduces latency: client data cache (TanStack Query), HTTP cache via headers, SW for offline, CDN at the network edge, Redis and render cache on the server. The hard part is consistent invalidation.

Further reading

Problem with a question

System Design · Middle · question 8

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz