SpinTheMic
Pro

Interview practice question

Should you cache stock levels?

System Design · Caching · Intermediate

An e-commerce team wants to cache stock levels to speed up product pages. Is that a good idea?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Display stock can be cached briefly.
  • Show approximate ("only a few left").
  • Never use cached stock to confirm purchase.
  • Reserve stock against DB at checkout.
  • Invalidate on big changes.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics