Skip to content

Commit fb71c83

Browse files
committed
Improve the picture in raftable README.
1 parent 546bc70 commit fb71c83

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

contrib/raftable/README

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,17 @@ number becomes at least V and returns 'ok' to the frontend.
1616

1717
The backend can also issue commands to itself through C API.
1818

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 ╴╴╴╴╴╴╴╴╴╴┴╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶╶
3630

3731
C API:
3832
/* Gets value by key. Returns the value or NULL if not found. */

0 commit comments

Comments
 (0)