~/talk

Weeks of Debugging Can Save You Hours of TLA+

Talkat Craft Conference 2023 · 2023-05-18..05-19· [distributed-systems]
github:lemmy
slides:none on file

A TLA+ model of a simple webshop reproduces a real-world bug: after about 1800 reads the backend sometimes sees no order because replication lag plus the wrong consistency level causes a missing read. The model checks all executions, produces the shortest counterexample in ~10 steps, and a 200-line database abstraction helps experiment with fixes: switching to strong vs eventual consistency or using session consistency with the correct session token eliminates the anomaly.

AI-written summary · about

  1. 0:00TLA+ methodology intro
  2. 1:07Distributed system approaches
  3. 4:15Pierogi webshop prototype
  4. 8:11End-to-end prototype tests
  5. 10:00Modeling system with TLA+
  6. 16:26Consistency bug in testing
  7. 19:39Debugging with TLA+
  8. 24:18Fixing with stronger consistency
  9. 27:36Session consistency solution
  10. 31:06Database abstraction in TLA+
  11. 33:13TLA+ and non-determinism
  12. 35:02Who uses TLA+
  13. 37:11TLA+ benefits beyond verification
  14. 38:38Q&A: Spec and code sync
  15. 41:03Q&A: When to use TLA+
  16. 42:07Q&A: Automating TLA+ specs
  17. 43:08Closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.