Back

Case Study

Ride-Hailing Backend

A Java and Spring Boot REST API for authentication, routing, ETA estimation, driver dispatch and ride control.

Role

Personal Project

Period

Personal project

Location

Not applicable

Stack

Java, Spring Boot, Spring Security

The Challenge

Coordinate nearest-driver dispatch and enforce a consistent ride lifecycle while keeping an audit trail.

Engineering Approach

Haversine-ranked candidates receive sequential offers. Redis TTL keys and keyspace notifications cascade expired offers without polling or in-process timers. A finite state machine enforces the ride lifecycle alongside an append-only event stream.

What I Worked On

  • • Built authentication, routing, ETA estimation, driver dispatch and ride control APIs
  • • Implemented event-driven nearest-driver dispatch with Redis TTL keys and keyspace notifications
  • • Enforced the ride lifecycle with a finite state machine and append-only event stream
  • • Added JWT access and refresh tokens, RBAC, rate limits and abuse quotas with Spring Security
  • • Used transactional consistency, ELK structured logging and Docker Compose

Tech Stack

JavaSpring BootSpring SecurityPostgreSQLRedisMapboxELK StackDocker Compose

Impact

  • → Event-driven driver dispatch
  • → No polling or in-process timers
  • → Replayable ride audit trail

Related Expertise

Want something similar?Let’s talk →