File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,17 @@ number becomes at least V and returns 'ok' to the frontend.
16
16
17
17
The backend can also issue commands to itself through C API.
18
18
19
- fork ┏━━━━━━━━━┓ sql ┏━━━━━━━━━━┓
20
- ┌─────────────┨ backend ┠───────┨ frontend ┃
21
- │ ┗┯━━━━━━━┯┛ ┗━━━━━━━━━━┛
22
- │ │shm │
23
- ┏━━━━┷━━━━━┓ ┏━━━┷━━━┓ │
24
- ┃ postgres ┠────┨ state ┃ │
25
- ┗━━━━┯━━━━━┛ ┗━━━┯━━━┛ │ tcp
26
- │ │shm │
27
- │ fork ┏━━━━┷━━━━━┓ │
28
- └─────────┨ raftable ┃ │
29
- ┗━┯━┯━┯━┯━┯┛ │
30
- │ raft│ │ │
31
- ┏━┷━┷━┷━┷━┷┓ │
32
- ┏┻━━━━━━━━━┓┠─┘
33
- ┏┻━━━━━━━━━┓┣┛
34
- ┃ raftable ┣┛
35
- ┗━━━━━━━━━━┛
19
+ ┓ ┏━━━━━━━━━┓┏━━━━━━━━━┓┏━━━━━━━━━┓ ┏━━━━━━━━━┓┏━━━━━━━━━┓┏━━━━━━━━━┓ ┏
20
+ ┃ ┃ backend ┃┃ backend ┃┃ backend ┠─┐ ┃ backend ┃┃ backend ┃┃ backend ┃ ┃
21
+ ┛ ┗━━━━┯━━━━┛┗━━━━┯━━━━┛┗━━━━┯━━━━┛ │ ┗━━━━┯━━━━┛┗━━━━┯━━━━┛┗━━━━┯━━━━┛ ┗
22
+ ╗ ╔════╧══════════╧══════════╧════╗ T ╔════╧══════════╧══════════╧════╗ ╔
23
+ ║ ║ state in shared memory ║ C ║ state in shared memory ║ ║
24
+ ╝ ╚═══════════════╤═══════════════╝ P ╚═══════════════╤═══════════════╝ ╚
25
+ ┓ ┏━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┓ │ ┏━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┓ ┏
26
+ ┃ ┃ raftable worker ┃ └─┨ raftable worker ┃ ┃
27
+ ┛ ┗━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┛ ┗━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━┛ ┗
28
+ ┆ ┆
29
+ ╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴╴┴╶╶╶╶╶╶╶╶╶╶ Raft over UDP ╴╴╴╴╴╴╴╴╴╴┴╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶
36
30
37
31
C API:
38
32
/* Gets value by key. Returns the value or NULL if not found. */
You can’t perform that action at this time.
0 commit comments