Skip to content

Commit 49e3c9c

Browse files
committed
docs(skeleton for gateway follower): initial napkin sketches
1 parent 7313a10 commit 49e3c9c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/src/architecture/08_concepts/gateway/mechanics.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ icon: material/airplane-cog
2424
[*] --> init
2525
init --> [*]
2626
}
27+
28+
state Follower {
29+
[*]
30+
}
31+
2732
state Config {
2833
checkConfigFromDB-->Database: release
2934
Database-->checkConfigFromDB: wait
@@ -40,9 +45,11 @@ icon: material/airplane-cog
4045
}
4146
State checkDB{
4247
tick --> UpdateThreshold
43-
UpdateThreshold --> tick
44-
UpdateThreshold--> updatedb: not updated recently
48+
UpdateThreshold --> tick: data is fresh
49+
UpdateThreshold--> Follower: data is stale
4550
updatedb --> tick
51+
updatedb-->Follower
52+
Follower -->updatedb
4653
}
4754
state Database{
4855
Unlocked --> Locked
@@ -65,8 +72,6 @@ icon: material/airplane-cog
6572
locked--> unlocked
6673
}
6774
}
68-
69-
7075
```
7176

7277
## Bootstrap

0 commit comments

Comments
 (0)