Node.js · Senior · Question 39 of 75

What is a cache stampede, and how can you prevent it?

Explanation

Coalescing inside one process means sharing one in-flight promise per key. Across instances use a short lock in Redis or stale-while-revalidate.

Further reading

Problem with a question

Node.js · Senior · question 39

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz