ExperienceProjectsView DesignsCertificationsBlogsContact

Real-Time Fleet Matching — Matching Engine Architecture

Low-latency driver–rider matching system with geospatial indexing, pub/sub events, and high-frequency updates.

Technologies

RedisWebSocketsKubernetesGeoHashAWSNode.js

Overview

The fleet matching engine powers the real-time assignment of the closest available drivers to riders.
It achieves sub-second latency through in-memory geospatial indexing and a highly optimized event loop.

Built originally as an MVP, it later scaled into a production-ready matching platform.


Architecture Diagram

flowchart LR
  Rider --> GW[Gateway]
  Driver --> GW
  GW --> Matching[Matching Engine]
  Matching --> Redis[(Redis Geo)]
  Matching --> Payment[Payment Service]
  Matching --> Events[(Kafka)]