File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,35 +17,37 @@ Matchbook is a decentralized exchange infrastructure that provides:
1717
1818## Architecture
1919
20- ```
21- ┌─────────────────────────────────────────────────────────────────────────┐
22- │ Clients │
23- │ (Web Apps, Trading Bots, SDKs) │
24- └─────────────────────────────────────────────────────────────────────────┘
25- │
26- ┌───────────────┼───────────────┐
27- │ │ │
28- ▼ ▼ ▼
29- ┌───────────┐ ┌───────────┐ ┌───────────┐
30- │ REST API │ │ WebSocket │ │ Direct │
31- │ :8080 │ │ :8081 │ │ On-chain │
32- └─────┬─────┘ └─────┬─────┘ └─────┬─────┘
33- │ │ │
34- └───────────────┼───────────────┘
35- │
36- ┌─────────────┴─────────────┐
37- │ │
38- ▼ ▼
39- ┌───────────────┐ ┌─────────────────┐
40- │ Indexer │ │ Solana Program │
41- │ (Geyser) │◄────────│ (On-chain) │
42- └───────┬───────┘ └─────────────────┘
43- │
44- ▼
45- ┌───────────────┐
46- │ Database │
47- │ (TimescaleDB)│
48- └───────────────┘
20+ ``` mermaid
21+ flowchart TB
22+ subgraph Clients["Clients"]
23+ C1[Web Apps]
24+ C2[Trading Bots]
25+ C3[SDKs]
26+ end
27+
28+ subgraph API["API Layer"]
29+ REST["REST API<br/>:8080"]
30+ WS["WebSocket<br/>:8081"]
31+ Direct["Direct<br/>On-chain"]
32+ end
33+
34+ subgraph Backend["Backend Services"]
35+ Indexer["Indexer<br/>(Geyser)"]
36+ Program["Solana Program<br/>(On-chain)"]
37+ DB["Database<br/>(TimescaleDB)"]
38+ end
39+
40+ Clients --> REST
41+ Clients --> WS
42+ Clients --> Direct
43+
44+ REST --> Indexer
45+ REST --> Program
46+ WS --> Indexer
47+ Direct --> Program
48+
49+ Program --> Indexer
50+ Indexer --> DB
4951```
5052
5153## Quick Start
You can’t perform that action at this time.
0 commit comments