ZGateway: Learnings from Putting a Proxy in Front of ZippyDB
ZGateway is a stateless regional proxy tier in front of ZippyDB, Meta's most widely used key-value store.
ZGateway is a stateless regional proxy tier in front of ZippyDB, Meta's most widely used key-value store.
Meta moved GenAI inference traffic, which is long-running, I/O-heavy and latency-sensitive, onto a dedicated HHVM web tenant with its own runtime tuning, cutting latency by 30%.
Meta tightened the server utilization distribution of its ads inference fleet, letting it absorb 35% more load with no added capacity, cut timeout errors by two-thirds and halve p99 latency.
Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async.
Meta's backbone network treats bandwidth as a finite, reservable resource: each service gets a contracted bandwidth quota per region and class of service, with an SLO guarantee covering only traffic within that quota.
Meta's Anonymous Credential Service (ACS) authenticates clients without user IDs by splitting authentication into token issuance over an authenticated channel and unlinkable token redemption over an anonymous channel, built on VOPRFs and blind signatures with an HMAC over business data keyed by a shared secret.
ZippyDB 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.
Tectonic is Facebook's data-center-scale distributed file system that replaces a set of use-case-specific storage systems, each scaling to tens of petabytes, with exabyte-scale clusters serving an entire data center.