Problem Statement: Keeping a Fleet Legal, Safe, and Earning
Frames maintenance scheduling as a revenue-protecting reliability system, not a calendar app.
Problem statement
Design a vehicle maintenance scheduling app that keeps a mixed fleet — ride-share drivers' personal cars, last-mile delivery vans, and corporate transport vehicles — serviced before breakdowns happen. The system must ingest mileage, engine-hours, and OBD-II diagnostic trouble codes (DTCs) from vehicles, evaluate time-based and usage-based maintenance triggers, automatically create work orders, book service-center appointments while managing vehicle downtime, and retain a complete service history for compliance and resale.
This is not a reminder app. A missed oil change on a personal car costs an engine; a missed brake inspection on a ride-share vehicle can injure a passenger and trigger a regulatory fine. The design therefore separates maintenance correctness (the right task fires at the right threshold, exactly once, and is provably executed) from operational convenience (a nice calendar, a push notification). The former is an invariant; the latter is a projection.
Why this question is different
Most ride-sharing system design prep focuses on real-time matching, geospatial indexing, and surge pricing. This question tests a different muscle: stateful, rule-driven workflow automation over high-frequency telemetry. The dominant workload is not request/response; it is a continuous stream of odometer and DTC events that must be evaluated against per-vehicle rule configurations, deduplicated, escalated, and converted into durable work orders that survive crashes, retries, and clock skew.
The four architectural planes
- Telemetry plane: OBD-II dongles and vehicle CAN buses report mileage, engine-hours, fuel level, battery voltage, and DTCs over cellular to an ingestion edge.
- Rules and decisioning plane: trigger evaluation, DTC severity classification, ML-based failure prediction, and work-order creation with exactly-once semantics.
- Workflow plane: work orders, appointment scheduling, service-center coordination, parts inventory, cost tracking, and downtime management.
- Intelligence and audit plane: service history, compliance evidence, model training pipelines, and cost analytics.
A strong answer keeps these planes separate. Telemetry loss must never silently drop a critical DTC. A scheduler outage must never delete an open work order. An ML model rollout must never retroactively change which thresholds applied to last month's work order.
Public operating baseline versus design assumptions
Public evidence establishes the category. Geotab reported over 4.7 million subscribed vehicles under management in its 2025 annual results. Samsara reported fiscal 2025 ARR of approximately $1.45 billion, serving fleets with millions of connected assets. Amazon's Rivian electric delivery vans report predictive-maintenance telemetry continuously, and Rivian's service model centers on over-the-air diagnostics. Uber requires vehicle inspections for drivers and publishes inspection-form requirements per market. These are cited company figures for context, not requirements for our fictional system.
For capacity planning, this answer explicitly assumes: 200,000 vehicles registered, 120,000 actively reporting, one telemetry envelope every 10 seconds from active vehicles (with smart sampling), 60,000 work orders created per month, and a 4× event peak during recall campaigns or harsh-weather weeks. Unless tied to a citation, every number is a stated design assumption.
Key Highlights
- •Maintenance correctness is an invariant; notifications and calendars are projections that may degrade.
- •The dominant workload is continuous telemetry evaluation, not user request/response.
- •Four planes: telemetry, rules/decisioning, workflow, intelligence/audit.
- •Public fleet figures set context; every uncited scale number here is an explicit assumption.
- •A missed critical DTC is a safety incident; a delayed notification is an operational bug.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate maintenance correctness from notification convenience: the former must fail closed, the latter may degrade."
- "Before choosing services, let me define which decisions are rule-driven, which are ML-driven, and which need human approval."