Backend Developer

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.

50 min

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

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans