Tracking moving things: high-rate location updates
A delivery company's control room has a wall map with a pin for every van. Each driver radios in every few minutes, and a clerk moves that van's one pin, never adding a second. The map is split into sections, so "who's near the depot?" is answered from one. A pin unmoved for half an hour comes off, and the drivers' logbooks are filed separately for the accounts.
Vans are drivers' phones, and radioing in is a position update every 4 seconds, arriving on a log keyed by driver. Moving the one pin is overwriting the driver's latest position in memory, the sections are map cells spread over Redis shards, and taking a pin down is dropping a driver silent for 30 seconds. The logbooks are the history, kept from the same log. Interviewers listen for whether you separate the latest position from the history and pick a key that serves "near me". The move: put every update on a log keyed by driver, keep only each driver's latest position in memory, overwritten and keyed by map cell, and keep the history from the same log.