Case File: Too Many Requests
One client script asked the parcel service for data thousands of times a second and slowed it for everyone. Write a token bucket rate limiter: a full bucket per client, one token per request, tokens that come back with time up to a capacity, and a block when the bucket is empty. Find the clients that were blocked and run the limiter on traffic you cannot see. The traffic is generated for you alone.
Case File: Too Many Requests
One client script asked the parcel service for data thousands of times a second and slowed it for everyone. Write a token bucket rate limiter: a full bucket per client, one token per request, tokens that come back with time up to a capacity, and a block when the bucket is empty. Find the clients that were blocked and run the limiter on traffic you cannot see. The traffic is generated for you alone.
In this lesson:
- api
- rate limiting
- token bucket
- reliability
- python
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans