PrepCity

Cache invalidation

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 7 pages · about 5 min

Cache invalidation

Delete the cached key after the database commits, deliver that delete reliably, and fence the race that refills an old value.

Words you’ll learn

  • Cache
  • PostgreSQL
  • Outbox
  • Event
  • Commit
  • Row
  • Redis
  • API
  • Database
  • Stale read

Page by page