Why Rate Limiting Should Use Token Bucket Not Leaky Bucket
from The Developer Tools Podcast with Fexingo: APIs, Infrastructure, and Software for Engineers Hosted by Fexingo
Lucas and Luna dive into the difference between token bucket and leaky bucket rate-limiting algorithms, using the real-world example of GitHub's GraphQL API migration in 2022. They explain why token bucket handles sudden bursts better for modern API consumers, how Discord's rate limits caused a developer revolt in 2023, and why many APIs default to the wrong algorithm. Specific numbers: GitHub's original 5000 requests per hour leaky bucket vs. their new 5000 points per hour token bucket with a 500-point burst window. The hosts also discuss how to choose the right algorithm based on whether your API serves B2B integrations or consumer mobile apps. #RateLimiting #TokenBucket #LeakyBucket #GitHub #GraphQL #Discord #APIDesign #Scalability #Backend #DeveloperExperience #BusinessAndTechnology #FexingoBusiness #BusinessPodcast #Engineering #Infrastructure #Webhooks #Throttling #APIStrategy Keep every episode free: buymeacoffee.com/fexingo
Embed this episode
No transcript yet.