Design Navigation Alerts System. (Similar like Google Map Functionality.)
MediumLet's design a navigation and alerts system akin to Google Maps, but focusing on the core LLD aspects. Forget the massive scale and distributed nature; we're building an in-memory simulation to showcase excellent design.
Imagine you're building a system for a car's navigation unit. The system needs to:
- Calculate routes between two points.
- Provide turn-by-turn directions.
- Alert the driver about upcoming events (traffic jams, accidents, speed cameras, etc.) along the route.
- Dynamically re-route based on real-time events.
This problem requires a strong understanding of OOD principles and design patterns to create a flexible, maintainable, and testable system. The heart of the challenge lies in the efficient and scalable (within memory constraints) route management and alert triggering mechanisms.
Requirements
Interview Simulation
Experience a realistic interview conversation. The interviewer will ask clarifying questions,and you'll reveal your understanding of the requirements.
Let's start by understanding the scope. What are the core functionalities this system needs to provide?
💡 Interview Tip
Identify the Actors (Who uses the system?) and their Use Cases (What are they trying to achieve?). Start with the 'Happy Path' scenarios.