PrepCity

Optimistic concurrency

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 · 8 pages · about 5 min

Optimistic concurrency

Each save names the version it was based on; the update only matches that version, so a stale save changes nothing and the user is asked to reload.

Words you’ll learn

  • API
  • ETag
  • Row
  • PostgreSQL
  • Conditional update
  • Idempotency key
  • Request
  • Retry
  • Stale read

Page by page