Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Tractor Telemetry System

Collect sensor readings from a fleet of tractors that often work out of cellular range, then show farm managers where each tractor is now, what it did over a past day, and which ones report a fault.

Problem statement

Design the backend that gathers telemetry (regular sensor readings sent from a machine to a server) from a fleet of tractors and makes that data useful to the people who manage those tractors.

For this exercise, assume each tractor carries an onboard unit that reads its GPS position, engine speed, fuel level, engine temperature and fault codes, and talks to the cloud over a cellular link.

Tractors often work in fields with no coverage for hours, so the unit stores readings on its own flash memory and uploads them when the link returns. Each tractor belongs to one farm.

Farm managers use a web dashboard to see their tractors, look back at a tractor's past readings, and get told when a tractor reports a fault.

For this exercise, also assume the cloud never sends instructions or new software to the tractors, and that billing and machine-learning analysis of the data are out of scope. A reading the cloud has acknowledged must never be lost, and a reading that is uploaded twice must be stored once.

What to build

  1. A tractor uploads its readings while it has coverage, and uploads the readings it stored while out of range once the link returns; each reading is kept exactly once.
  2. A farm manager sees every tractor on the farm with its latest position, fuel level, engine state and the time it was last heard from.
  3. A farm manager picks one tractor and a time range, such as yesterday, and sees its path and readings over that range.
  4. When a tractor reports a fault code, such as an overheating engine, the farm's managers are notified.

At scale

  • For this exercise, assume 100,000 tractors; in planting and harvest season up to 60,000 run at the same time, and a running tractor records a reading of about 500 bytes every 5 seconds.
  • A tractor can be out of range for up to 12 hours and then upload everything it stored; many tractors come back in range at about the same time in the evening.
  • A reading that arrives while the tractor is in range shows on the dashboard within 10 seconds, and a fault alert goes out within 1 minute of the fault reading reaching the cloud.
  • Full-detail readings are kept for 90 days; after that, one summary per tractor per minute is kept for 3 years.