AINORY — Social Taxi Carpool Matching Platform
A carpool coordination platform where drivers post trip offers and riders match in real time, with a backend engineered for high-availability and transactional integrity.
Challenge
Matching multiple concurrent riders to a single trip offer without race conditions, while delivering instant status updates and maintaining spatial query performance at scale.
Solution
Serialized match processing using PostgreSQL advisory locks to eliminate race conditions. Used ActionCable for instant match confirmations broadcast to all trip participants. Leveraged PostGIS for efficient spatial proximity queries to surface relevant trip offers.
Impact Metrics
Comparison before and after implementation.
Matching Conflicts
Frequent race conditions
→
Zero after advisory lock
Match Confirmation Time
> 1s
→
< 200ms end-to-end
Key Achievements
Zero Match Conflicts
Eliminated concurrent matching race conditions using PostgreSQL advisory locks.
Real-Time Confirmations
Instant match/rejection notifications delivered via ActionCable without polling.