Idempotency when you don't control the other end
When an accounting or ERP API offers no idempotency key, a timed-out write leaves the caller unable to tell whether entries were booked, and the usual workarounds each fail in practice.
Topics Distributed systems
Coordination and failure across multiple machines (general).
Search within Distributed systems, or combine it with other topics →
When an accounting or ERP API offers no idempotency key, a timed-out write leaves the caller unable to tell whether entries were booked, and the usual workarounds each fail in practice.
Booking.com’s search engine generates personalised hotel offers at request time instead of precomputing and indexing every possible room/date/price combination, which would be combinatorially infeasible.
The Agent Host Protocol (AHP) is an open standard that lets multiple clients (VS Code, the Copilot app, mobile apps, custom tools) share the same long-running agent sessions, so work started on one device can continue on another.
Tailscale clients can now cache the network map (netmap) to disk, so nodes start faster and can reach peers even when the coordination server is unreachable after a restart.
Datadog's metrics aggregation service, which merges DDSketch distributions to reduce tag dimensions, went through three generations as volume grew roughly 10× each time.
Airbnb has open-sourced Skipper under Apache 2.0, an embedded durable workflow engine for Java and Kotlin that runs inside a service and stores workflow state in the service's existing database, with no separate orchestration cluster.
Jetstream will be fully compatible with AT Protocol spaces, so apps that consume public atproto data can read non-public space data with the same client and replay-then-live cursor model.
DBOS Transact adds workflow rewind to any step, which discards checkpoints from that step onward and re-executes while preserving the workflow ID.
An atmospheric group, as defined by the community opensocial.group proposal, is its own atproto DID that owns a set of permissioned spaces.
GitHub has moved nearly all Git repositories to replicas split between its own data centers and Azure.
Orbital compute creates a harder problem for stateful systems than for GPUs: data must be replicated, coordinated and placed across a moving constellation.
Modal rebuilt its sandbox control plane to run 1 million concurrent sandboxes, creating all of them in under a minute, by removing central coordination and durable stores from the creation path.
Bobbin is a read-only, API-only AppView for Tangled that serves the sh.tangled.* atproto lexicons over XRPC while holding everything in RAM.
Datadog measures ingestion data completeness per customer by splitting pipelines into segments and recording create and acknowledgment events keyed by unique payload IDs in 60-second time buckets.
An automated Google Cloud account suspension took Railway's GCP-hosted control plane, API, dashboard and databases offline for about 8 hours.
GitHub Enterprise Server's HA mode is replacing its single Elasticsearch cluster spanning primary and replica nodes with independent single-node clusters per server, linked by Elasticsearch Cross Cluster Replication (CCR).
OpenAI replaced hard rate-limit stops for Codex and Sora with a real-time access engine that treats rate limits, free tiers, credits, promotions and enterprise entitlements as layers in a single decision waterfall evaluated per request.
Multi-node GPU training spreads foundation model training across many 8-GPU servers by combining data, tensor and pipeline parallelism over NVLink within nodes and InfiniBand/RoCE between them, with periodic checkpointing to survive the near-daily hardware failures of 100-node clusters.
Five core event-driven architecture patterns, compared with their tradeoffs: event notification (thin signals that force consumers to call back), event-carried state transfer (full payloads that decouple consumers at the cost of size and schema discipline), event sourcing with CQRS, choreography and orchestration.
Jane Street's Aria, a low-latency message bus with strong ordering guarantees, already had unit, simulated-network, quickcheck, AFL fuzz, version-skew, lab and chaos tests, yet adding Antithesis's deterministic-hypervisor testing surfaced two unknown bugs on the first run.
When an application spans two stores without a shared transaction boundary, such as Postgres for account master data and TigerBeetle for the ledger, one must be designated the system of record and the other the system of reference.
Corrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus.
Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka.
Modal's Dict key-value primitive now has unlimited storage, durability, a 7-day TTL that is refreshed on both reads and writes (previously 30 days since last write with a 10GiB cap), and a `skip_if_exists` flag on `.put()` that works as a distributed lock.
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.
Meta handles leap seconds for its nanosecond-precision PTP service by self-smearing inside the fbclock library, which shifts its returned Window of Uncertainty {earliest_ns, latest_ns} by 1 ns every 62.5 µs.
Linear added an EU region by replicating its entire production deployment per region rather than sharding the database, keeping each region isolated and letting engineers keep writing against a single Postgres instance.
Replit re-sharded the infrastructure that runs Repls (Goval) from a few unbalanced, multi-region clusters partitioned by user membership into uniformly sized, single-region clusters with Repls distributed by consistent hashing, shrinking failure domains and removing cross-region traffic.
Elixir nodes can discover each other for distributed Erlang clustering through Postgres LISTEN/NOTIFY, which avoids a cloud-specific discovery service.
Design by contract mostly reduces to types and assertions, but a real contract needs two parties: the same condition asserted at both the definition site and the call site.
ClickHouse Keeper is a C++ drop-in replacement for ZooKeeper with the same client protocol and data model.
Slack moved its critical user-facing services in us-east-1 to a cellular architecture where each availability zone is a cell that can be drained, after a 2021 gray-failure network outage in one AZ caused user-visible errors across all AZs.
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.
Slack models every notification as its own distributed trace, using the notification_id as the trace_id and span links back to the sender's message trace, so notification flows can be sampled at 100% while ordinary backend requests stay at 1%.
Treating a fuzzer's byte slice as a finite PRNG unifies coverage-guided fuzzing with structured property-based testing: the entropy length measures input complexity, gives test-case minimization almost for free, and tells interactive simulations when to stop injecting faults.
Meta re-architected Async tier, its serverless asynchronous computing platform running multi-trillion workloads per day, by splitting an overloaded Dispatcher into data-source-specific "tailers" and a source-agnostic scheduler.
Meta manages capacity across its 14 data center regions with two systems built on Twine and RAS.
Leap seconds do more harm than good for modern computing, and Meta backs an industry push to freeze them at the current 27.
Owl is Meta's system for high-fanout distribution of large hot objects (executables, AI models, search indexes), pairing a decentralized peer-to-peer data plane with a centralized control plane of regional trackers that build ephemeral per-chunk distribution trees.
Meta raised TAO's cache consistency from six nines to ten nines (99.99999999% of cache writes consistent within five minutes) by treating consistency as a measurement and debugging problem rather than only a protocol problem.
BellJar is Meta's framework for proving that infrastructure services can recover from a total outage.
Delta is Meta's low-dependency object storage service for bootstrap and disaster-recovery workloads such as build and distribution artifacts.
A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic.
Meta's FOQS distributed priority queue moved from isolated regional installations on semi-synchronous replicated MySQL to a single global installation, after Hurricane Florence in 2018 exposed manual traffic rebalancing and items stuck on unreachable shards.
TigerBeetle builds a fault-tolerant "cluster time" by measuring clock offsets to peers during keepalive probes.
Replit made its repl hosting cluster-aware by running its own authoritative DNS server for *.repl.co, which resolves each repl's domain to the proxy load balancer in the cluster hosting that repl.
Shopify runs thousands of ProxySQL instances in front of MySQL and uses query rules to reroute, rewrite or reject queries matching a regex, often during incidents.
Replit split its infrastructure into multiple independent clusters (failure domains) after two load-related site-wide outages, moving paid Hacker users into their own cluster so future incidents affect only a subset of users.
Instagram's Threads messaging app cut media send latency in half, partly by fixing a "configure" endpoint that ran four times slower in one region.