SwipeRide: Real-Time Ride Sharing API
Real-time driver dispatch and ride matching backend.

Overview
Ride-sharing API built with Node.js, Express, MongoDB, and Redis. It handles live driver location tracking, fare estimates, and fast pickup matching with dynamic radius expansion.
Problem Statement
Constantly recalculating nearest drivers for active ride requests creates heavy database reads that slow down typical query setups.
Architectural Solution
Implemented MongoDB 2DSphere indexes to run radius searches, cached driver coordinates in Redis for instant lookups, and broadcasted ride status changes over Socket.io.
Key Features & Engineering Highlights
Geospatial driver lookup using MongoDB 2DSphere indexes
Sub-5ms driver coordinate reads using Redis in-memory storage
Automatic search radius expansion when nearby drivers are scarce
Real-time trip updates sent over WebSockets