Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Smart Thermostat Telemetry Platform

Ingest device readings, expose current and historical conditions, deliver versioned settings, and reconcile safely after disconnection.

Problem statement

Design the software platform for smart thermostats that sense temperature and transmit readings wirelessly.

FastPrep exercise assumptions: each device also senses humidity; communication is bidirectional so a household application can update target settings and schedules; the platform supports device enrollment, current and historical readings, command acknowledgement, offline status, and fleet observability.

Assume 2 million registered thermostats report every 10 seconds at steady state, accepted readings should appear to the household within two seconds at p99, and commands should reach a connected device within five seconds at p99.

A thermostat continues safe local control while disconnected, buffers at most six hours of readings, and reconciles to the newest desired configuration after reconnecting. Heating hardware control algorithms, billing, weather forecasting, voice assistants, and firmware distribution are outside scope.

What to build

  1. Enroll a thermostat into one household with a unique authenticated device identity.
  2. Accept retry-safe temperature and humidity readings and expose current plus historical views.
  3. Store versioned target settings and schedules and deliver the newest desired state to the device.
  4. Expose command acknowledgement, reported configuration version, and explicit offline or stale state.

At scale

  • For this exercise, assume 2 million thermostats report one reading every 10 seconds, or about 200,000 readings per second at steady state.
  • For this exercise, assume each device may reconnect with up to six hours of buffered readings, and reconnect admission must bound burst load.
  • For this exercise, retain high-resolution readings for 30 days and hourly aggregates for two years.