Salesforce LLD Round SMTS
Summary
I participated in an LLD (Low-Level Design) interview at Salesforce, where I was tasked with designing a cab booking service similar to Uber, focusing on core features such as ride requests, driver assignment, cancellations, and dynamic fare calculation.
Full Experience
During my LLD round at Salesforce, I encountered a fascinating problem: designing a cab booking service akin to Uber. The interviewer presented me with several key requirements that my design needed to incorporate. These included the fundamental ability for passengers to request rides and for available drivers to accept and fulfill those requests. It was also critical for the system to support passenger-initiated cancellations seamlessly. Users needed to specify both their pickup locations and desired destinations. A crucial component of the design was the fare calculation mechanism, which had to intelligently factor in variables like the distance traveled, the specific type of ride chosen, and the duration of the journey. I approached this by outlining the key architectural components, data models, and API endpoints necessary to support these functionalities, considering scalability and real-time updates.
Interview Questions (1)
I was asked to design a comprehensive Cab Booking Service similar to Uber. The system needed to support the following core functionalities:
- Allow passengers to request rides.
- Allow drivers to accept and fulfill rides.
- Allow passengers to cancel rides.
- Allow passengers to specify their pickup location and destination.
- Implement fare calculation based on distance, type of ride, and time.