PrepCity

Strong consistency

Open the lab

By the last page, this is the design you will have built.

Lesson · 8 pages · about 5 min

Strong consistency

Two shoppers race for the last voucher. A linearizable compare-and-set lets exactly one win, and any later read sees the winner.

Words you’ll learn

  • Request
  • API
  • Saga
  • Service

Page by page