Building Hyperscale IoT Services With TLA+
summary
Azure IoT uses TLA+ model checking to find rare race conditions before coding, catching a subtle two-failure sequence that breaks a naive connect/disconnect notification design. The fix uses monotonically increasing in‑memory sequence numbers, rate‑controlled DB writes capped (example: ~100k/s) and a background checkpointing thread that replays notifications; the model iterates in days and the implementation goes to production unchanged. Claims: early detection of critical design flaws, massive reduction in post‑production issues, and practical scaling for billions of devices.
AI-written summary · about
chapters (26)
- 0:00Intro
- 0:43What is IoT
- 1:25How IoT works
- 1:54Why TLA
- 2:30Product Lifecycle
- 3:30Model Check
- 4:44Scope of Verification
- 5:25Pure Views
- 5:48Message Routing
- 6:02Distributed Cache
- 6:23Concrete Project
- 6:39Problem Statement
- 8:17Basic Approach
- 11:45TLA Model
- 12:22State
- 13:10Invariant
- 14:00Error trace
- 14:50Solution
- 16:10Demo
- 18:37Model Modification
- 19:11Invariants
- 19:55TLA Toolbox
- 20:48Design Changes
- 22:49Questions
- 25:46Command Line
- 27:59Conceptual Library
