Skip to main content
Engineering, Backend

How Uber Conquered Database Overload: The Journey from Static Rate-Limiting to Intelligent Load Management

13 January / Global
Featured image for How Uber Conquered Database Overload: The Journey from Static Rate-Limiting to Intelligent Load Management
Image
Figure 1: Docstore and Schemaless architecture.
Image
Figure 2: Quota-based rate-limiting setup.
Image
Figure 3: Initial load manager setup with CoDel queue.
Image
Figure 4: CoDel queue behavior.
Image
Figure 5: CoDel algorithm.
Image
Figure 6: Scorecard rules.
Image
Figure 7: Improved availability.
Image
Figure 8: Updated load shedder setup with Cinnamon queue.
Image
Figure 9: Priority Agnostic Load shedder setup with CoDel queue.
Image
Figure 10: Priority Aware Load shedder setup with Cinnamon queue.
Image
Figure 11: Prioritized shedding in action.
Image
Figure 12: Reduced premature shedding.
Image
Figure 13: Unified load-shedding engine in Cinnamon.
Image
Figure 14: Bring your own signal.
Image
Figure 15A: (Before) Token bucket latency and resource profile.
Image
Figure 15B: (After) Cinnamon latency and resource profile.
Image
Figure 16A: (Before) Token bucket spiky shedding pattern.
Image
Figure 16B: (After) Cinnamon’s stable shedding pattern.
Dhyanam Vaidya

Dhyanam Vaidya

Dhyanam Vaidya is a Software Engineer on Uber’s Storage Platform team. He’s contributed to the design and implementation of many Docstore features. His work focuses on improving the reliability, resilience, and operational efficiency of Uber’s distributed databases at scale.

Prathamesh Deshpande

Prathamesh Deshpande

Prathamesh Deshpande is a Staff Engineer on Uber’s Storage Platform team, building database features and distributed storage systems that meet Uber’s global reliability and performance requirements. His work focuses on large-scale data management, distributed database storage systems, and platform reliability.

Mike Ma

Mike Ma

Mike Ma is a Staff Software Engineer on Uber’s Storage Platform team, where he has contributed to multiple core components of both Schemaless and Docstore. His work focuses on scalability, reliability, performance, and operational excellence across Uber’s large scale distributed databases.

Chaitanya Yalamanchili

Chaitanya Yalamanchili

Chaitanya Yalamanchili is a Sr. Manager and technical lead on Uber’s Storage Platform team. He leads the development of online distributed storage systems with a focus on providing a world-class platform that powers all the critical business functions and lines of business at Uber. The platform serves tens of millions of QPS and stores tens of Petabytes of operational data.

Posted by Dhyanam Vaidya, Prathamesh Deshpande, Mike Ma, Chaitanya Yalamanchili