Repository navigation
Expand file tree
/
Copy pathdi.js
More file actions
29 lines (25 loc) · 1.59 KB
/
Copy pathdi.js
File metadata and controls
29 lines (25 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
flowchart TD
node_main["Server Entry Point<br/>repository code<br/>[main.go]"]
node_handler["Command and State Handling<br/>repository code<br/>[handler.go]"]
node_resp["RESP Protocol<br/>repository code<br/>[resp.go]"]
node_aof["Append-Only Persistence<br/>repository code<br/>[aof.go]"]
node_clients(("RESP Clients<br/>external system"))
node_database_aof["database.aof<br/>runtime artifact"]
node_clients -->|"connects to"| node_main
node_main -->|"processes RESP"| node_resp
node_resp -->|"dispatches commands"| node_handler
node_handler -->|"formats responses"| node_resp
node_handler -->|"appends SET"| node_aof
node_aof -->|"writes"| node_database_aof
click node_main "https://github.com/sandstrompl/own-redis/blob/main/main.go"
click node_handler "https://github.com/sandstrompl/own-redis/blob/main/handler.go"
click node_resp "https://github.com/sandstrompl/own-redis/blob/main/resp.go"
click node_aof "https://github.com/sandstrompl/own-redis/blob/main/aof.go"
classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_handler,node_resp,node_aof,node_clients,node_database_aof toneNeutral