SysPad › Examples › Ride-hailing app
Ride-hailing app
Uber-style: API gateway, ride service, Redis geo cache, trip store, a Kinesis location stream feeding a Lambda matching engine, and Stripe payments.
A real-time stream + async matching path, with the user request ending at the queue.
- Throughput: 12,000 req/sec
- First to saturate: API Gateway
- Estimated cost: $71k/mo
How it works
- Driver Geo Cache
- Redis geo index of nearby drivers, read on the hot path of every ride request.
- Location Stream
- Location pings fire-and-forget onto the stream; matching runs async, off the rider request.
Request flows
Request a ride
- DNS
- API Gateway
- Ride Service
- Driver Geo Cache
- Pricing Service
- Trips Table
Driver location ping
- DNS
- API Gateway
- Ride Service
- Location Stream
- Matching Engine
- Driver State
- Push Notifications
Complete trip
- DNS
- API Gateway
- Ride Service
- Trips Table
- Payments