Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics Distributed systems

Scaling

Scaling a system to more traffic or data, and what broke.

Search within Scaling, or combine it with other topics →

November 2026

claude.dev

Using a "chaos loop" to harden the Claude Docs launch: 60 server errors across billions of requests

Case study 11 min +110 XP

Before launching Claude Docs, a two-week "chaos loop" had Claude Code drive a production-mirroring staging cluster at over a million synthetic docs a day, inject failures (mass reconnects, killed servers, stalled databases, hot docs), read Datadog telemetry, and ship fixes, with a human approving only hard-to-undo changes like schema or storage layout.

October 2026

September 2026

PlanetScale

Handling hot shards

Opinion 7 min +70 XP

When a shard key like tenant_id stops matching reality because a few whale tenants dominate load or cross-tenant queries appear, Neki (PlanetScale's sharded Postgres from the Vitess maintainers) offers three escalating fixes: vertically scale the hot shard with its own configuration profile, isolate the whale by narrowing hashed key ranges in the declarative data topology, or reshard specific tables by a better key.

August 2026

ClickHouse

Shopify powers observability for global-scale commerce with ClickHouse

Case study 8 min +80 XP

Shopify consolidated metrics, logs, traces, exceptions and profiles from multiple vendors onto Observe, an internal observability platform built on self-hosted ClickHouse, and saw a 16x query improvement out of the box (over 30x at peak) along with predictable costs.

20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

Case study 13 min +130 XP

Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP.

July 2026

June 2026

May 2026

March 2026

February 2026

January 2026

November 2025

October 2025

September 2025

ClickHouse

How Exabeam uses ClickHouse for scalable, searchable security analytics

Case study 6 min +60 XP

Exabeam runs its security analytics platform on ClickHouse Cloud across 10 regions, ingesting up to 1.2M events/sec per region (80B+ daily, 3.5 PB raw compressed to 200 TiB), with compute-compute separation that isolates write, merge and read nodes.

August 2025

Scaling down to speed up: How we improved efficiency of live process metrics by 100x

Case study 8 min +80 XP

Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant.

July 2025

June 2025

May 2025

Heroku Engineering

SignalR Scalability: Scaling Real-Time SignalR Applications on Heroku

How-to 11 min +110 XP

Scaling a SignalR chat app across multiple Heroku dynos takes two pieces: a Redis backplane so every instance relays hub messages to its own connected clients, and sticky sessions so long-lived WebSocket connections stay pinned to one dyno.

April 2025

March 2025

Etsy Code as Craft

Behind the Scenes - A Glimpse into Tax Calculations

Case study 4 min +40 XP

Etsy calculates marketplace tax by calling Vertex's tax engine: a Quotation Request SOAP call when items are added to cart, and DistributeTaxRequest calls at order creation, cancellation and refund so Vertex's tax journal holds a complete record for reporting and remittance.

Scaling Nextdoor’s Datastores: Part 2

Case study 4 min +40 XP

Letting product engineers manually choose replica vs. primary routing in Django broke down as abstractions hid read-after-write dependencies, and the common workaround of wrapping logic in transactions sent everything to the primary, slowly eroding the capacity gained from read replicas.

February 2025

Achieving relentless Kafka reliability at scale with the Streaming Platform

Case study 10 min +100 XP

Datadog runs hundreds of Kafka clusters with millions of partitions and built the Streaming Platform, a control layer that decouples producers and consumers from specific clusters through "Streams" spanning clusters, AZs and Kubernetes environments.

December 2024

Scaling Scientific Data: Migrating Benchling’s Schema Model for Performance at Scale

Case study 10 min +100 XP

Benchling replaced its PostgreSQL entity-attribute-value (EAV) storage for schema field values with a single JSONB column per entity, cutting row counts and per-row overhead that had slowed automated assay-result ingestion.

November 2024

October 2024

September 2024

June 2024

May 2024

Render

Distributing Global State to Serve over 1 Billion Daily Requests

Case study 11 min +110 XP

Render's request routers evolved from per-instance in-memory caches with 5-minute TTLs and database lookups on miss, which overloaded PostgreSQL on every redeploy and failed during database downtime, to push-based caching using PostgreSQL LISTEN/NOTIFY so routers never query the database in the hot path.

April 2024

ClickHouse

Didi Migrates from Elasticsearch to ClickHouse for a new Generation Log Storage System

Case study 11 min +110 XP

Didi replaced Elasticsearch with ClickHouse for petabyte-per-day log and trace storage, cutting machine cost by 30% and speeding up queries about 4x on a 400+ node single-replica deployment peaking at 40 GB/s writes and ~200 QPS.

March 2024

Meta Engineering

Logarithm: A logging engine for AI training workflows and services

Case study 11 min +110 XP

Logarithm is Meta's internal serverless, multitenant log indexing service, written in C++20 with coroutines, that ingests over 100 GB/s of logs and serves thousands of queries per second with SLOs on freshness, completeness, durability and latency.

January 2024

Horizontally scaling the Rails backend of Shop app with Vitess

Case study 27 min +270 XP

Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

December 2023

November 2023

October 2023

Supabase

Dynamic Table Partitioning in Postgres

How-to 20 min +200 XP

Postgres range partitioning can be retrofitted onto an existing "large table" (here, 500 million chat messages) without blocking queries by creating standalone daily child tables, bulk-loading them, adding a CHECK constraint that matches the partition range, and only then running ATTACH PARTITION so Postgres skips the validation scan and its blocking lock.

September 2023

August 2023

April 2023

Slack Engineering

Real-time Messaging

Case study 6 min +60 XP

Slack's real-time messaging runs on four Java services: stateful in-memory Channel Servers sharded by consistent hashing, regionally deployed Gateway Servers holding websocket subscriptions, stateless Admin Servers bridging the Webapp backend, and Presence Servers tracking online users.

February 2023

The quest for software engineering knowledge.

Look:
Layout: