0 day streak
Anonymous · shared experience20 Sept 2025 · 6 views

Swiggy: Cab booking system: riders, drivers, allocation and trip status

Interview question #Swiggy SDE 2 Low-level design

Problem. Design a cab booking system at the class level.

Entities expected. Rider, Driver, Cab and Trip.

Core flows.

  • A rider books a ride
  • The system assigns an available driver to the booking
  • The ride moves through its statuses until the trip is complete

Deliverables. A class diagram, the end-to-end flow of a booking, and the API surface for the main operations.

Follow-ups. How the design holds up at higher scale, and how it handles edge cases in booking and allocation.

The candidate had about four years of experience. This round followed a coding round with a hard graph problem on shortest paths with a limited number of hops. The post did not give exact edge cases or numbers, so treat this as an open-ended design prompt where you drive the requirements.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.