Skip to content

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

Topics Distributed systems

Resilience

Retries, timeouts, backpressure, load shedding, graceful degradation.

Search within Resilience, or combine it with other topics →

Last week

Week of Nov 16

Week of Nov 9

Lyft Engineering

Beyond Test Cards: A Fake Payment Provider for Testing at Scale

Case study 15 min +150 XP

Lyft built a Fake Payment Provider that implements the same provider interface as real processors (tokenize, authorize, increment, capture, charge, refund, void), so it can simulate partial failures, soft declines with retries, pending responses, timeouts and outages that processor test cards cannot.

Self-service regional failover with Amazon Application Recovery Controller Region Switch and centralized ingress controls

How-to 17 min +170 XP

Application teams in regulated enterprises can run self-service multi-Region failover behind a centralized ingress proxy fleet by owning a Route 53 Private Hosted Zone failover recordset while a central team owns peered Transit Gateways and VPC attachments.

Eventually Consistent: How Do We Know the Systems Eventually Agree?

Deep dive 9 min +90 XP

Eventually consistent event-driven order systems need a reconciliation job that starts from the authoritative order store, not from received messages, so orders whose events were lost (like a fraud-hold release that never reached SAP) still surface.

Sentry

How a broken release name overloaded our symbolication database

Incident 7 min +70 XP

A handful of customer releases with unexpanded names like `VERCEL_GIT_COMMIT_SHA` accumulated tens of millions of URL index rows in Sentry's Postgres 14 files database, and an unbounded source-map URL lookup kept scanning them, timing out and being retried.

Week of Nov 2

ClickHouse

Fencing a Postgres primary that might still be alive

Case study 10 min +100 XP

Before promoting a standby, a managed Postgres control plane must fence the old primary, because promotion and DNS changes alone don't stop writes: async standbys, per-session synchronous_commit overrides, quorum commit with a remaining standby, and canceled commits already in WAL can all let a still-alive primary accept writes.

Week of Oct 26

Week of Oct 19

Week of Oct 12

Railway

Production Postgres on Railway: From First Deploy to High Availability

How-to 13 min +130 XP

Railway Postgres can grow from a single private-networked database to a production setup with volume backups, point-in-time recovery, PgBouncer connection pooling and Patroni-based high availability, demonstrated with an orders API that uses idempotency keys so retries stay safe.

Meta Engineering

Turning Opportunistic AI Inference Capacity Into Better Ads Recommendations

Case study 10 min +100 XP

Meta aggregates locally idle inference capacity, stranded by peak provisioning, delivery timing, resource-ratio and accelerator-type mismatches, into a preemptible opportunistic pool used to improve ads recommendations.

Week of Oct 5

Modal

Endpoint Candidates: evaluate and promote inference endpoints

Announcement 3 min +30 XP

Endpoint Candidates let Modal users stage alternative deployments of a Dedicated Endpoint, such as new checkpoints or different models, mirror a sample of production traffic to them, measure latency, throughput, cost and quality, then promote a winner from the dashboard to the existing URL.

Week of Sep 28

Week of Sep 14

How We Built Automated Capacity Testing for Kafka Consumers

Case study 7 min +70 XP

Booking.com extended its HTTP capacity-testing platform to Kafka consumers by using partition assignment as the load knob: a custom priority-aware partition assignor shifts extra partitions onto one target instance step by step, reproducing failure-induced load concentration without killing healthy consumers.

Week of Sep 7

Week of Aug 31

Week of Aug 17

Week of Aug 10

Week of Aug 3

Week of Jul 27

Week of Jul 13

Together AI

What does 99.9% uptime mean for inference?

Opinion 7 min +70 XP

Each additional nine of inference availability corresponds to surviving a larger failure domain: 99% means surviving node-level GPU faults via health checking, draining and fast replica replacement; 99.9% requires weights in two data centers serving live traffic with enough capacity on each side to absorb full load; 99.99% needs multi-region deployment with reserved idle failover capacity.

Week of Jul 6

Week of Jun 29

Railway

Incident Report: July 2, 2026 — US East Services Outage

Incident 8 min +80 XP

An upstream Tier 1 carrier's backbone degradation caused packet loss between Railway's US regions, and while routing around it, engineers disconnected the last carrier supplying a default route to a first-generation US East site, leaving it without a stable internet route for about 20 minutes.

Week of Jun 8

Week of Jun 1

When failover isn’t safe: Building high-availability PostgreSQL on Kubernetes

Case study 22 min +220 XP

A staging gameday simulating zonal network latency left Datadog's Kubernetes-hosted PostgreSQL clusters stuck: with asynchronous replication, every standby exceeded Patroni's maximum_lag_on_failover, so no failover candidate could be promoted safely.

Week of May 25

Slack Engineering

Slack AI: The Path to Multi-Cloud

Case study 14 min +140 XP

Slack AI's LLM serving evolved over three years through four phases: self-managed AWS SageMaker endpoints in an escrow VPC, Amazon Bedrock Provisioned Throughput, a hybrid of Provisioned Throughput and On-Demand with spillover routing, and finally a multi-cloud setup adding GCP Vertex AI.

Week of May 18

Week of May 11

Week of May 4

Week of Apr 27

Sourcegraph

Lessons on UX, security, and scale when building an enterprise-grade Slack agent

Case study 5 min +50 XP

Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details.

Week of Apr 6

Scaling Managed Agents with stable interfaces

Case study 9 min +90 XP

Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic `execute(name, input) → string` tool call.

Week of Feb 23

Week of Feb 16

Week of Jan 19

Week of Jan 12

Week of Dec 15, 2025

The Day Our Own Queries DoS’ed Us: Inside Zalando Search

Incident 10 min +100 XP

A Zalando Elasticsearch cluster serving two large markets was overwhelmed by a self-inflicted denial of service: a bug in an internal maintenance workload made an application send only 20-100 requests per second of faceting queries aggregating on SKU, a unique-per-product, extremely high-cardinality field.

Week of Dec 1, 2025

Week of Nov 24, 2025

Week of Nov 17, 2025

Week of Nov 3, 2025

Week of Oct 20, 2025

Slack Engineering

Advancing Our Chef Infrastructure: Safety Without Disruption

Case study 13 min +130 XP

Slack split its single production Chef environment into six AZ-mapped environments (prod-1 to prod-6) so newly provisioned nodes no longer pull a possibly bad config from one shared source during scale-outs. prod-1 acts as an hourly canary taking the latest cookbook artifact, while prod-2 through prod-6 advance on a release train where a new version starts only after the previous one reaches prod-6.

Week of Oct 13, 2025

Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog

Incident 12 min +120 XP

A March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data.

Week of Sep 15, 2025

Supabase

Processing large jobs with Edge Functions, Cron, and Queues

How-to 8 min +80 XP

Large data-processing jobs on Supabase can be split into a three-layer pipeline: cron-triggered Edge Functions collect work, distributor jobs route it into per-source Postgres queue tables, and specialized workers process one item at a time to stay within serverless timeouts.

Week of Sep 8, 2025

Cost Optimisation in ECS: Integrating Spot Instances at Scale

Case study 5 min +50 XP

Deliveroo layered EC2 Spot Instances into its On-Demand ECS clusters by routing only workloads that pass hard eligibility rules: stopTimeout under 120 seconds, desiredCount of at least 2, stateless with no local or persistent storage, and ELB deregistration delay under 120 seconds.

Week of Aug 25, 2025

The quest for software engineering knowledge.

Look:
Layout: