NewsCrawler.org

Uber's Rate Limiting System: How the Global Rate Limiter Works

Uber's Rate Limiting System: How the Global Rate Limiter Works
Image: Reddit

Uber's service-oriented architecture processes hundreds of millions of RPCs per second across thousands of services. To keep it reliable, Uber built the GRL[1] (Global Rate Limiter), which lets teams set limits per caller or per procedure without code changes. GRL is integrated into the service mesh[2], which relays RPC requests for most of Uber's services. Later, the RLC[3] (Rate Limit Configurator) automated the system and keeps limits current based on historical traffic patterns.

Before GRL, each team wrote its own throttling, which led to inconsistent configurations, and updating limits often required redeploying servers. A central Redis counter was rejected because it could not scale to hundreds of thousands of hosts across several regions, and periodic counter synchronization was rejected because it produced stale data. The team instead chose a fully distributed design in which local proxies make enforcement decisions using aggregated load.

The architecture has three tiers: clients in the data plane, per-zone aggregators, and per-region controllers that push drop ratio directives back down. The first version enforced limits on each proxy with a token bucket[4] algorithm, but it distributed capacity unfairly among callers and dropped requests on hosts with bursty traffic. To fix this, the team introduced drop-by-ratio, in which all instances of an overloaded caller drop the same share of requests. For example, at 1.5 times the limit, about 33% of requests are dropped.

Uber shares (UBER)

63.47 USD −8.9% since the news day, November 13

Close on November 20 Quotes: CNBC Chart by TradingView

Read the original uber.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page