• bitcoinBitcoin(BTC)$82,897.000.76%
  • ethereumEthereum(ETH)$2,492.56-1.52%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$740.39-2.57%
  • rippleXRP(XRP)$1.39-0.61%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$110.16-2.10%
  • tronTRON(TRX)$0.332615-0.54%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.031.17%
  • zcashZcash(ZEC)$1,221.331.11%
  • HyperliquidHyperliquid(HYPE)$85.250.09%
  • dogecoinDogecoin(DOGE)$0.084514-2.85%
  • USDSUSDS(USDS)$1.000.02%
  • moneroMonero(XMR)$535.80-2.49%
  • whitebitWhiteBIT Coin(WBT)$81.48-0.34%
  • chainlinkChainlink(LINK)$12.77-1.40%
  • cardanoCardano(ADA)$0.237215-4.20%
  • leo-tokenLEO Token(LEO)$8.89-0.27%
  • RainRain(RAIN)$0.010345-2.00%
  • stellarStellar(XLM)$0.193146-2.37%
  • nearNEAR Protocol(NEAR)$4.78-5.78%
  • bitcoin-cashBitcoin Cash(BCH)$275.50-6.34%
  • litecoinLitecoin(LTC)$63.70-0.66%
  • CantonCanton(CC)$0.1239645.09%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • uniswapUniswap(UNI)$7.32-3.46%
  • daiDai(DAI)$1.000.00%
  • avalanche-2Avalanche(AVAX)$10.25-3.19%
  • suiSui(SUI)$1.06-4.26%
  • USD1USD1(USD1)$1.000.05%
  • BitwayBitway(BTW)$1.5511.91%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.474.68%
  • hedera-hashgraphHedera(HBAR)$0.091940-2.45%
  • quant-networkQuant(QNT)$247.803.03%
  • tether-goldTether Gold(XAUT)$4,168.401.24%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.22%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • BittensorBittensor(TAO)$273.83-1.62%
  • crypto-com-chainCronos(CRO)$0.061141-2.00%
  • paypal-usdPayPal USD(PYUSD)$1.000.03%
  • EthenaEthena(ENA)$0.215281-0.26%
  • okbOKB(OKB)$125.480.80%
  • Pump.funPump.fun(PUMP)$0.005591-3.05%
  • aaveAave(AAVE)$167.91-0.91%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • OndoOndo(ONDO)$0.4828140.17%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
  • MemeCoreMemeCore(M)$1.01-4.69%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Meta Introduces ZGateway: A Stateless Proxy Tier That Unifies ZippyDB Traffic and Handles Over 1 Billion Operations Per Second

September 15, 2026
in AI & Technology
Reading Time: 14 mins read
A A
Meta Introduces ZGateway: A Stateless Proxy Tier That Unifies ZippyDB Traffic and Handles Over 1 Billion Operations Per Second
ShareShareShareShareShare

Meta engineering team introduced ZGateway, a proxy tier that now sits between client applications and ZippyDB, the Meta’s most widely used key value store. ZippyDB backs product metadata, counters, and configuration at billions of operations per second. ZGateway started as a fix for connection sprawl across more than a million client hosts and grew into the home for batching, admission control, caching, and failover.

Why ZippyDB Needed a Proxy

Under direct access, every ZippyDB client connected to every database host it needed. A single client could touch tens of thousands of shards across hundreds of thousands of hosts, so both a typical client and a typical database host carried tens of thousands of TLS connections. Each idle connection consumed memory, CPU, and a file descriptor on both ends, and inbound counts grew with every client cohort. Reconnection storms caused crashes from file descriptor exhaustion and OOMs; in one incident a routing bug made every client open a connection per shard and the fleet fell into a reboot loop. Client-side fixes were impractical because hundreds of teams own the client fleet.

YOU MAY ALSO LIKE

What Is the Bias–Variance Tradeoff? Underfitting and Overfitting Explained – Unite.AI

Meta Bans TikTok Ads From Its Platforms In Tit-For-Tat Row

What is ZGateway

ZGateway is a stateless proxy tier between ZippyDB clients and the ZServer database fleet. Per Meta, it handles more than 1 billion operations per second and carries about 40% of ZippyDB traffic, projected to pass 60%, at about 6% computational overhead for an average use case.

It runs as regional tiers discovered through ServiceRouter, Meta’s service mesh, in two flavors: a pure proxy and a read-through cache. The engine is Meta’s thick C++ ZippyDB client, so ZGateway is effectively a ZippyDB client run as a managed service.

A client sends requests over a sticky connection to a regional ZGateway host, which terminates TLS, authorizes against the use case’s ACLs, applies per-tenant admission control and shaping, resolves the shard, checks the local cache on caching tiers, batches the request with other in-flight work for that shard, and forwards it to the correct replicas. Responses are demultiplexed back with per-use-case metrics, traces, and quota usage recorded. TLS stays in the Thrift/ServiceRouter stack and replica selection stays in the embedded client.

The Fan-In and Fan-Out Math

Meta models the fleet as balls thrown into bins: with B shards and H hosts, a host is hit with probability E(H,B)=H(1−e−B/h)E(H,B) = H\left(1 – e^{-B/h}\right). With mock figures of 20 regions, 500,000 database hosts, 30,000 proxy hosts, 1,000,000 clients, and 50,000 shards per client, per-host connection counts collapse by roughly 97 to 98% and total persistent connections drop about 19x. The deeper win is scaling: direct-access fan-in grows linearly with clients, while ZGateway fan-in reduces to roughly regions times shard density per host, independent of both fleets.

Capabilities That Followed

  • Safe migration: Configuration flags scoped per service and shard prefix provide a percentage ramp, a region filter, and a global kill switch.
  • Discriminant Load Shedding (DLS): Requests map to per-tenant buckets split by priority that drain round-robin, so a flooding tenant only fills its own bucket. In a controlled overload above 90% CPU across roughly 1,350 tenant buckets, only 6 noisy neighbors shed load, the rest executed 99.9% of requests with zero rejections, goodput held near 97 to 98%, and the machinery cost about 8% of CPU.
  • Read caching: Cache tiers serve hot reads in-process, take a per-key fill lock on misses, and stay fresh via change-data-capture events under a bounded-staleness contract.
  • Load balancing: Tiers mix roughly 26-core to 126-core hosts, so a control-plane balancer nudges each host’s ServiceRouter weight opposite to its recent CPU load.
  • Cross-region resilience: Global routing, mega-regions, and rings let a saturated regional tier fail over to healthy capacity nearby.
  • Transactions: Client-side bookkeeping moved into the gateway, consolidated in nine phases to 100% of transaction traffic with no reliability regression.


Key Takeaways

  • ZGateway handles over 1B ops/sec and carries about 40% of ZippyDB traffic at roughly 6% overhead.
  • The proxy turns database fan-in from linear in client count into a bounded number Meta controls.
  • Cross-client batching and coalescing kill hot-key stampedes and retired fragile client libraries.
  • DLS isolated 6 noisy tenants out of about 1,350 under 90%+ CPU with 97 to 98% goodput.
  • Not deployable outside Meta; the value is in the patterns, not a package.

Check out the Meta Engineering blog post and the X announcement. All credit goes to the researcher of this project. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us


Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.

Credit: Source link

ShareTweetSendSharePin

Related Posts

What Is the Bias–Variance Tradeoff? Underfitting and Overfitting Explained – Unite.AI
AI & Technology

What Is the Bias–Variance Tradeoff? Underfitting and Overfitting Explained – Unite.AI

October 9, 2026
Meta Bans TikTok Ads From Its Platforms In Tit-For-Tat Row
AI & Technology

Meta Bans TikTok Ads From Its Platforms In Tit-For-Tat Row

October 9, 2026
SpaceX Wants To Become A ‘Major Mobile Carrier’ With Low-Band Spectrum Acquisition
AI & Technology

SpaceX Wants To Become A ‘Major Mobile Carrier’ With Low-Band Spectrum Acquisition

October 9, 2026
AudioShake Launches The Refinery to Turn Overlapping Conversations Into AI Training Data – Unite.AI
AI & Technology

AudioShake Launches The Refinery to Turn Overlapping Conversations Into AI Training Data – Unite.AI

October 9, 2026
Next Post
Current with Christine Romans – Sept. 9 | NBC News NOW

Current with Christine Romans – Sept. 9 | NBC News NOW

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
How To Customize Camera Control On Your iPhone

How To Customize Camera Control On Your iPhone

October 3, 2026
Buy Now or Wait? What To Do As Stocks Hit Record Highs

Buy Now or Wait? What To Do As Stocks Hit Record Highs

October 6, 2026
What Is the Bias–Variance Tradeoff? Underfitting and Overfitting Explained – Unite.AI

What Is the Bias–Variance Tradeoff? Underfitting and Overfitting Explained – Unite.AI

October 9, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!