Delta: A highly available, strongly consistent storage service using chain replication
Delta is Meta's low-dependency object storage service for bootstrap and disaster-recovery workloads such as build and distribution artifacts. It supports only put, get, delete and list, and gives up latency and storage efficiency for simplicity and reliability. Each bucket is sharded into chains of four or more hosts spread across failure domains, and objects map to a chain by consistent hashing. Writes enter at the head and are acknowledged once the tail has persisted them, and reads come from the tail, so only fully replicated data is visible and consistency is strong. The design compares chain replication with quorum replication, explains failure detection by sibling-host voting (a threshold of two votes) and timeout tuning, and covers later additions: apportioned queries that let every chain node serve reads, a control plane that automates chain repair, and global replication.
Related posts
- Litestream Revamped: SQLite Replication
Fly.io mediumAdeptLitestream is being reworked around ideas from LiteFS. It replaces the raw-WAL "shadow WAL" with transaction-aware LTX files, sorted page changesets that can be compacted LSM-style, so point-in-time restores no longer replay every intermediate page write. Conditional writes in S3 and Tigris provide a time-based lease that guarantees a single writer per destination without Consul, which removes the need for multiple "generations" and makes failover and replica resync simpler. Planned additions are a VFS-based read-replica layer that fetches and caches pages straight from object storage, and wildcard replication of hundreds or thousands of databases from one process.
- No more disks: the architecture behind stateless compute in ClickHouse Cloud
ClickHouse hardMaster
ClickHouse Cloud compute nodes are now fully stateless and diskless. The last local dependency, database metadata stored as .sql files, has been removed by a new in-memory Shared database engine backed by a versioned Shared Catalog in Keeper. The architecture got there in stages: SharedMergeTree moved table data to object storage, a distributed cache plus a userspace page cache replaced node-local caching, and the Shared Catalog replaced the Atomic and Replicated database engines. Centralized metadata enables fast bootstrapping without warm-up and DROP operations that don't require every node to be online. It also adds new DDL such as atomic INSERT … SELECT, cross-database RENAME and UNDROP, with selective invalidation of conflicting DDLs instead of a global lock, and extends stateless compute to Iceberg and Delta Lake.
- How we built a general purpose key value store for Facebook with ZippyDB
Meta Engineering hardMasterZippyDB is Facebook's largest strongly consistent, geo-distributed key-value store, built by layering a reusable replication library (Data Shuttle) on RocksDB, Shard Manager and a ZooKeeper-based config service. Shards of 50–100 GB hold tens of thousands of μshards, enabling transparent resharding. Each shard keeps a small Multi-Paxos quorum plus async follower replicas, with epoch-based leader leases assigned externally. Consistency is chosen per request: fast-ack or quorum writes, and eventual (actually bounded-staleness), read-your-writes or lease-based strong reads. Serializable transactions use optimistic concurrency control on the primary within an epoch, and conditional writes reuse that machinery server-side.
- Session revocations at scale
Canva Engineering mediumAdeptCanva moved its gateway session-revocation cache from per-pod MySQL loads to sorted binary chunks in S3, eliminating the database stampede when hundreds of gateway pods started during deploys. Revocations are packed into 16-byte records in sorted flat arrays split into 30-minute S3 objects. Gateways binary-search the downloaded bytes directly and refresh recent chunks with conditional GETs. A ZooKeeper-elected worker appends new revocations, using conditional PUTs for optimistic concurrency so that racing writers never lose updates. The theoretically O(N^2) rebuild still exceeds 2000 revocations/sec, memory use dropped 87.5%, and read replicas were cut to two.
- Corrosion
Fly.io mediumAdeptCorrosion 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. It works because Fly's orchestration makes individual workers the source of truth for their own state, so updates rarely conflict, much like a link-state routing protocol such as OSPF. The war stories cover a Rust RwLock deadlock gossiped to every proxy that caused a fleet-wide outage, a nullable-column migration that triggered a cr-sqlite backfill storm, and Consul certificate expiry that drove Corrosion writes until uplinks saturated. The fixes are Tokio event-loop watchdogs, Antithesis testing, checkpoint backups for cluster rebuilds, republishing full Machine state instead of partial updates, and regionalized two-level clusters to shrink the blast radius.