-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtest.js
More file actions
52 lines (51 loc) · 1.16 KB
/
test.js
File metadata and controls
52 lines (51 loc) · 1.16 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
graph TD
%% ─── Client Layer ───
subgraph Client
A[Web (Next .js + React)]
B[Mobile (Flutter)]
end
%% ─── Edge/API Layer ───
subgraph Edge
G[API Gateway<br/>FastAPI + GraphQL<br/>+ gRPC/HTTP2]
WS[Realtime Hub<br/>WS / GraphQL Sub]
Auth[AuthN/Z<br/>OAuth2 + OIDC + RBAC]
end
%% ─── Core Services ───
subgraph Core
STRAT[Strategy Svc<br/>DSL → Graph]
PORT[Portfolio Svc]
LLM[LLM Svc<br/>Writer/Judge]
BK[Backtest Cluster<br/>Ray + DuckDB]
EXEC[Execution Svc<br/>IBKR FIX/REST]
KB[(Signal & Insight Graph<br/>Postgres + Qdrant + Neo4j)]
end
%% ─── Data / Infra ───
subgraph DataInfra
DL[S3 Data Lake<br/>Parquet / Delta]
STREAM[Kafka / Redpanda]
CACHE[Redis / KeyDB]
METRICS[Prometheus<br/>+ Grafana]
end
%% Flows
A -->|GraphQL| G
B -->|GraphQL| G
G --> Auth
G --> WS
G --> STRAT
G --> PORT
G --> LLM
STRAT --> BK
BK --> KB
LLM --> KB
PORT --> EXEC
EXEC --> KB
EXEC --> STREAM
STREAM --> PORT
STREAM --> WS
DL --> BK
DL --> LLM
KB --> STRAT
KB --> LLM
KB --> PORT
CACHE <--> Core
METRICS -->|scrape| Core