Skip to content

Commit 472fd2a

Browse files
committed
docs(skeleton for gateway follower): initial napkin sketches
1 parent e182165 commit 472fd2a

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

docs/src/architecture/.pages

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ nav:
1212
- 10_quality_requirements.md
1313
- 11_technical_risks.md
1414
- 12_glossary.md
15-
- 13_follower.md
15+

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

+35-8
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,44 @@
22
icon: material/telescope
33
---
44

5-
# Gateway Follower
6-
7-
85
## Mechanics
96

107
```mermaid
11-
graph TD;
12-
A-->B;
13-
A-->C;
14-
B-->D;
15-
C-->D;
8+
stateDiagram-v2
9+
state if_state <<choice>>
10+
[*] --> Node
11+
Node -->if_state
12+
if_state --> !Config: config does not exist
13+
if_state --> Config : config exists
14+
15+
16+
note right of !Config
17+
Orchestration is coordinated via the config
18+
end note
19+
20+
state Node {
21+
[*] --> init
22+
init --> [*]
23+
}
24+
state Config {
25+
[*] --> CheckDB
26+
CheckDB --> Locked
27+
Locked --> CheckDB
28+
CheckDB --> Unlocked
29+
Unlocked --> Lock
30+
Lock --> UpdateDB
31+
UpdateDB --> Unlocked
32+
33+
}
34+
35+
state !Config {
36+
[*] --> Sleep
37+
Sleep --> CheckConfig
38+
CheckConfig --> Sleep
39+
CheckConfig --> ConfigExists
40+
ConfigExists --> [*]
41+
}
42+
1643
```
1744

1845
## Bootstrap

0 commit comments

Comments
 (0)