System Design · Junior · Question 46 of 75

Why is a cache like Redis in front of the database useful under high load?

Explanation

Popular data (profiles, a catalog) is read from memory in fractions of a millisecond. The main difficulty is invalidation: when and how to update the cache after the data changes. Redis complements the main DB rather than replacing it.

Further reading

Problem with a question

System Design · Junior · question 46

Test yourself

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

Take this quiz