Case study: designing a liveness system for 1 million IoT devices sending heartbeats
A system design exercise for detecting disconnected devices: requirements with numbers, an estimate of 333K heartbeats/s, four options (a last_seen column, Redis ZSET, a timing wheel in workers per Kafka partition, delay messages), how to prevent false alarms when consumers lag or a whole region goes dark, and how to present it in 45 minutes.