System Design Daily
In this report · 3 items
Coverage: 18 November 2026 22:13 – 19 November 2026 22:13 Europe/London (GMT)
TL;DR: Datadog’s three-generation metrics aggregation redesign shows how moving durable reconciliation into storage lets the streaming layer resume at the live edge; paired with recent ProdRescue pieces on history reconstruction and subtle distributed bugs, the day’s strongest material is about where correctness lives versus where speed lives.
Resources & articles
- How we scaled metrics aggregation by moving durable state into storage (Datadog, 17 Nov 2026, Khayyam Guliyev) — Read first. Concrete walk-through of three architectures for high-volume metrics aggregation. First generation used static partitions and local RocksDB; second added dynamic Kafka assignment and blob snapshots; third makes the streaming layer best-effort and lets storage merge partial aggregates, drop duplicates, and incorporate late data. Main lesson: once recovery cost dominates, durable correctness belongs in the storage layer so workers can restart without replaying hours of history. Assumptions: most data arrives on time; storage already has strong reconciliation primitives. Trade-off is more complex storage query and compaction paths.
- Your Database Is Correct. Your System’s History Is Wrong (ProdRescue / Engineering Under Pressure, 18 Nov 2026). Catalogue of ways databases, CDC streams, Kafka, caches and projections can each be locally correct yet produce an irrecoverable or incorrect business history. Covers out-of-order events, snapshot/stream boundary mismatches, schema evolution that reinterprets old events, and the difference between a balance and a ledger. Practical pattern: carry an authoritative aggregate version and apply updates only when the incoming version is higher. Useful for anyone designing recovery, backfills or audits.
- The Most Dangerous Bugs in Distributed Systems Don’t Look Like Bugs (ProdRescue, 18 Nov 2026). Short, concrete list of failure modes that pass individual component checks: ABA problem (value looks unchanged after a round-trip), lease expiry without fencing, dual writes, backfills that overwrite live updates, and readiness probes that ignore blocked workflows. Defences are mostly versioning, fencing tokens, single authoritative writers, and explicit state-machine transition rules.
Pattern spotlight
Storage-side reconciliation of partial aggregates. Problem: streaming workers that own durable aggregation state become hard to scale and recover once volume forces frequent reassignment or restarts. When it applies: high-throughput pipelines (metrics, events, counters) where most data is timely but correctness still requires handling late arrivals, duplicates and partial results. Main trade-off: the critical path becomes simpler and can resume immediately, but the storage engine must implement merge, deduplication and late-data logic that used to live in the workers. Source: Datadog engineering post.
News worth knowing
- Cloudflare Workers Observability ingestion delay and query failures (identified 19 Nov 16:30 UTC, ongoing at report time). Customers see delayed new telemetry and elevated error rates when querying Workers Observability and Cloudflare Traces. Practical implication: systems that rely on edge-level distributed tracing or Workers telemetry for causal diagnosis currently have a temporary blind spot; fall back to application-level instrumentation or longer retention of local logs until the incident closes. Status page.
Quiet day for brand-new primary research; the strongest signal is the Datadog case study plus the ProdRescue pieces on history and subtle bugs.