Design a Smart Grid Meter Telemetry Ingestion Engine
Our energy utility company is rolling out next-generation smart electricity meters across millions of residential and commercial properties. We need a system that ingests high-frequency telemetry from these meters, detects real-time grid anomalies such as sudden voltage sags or localized outages, and stores the readings for billing and analytical queries.
This brief is incomplete on purpose, as it would be in a real interview. Ask the interviewer about the users, the features, the targets and the traffic. Whatever you uncover is added below.
Nothing uncovered yet.
Nothing uncovered yet.
Nothing uncovered yet.
- End-to-end system architecture diagram showing the write-heavy ingestion path from meters to storage.
- Real-time stream processing and windowing topology for anomaly and outage detection.
- Multi-tiered time-series data storage and downsampling strategy.
- Data partitioning, sharding, and backpressure mitigation design for storm-induced burst events.
Demonstrates a robust partition and load-balancing strategy capable of sustaining massive write throughput (over 5 million writes per second sustained) using distributed message queues sharded by meter ID or regional grid transformer node without creating hot partitions.
Designs a low-latency stream processing pipeline using stateful tumbling or sliding windows aggregated by grid topology (substations, transformers) to detect voltage sags, power outages, and last-gasp signals within the 5-second deadline.
Defines a multi-tiered storage model separating hot ingestion raw data from cold historical rollups, specifying automated compaction routines (15-second to 15-minute to daily rollups) and storage engine selection optimized for write-heavy append workloads.
Addresses extreme peak write bursts during widespread blackouts using client-side exponential backoff with jitter, stateless API edge buffers, message queue priority lanes for last-gasp alerts, and graceful degradation.
Provides an effective mechanism for handling out-of-order data arrival, network retry duplicates, and clock drift across millions of meters using event-time processing, watermark strategies, and idempotent write patterns.
Every functional requirement in the brief is visibly served by something on the board, and the non-functional targets are addressed rather than ignored.
Components are labelled, data flows are drawn as connections between them, and the direction of each flow is unambiguous.
Focus on the write-heavy telemetry ingestion path, real-time stream processing for anomaly detection, and time-series data storage tiers. Edge hardware firmware logic, physical cellular base-station connectivity, and monthly billing invoice generation are out of scope.