Skip to main content
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
[![Real-Time Ride-Hailing Dispatch & Geospatial Matching — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_ride-hailing/opengraph-image)](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_7

COMPONENT STACK (8)

  • Rider & Driver AppsSTATELESS
    GPS ping every 4s
  • Location Ingest GWSTATELESS
    Validates GPS -> H3 cell index
  • In-RAM H3 Geo IndexSTATEFUL
    Sharded by city / H3 res-7
  • Dispatch MatcherSTATELESS
    Batched 2s bipartite matching
  • Road-Graph ETA SvcSTATELESS
    Contraction hierarchies + traffic
  • Trip State MachineSTATEFUL
    Atomic offer lock
  • Surge Pricing StreamSTATELESS
    Supply/demand ratio per H3 hex
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (7)

  1. Rider & Driver Apps → Location Ingest GW (Driver GPS)[WSS/gRPC]
  2. Location Ingest GW → In-RAM H3 Geo Index (Update H3)[RAM]
  3. In-RAM H3 Geo Index → Dispatch Matcher (K-ring)[gRPC]
  4. Road-Graph ETA Svc → Dispatch Matcher (Compute)[gRPC]
  5. Trip State Machine → Dispatch Matcher (Lock)[CAS/SQL]
  6. In-RAM H3 Geo Index → Surge Pricing Stream (Aggregate)[Kafka]
  7. Surge Pricing Stream → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →