Meta introduced ZGateway to address connection and reliability issues within ZippyDB, its distributed key-value store. ZippyDB supports product metadata, counters, and configuration across Meta's global infrastructure. The previous direct access model, where clients connected directly to database hosts, led to a dense many-to-many connection mesh, causing potential file descriptor exhaustion and out-of-memory conditions due to over one million client hosts.
ZGateway inserts a managed proxy tier between ZippyDB clients and servers. Clients maintain sticky connections to regional gateway hosts, which then connect to the database servers. This setup is estimated to reduce per-host connection counts by 97-98% and total persistent connections by roughly 19 times. ZGateway runs as regional tiers discovered via ServiceRouter, Meta’s service mesh solution, keeping clients geographically close to their gateway.
The new gateway layer centralizes shared traffic management. ZGateway can authenticate and authorize requests, apply per-tenant admission control, resolve shards, utilize local caching, and batch or coalesce requests before forwarding them to ZServer replicas. By observing traffic from multiple clients, it can combine requests that individual client libraries cannot.
ZGateway currently handles over one billion operations per second and approximately 40% of ZippyDB traffic. This proxy pattern, also seen in connection poolers and service meshes, adds a shared traffic management layer to ZippyDB's existing capabilities, which include managed sharding, replication, failure detection, and capacity management.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Meta launched ZGateway, a stateless proxy layer for its ZippyDB distributed key-value store, to manage over one million client hosts and improve reliability. This new architecture reduces total persistent connections by approximately 19 times while handling over one billion operations per second.