Problem Statement: A Contract-Driven Mobility Platform
Frames car subscription as a finance-grade contract platform fused with an IoT telemetry platform, not a rental booking site.
Problem statement
Design a car leasing and subscription platform where individuals or businesses take a vehicle under a flexible plan (monthly flat, usage-based, or hybrid), the platform creates and services the legal contract, bills the subscriber each cycle, tracks mileage and time through an onboard telematics device, schedules maintenance, keeps insurance coverage continuously valid, and supports plan upgrades, downgrades, and vehicle swaps.
This is not a per-ride marketplace. The atomic unit is a contract that lasts months, carries recurring financial obligations, and binds a physical asset to a person. Two disciplines collide in one system: finance-grade correctness (a misbilled invoice or an invalid insurance state is a legal incident) and IoT-scale telemetry (a vehicle emits odometer, location, ignition, and fault data whether or not the billing service is up). The architecture must keep billing eventually correct even when the vehicle is offline, and keep the vehicle safe and tracked even when billing is down.
Why the problem is distinctive
A ride-hailing backend retries a notification. A subscription platform cannot retry a double charge quietly, cannot let an insurance policy lapse because a carrier API timed out, and cannot bill a customer for mileage the telematics unit fabricated during a clock skew. Three invariants dominate the design:
- Contract truth is durable and strongly consistent. One contract, one active plan, one vehicle assignment, one billing schedule. Overlapping invoices or two live insurance policies for the same VIN are correctness failures, not performance problems.
- Usage truth is eventually consistent but reconcilable. Telemetry arrives out of order, with gaps and duplicates. The platform must derive billable mileage from raw events through a deterministic, replayable pipeline with dispute evidence.
- Coverage continuity is a safety property. There must never be a moment when a driven vehicle has no valid insurance binding. Coverage transitions are therefore fenced, versioned, and monitored like a heartbeat.
Public operating baseline versus design assumptions
Public evidence establishes that the category is real and large. Hertz entered Chapter 11 in May 2020 with approximately USD 17 billion of debt and emerged in June 2021 after restructuring; that episode shows how capital-intensive fleet ownership is and why subscription economics and accurate utilization data matter. Sixt reports a global rental fleet in the low hundreds of thousands of vehicles and multi-billion euro revenue, and operates subscription-style products. Careem has publicly operated car subscription products in the Middle East. Volvo launched Care by Volvo as a flat-rate subscription. Tesla sells FSD as a subscription. These are cited public signals, not requirements for our fictional system.
For capacity planning this answer explicitly assumes a mature regional network with 400,000 registered subscribers, 350,000 active contracts, a managed fleet of 150,000 vehicles with aftermarket telematics units, and a month-end billing concentration factor of five. Unless a number is tied to a citation, it is a stated design assumption, target, budget, or illustrative threshold.
The four architectural planes
- Contract plane: quotes, KYC, contract state machine, plan catalog, proration, renewals, termination, and document evidence.
- Money plane: invoicing, payment orchestration, dunning, refunds, mileage overage charges, tax, and the ledger.
- Asset plane: fleet inventory, vehicle assignment, swap logistics, maintenance, and insurance bindings per VIN.
- Telemetry plane: onboard device identity, metering ingestion, gap detection, store-and-forward, reconciliation, and usage evidence.
A strong interview answer keeps these planes separate. The money plane may degrade into retry-with-backoff without weakening the contract plane, and the telemetry plane may buffer for days without corrupting an invoice, because billable usage is derived only after reconciliation closes.
Key Highlights
- •The atomic unit is a multi-month contract, not a ride; correctness beats latency for money and coverage.
- •Telemetry may be eventually consistent, but billable mileage must be derived by a deterministic, replayable reconciliation pipeline.
- •Insurance coverage continuity is treated as a monitored invariant, never an eventual side effect.
- •The architecture has four planes: contract, money, asset, and telemetry.
- •Public platform figures provide context; every uncited scale or SLO in this answer is an explicit design assumption.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate money correctness from telemetry availability: invoices may retry, but billable usage must be certified first."
- "Before choosing services, let me define which facts are strongly consistent (contract, ledger) and which are eventually consistent with reconciliation (usage)."