System Design · Middle · Question 11 of 75

Why is cache invalidation called one of the hardest problems?

Explanation

The same data sits in the CDN, the server cache, the client cache and on multiple pages. Tags (revalidateTag, key-based invalidation), short TTLs with SWR and event-driven invalidation after mutations help.

Further reading

Problem with a question

System Design · Middle · question 11

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