You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 02-inconsistency.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,14 @@ Time →
83
83
California node: curtail -80 ──────────────────────────► gm1 sees it first
84
84
New York node: dispatch +100 ────────────► gm1 sees it second
85
85
↓
86
-
gm1 final: -130 MW ✓ no event
86
+
gm1 final: -50 MW ✓ no event
87
87
88
88
California node: curtail -80 ────────────────────────────────────────────────► gm2 sees it second
89
89
New York node: dispatch +100 ──────────────────────────────► gm2 sees it first
90
90
↓
91
-
gm2 final: -50 MW ✓ no event
91
+
gm2 final: -130 MW ✓ no event
92
92
93
-
But gm1 (-130) ≠ gm2 (-50): INCONSISTENT STATE!
93
+
But gm1 (-50) ≠ gm2 (-130): INCONSISTENT STATE!
94
94
```
95
95
96
96
In a real grid, this inconsistency means the two control centers have **contradictory views of grid health**. Automated systems making decisions based on these views could take opposing corrective actions, worsening the situation.
Copy file name to clipboardExpand all lines: 06-cal-theorem.md
+22-25Lines changed: 22 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,34 +28,31 @@ The CAL theorem says that strong consistency requires enough waiting, or enough
28
28
29
29
## The Design Space, Summarized
30
30
31
-
Here is a map of the designs from this tutorial against the consistency-availability tradeoff:
31
+
Here is a map of the designs from this tutorial against the consistency-availability tradeoff. Step 5 is shown as two paths because it deliberately gives different guarantees to different classes of commands:
32
32
33
33
```
34
34
CONSISTENCY
35
-
▲
36
-
│ Step 4 (Chandy-Misra, maxwait=forever)
37
-
│ Strong consistency
38
-
│ Availability: unbounded wait on failure
39
-
│
40
-
│ Step 3 (Timestamps, finite maxwait)
41
-
│ Strong consistency when maxwait ≥ latency
42
-
│ Availability: bounded wait (<= maxwait)
43
-
│ Risk: fault is possible if maxwait < actual latency
44
-
│
45
-
│ Step 5 (Hybrid)
46
-
│ Strong consistency for curtailments (maxwait=forever)
47
-
│ Bounded availability for dispatches (maxwait=30ms)
48
-
│ Fault handler handles occasional stale estimates
0 commit comments