ARCHOS 525 BLUEPRINT · /d/dgm_ride-hailing
Real-Time Ride-Hailing Dispatch & Geospatial Matching
8 COMPONENTS · 7 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_ride-hailing) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_ride-hailing)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_ride-hailing" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Real-Time Ride-Hailing Dispatch & Geospatial Matching — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Rider & Driver Apps"]
loc_1["Location Ingest GW"]
geo_2[("In-RAM H3 Geo Index")]
mat_3["Dispatch Matcher"]
eta_4["Road-Graph ETA Svc"]
trip_5[("Trip State Machine")]
srg_6["Surge Pricing Stream"]
downstream_7["Downstream & OTel"]
client_0 -->|"1. Driver GPS · WSS/gRPC"| loc_1
loc_1 -.->|"2. Update H3 · RAM"| geo_2
geo_2 -->|"3a. K-ring · gRPC"| mat_3
eta_4 -->|"Compute · gRPC"| mat_3
trip_5 -->|"Lock · CAS/SQL"| mat_3
geo_2 -->|"3b. Aggregate · Kafka"| srg_6
srg_6 -.->|"4. Emit / · OTLP/API"| downstream_7COMPONENT STACK (8)
- Rider & Driver AppsSTATELESSGPS ping every 4s
- Location Ingest GWSTATELESSValidates GPS -> H3 cell index
- In-RAM H3 Geo IndexSTATEFULSharded by city / H3 res-7
- Dispatch MatcherSTATELESSBatched 2s bipartite matching
- Road-Graph ETA SvcSTATELESSContraction hierarchies + traffic
- Trip State MachineSTATEFULAtomic offer lock
- Surge Pricing StreamSTATELESSSupply/demand ratio per H3 hex
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (7)
- Rider & Driver Apps → Location Ingest GW (Driver GPS)[WSS/gRPC]
- Location Ingest GW → In-RAM H3 Geo Index (Update H3)[RAM]
- In-RAM H3 Geo Index → Dispatch Matcher (K-ring)[gRPC]
- Road-Graph ETA Svc → Dispatch Matcher (Compute)[gRPC]
- Trip State Machine → Dispatch Matcher (Lock)[CAS/SQL]
- In-RAM H3 Geo Index → Surge Pricing Stream (Aggregate)[Kafka]
- Surge Pricing Stream → Downstream & OTel (Emit /)[OTLP/API]