Grab
Grab logoGrab · Feature trail

API Rate Limiting

8 posts · Sep 2016 – Sep 2025

What this trail covers

Grab has implemented a highly scalable API request rate limiting solution called Quotas to mitigate service abuse and cascading failures. The system uses an asynchronous processing pipeline with Kafka at its core, allowing client services to make immediate throttling decisions without significant latency impact. It supports global rate limiting by aggregating API usage stats and making decisions periodically, with client SDKs updating local in-memory caches. The system is designed for horizontal scalability. This post details the integration of Apache Pinot for powering Partner Gateway metrics, focusing on low-latency analytical queries for API traffic status codes and response times. Optimizations include partitioning by metric name, using columns based on aggregation intervals, and implementing a Star-tree index in Apache Pinot to handle large datasets and meet SLA requirements.

All Grab trails