Problem Statement: A Real-Time Energy Marketplace on a Map
Frames the EV charging locator as a geospatial, real-time, cyber-physical marketplace rather than a static directory.
Problem statement
Design an EV charging station locator platform that lists every charging station in a region, shows which connectors are free or in use right now, lets a driver reserve a time slot or join a queue at a busy station, displays energy pricing, integrates account-based payment, sends notifications when a station frees up or a charging session completes, and collects reliability ratings from drivers.
This is not a map directory. A station's occupancy changes every few seconds as vehicles plug and unplug, chargers fault, and network gateways lose connectivity. A driver who is told a stall is free, drives 12 minutes to it, and finds it broken or occupied is stranded with 6 percent battery. The design therefore separates three concerns: catalog correctness (the station exists and its connectors, plug types, and power levels are right), live availability correctness (the free/occupied/broken state is current within a freshness budget), and physical resource control (a reservation actually blocks a connector so two drivers cannot claim the same stall).
Why the problem is distinctive
A restaurant listing can be stale by weeks and still be useful. A charging stall that is stale by five minutes can strand a driver. The distinctive engineering properties are:
- The source of truth for occupancy is a physical device (the charge point controller), not a database row. The platform must speak the device protocol, tolerate device silence, and decide what 'no heartbeat' means.
- Availability is read-heavy and extremely bursty around mealtimes, holiday corridors, and rush hours, while writes are continuous telemetry from hundreds of thousands of connectors.
- A reservation turns an informational product into a transactional one: the platform must guarantee exclusive ownership of a connector for a bounded window, across retries, restarts, and network partitions.
- Pricing is heterogeneous: per-kWh, per-minute, idle fees, membership tiers, roaming markups, and time-of-day tariffs, all of which must agree with the invoice the driver receives.
Public operating baseline versus design assumptions
Public evidence establishes that the category is real and large. Tesla reports more than 70,000 Superchargers and V3/V4 stalls across its network and has opened the connector standard (NACS) to other automakers. ChargePoint reports hundreds of thousands of activated ports across its network and millions of cumulative sessions. EVgo reports over a thousand DC fast-charging stations in the United States. The US Department of Energy's AFDC database lists roughly 200,000 public charging ports in the country as of 2025. PlugShare aggregates community-reported listings across hundreds of thousands of locations worldwide. These are company-reported or public-registry figures used for context.
For capacity planning, this answer explicitly assumes a mature multi-network platform with 500,000 stations, 2,000,000 connectors, 20,000,000 registered drivers, 3,000,000 daily active drivers, and 4,000,000 charging sessions per day, with a 5x event peak. Unless a number is tied to a public figure above, it is a stated design assumption, target, or budget.
The four architectural planes
- Station plane: device gateways, OCPP sessions, heartbeat ingestion, remote commands, firmware status.
- Availability plane: connector state machine, freshness scoring, geospatial index, map projections.
- Commerce plane: reservations, queues, pricing, payment authorization, charge detail records, refunds.
- Experience plane: search, routing, notifications, ratings, support, and analytics.
A strong answer keeps these planes separate. The experience plane may degrade to stale data, but the commerce plane must never sell a connector that the availability plane cannot prove is reservable.
Key Highlights
- •Occupancy truth lives in the charge point hardware, not the database; silence from a device is a design case, not an edge case.
- •Model availability as freshness-bounded projections and reservations as strongly consistent exclusive leases.
- •Public platform figures provide context; every uncited scale or SLO in this answer is an explicit design assumption.
- •The architecture has four planes: station, availability, commerce, and experience.
- •A wrong 'free' label can strand a driver, so accuracy is a safety-adjacent product requirement, not a nice-to-have.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate catalog correctness, live availability correctness, and physical resource control, because each needs a different consistency model."
- "Before choosing databases, let me define which decisions are device-driven, platform-driven, and driver-driven."