Backend & APIs

SwipeRide: Real-Time Ride Sharing API

Real-time driver dispatch and ride matching backend.

Node.jsExpress.jsMongoDBJWT
SwipeRide: Real-Time Ride Sharing API architecture and preview
Click to zoom

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

Technologies & Tools Used

Node.jsExpress.jsMongoDBJWTSocket.ioRedisGoogle Maps API

Project Links & Source

ShreyashSrivastava.in

Backend software engineer and full-stack developer. Former SDE intern at JBH Tech Innovation, graduating from ITS Engineering College in 2026.

Quick Links
© 2026 Shreyash Srivastava. All rights reserved.