PrepCity

Write-through caching

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 · 6 pages · about 4 min

Write-through caching

A write reaches the database and the cache before it is reported done, with a durable intent to repair the cache when it fails.

Words you’ll learn

  • Request
  • Idempotency key
  • Retry
  • API
  • Database
  • Cache
  • Row
  • Outbox
  • Redis
  • SQL

Page by page