Engrain by ByteRush

SD.08.02 Mid-level

Caching in the backend

Comes up in: Backend design

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • cache-aside, read-through, write-through, write-behind
  • TTLs
  • invalidation
  • thundering herd and request coalescing
  • Redis basics
  • CDN caching of APIs

Words you will know

cache-asidewrite-throughthundering herd

What you will practise

  • choose a caching pattern for 4 cases

Interview questions this answers

  • Explain cache-aside and how you keep the cache consistent.
  • Write a query for the top 3 products by revenue in each category.