Skip to content

Add support for rate limiting requests#74

Open
sfc-gh-nlele wants to merge 16 commits intomainfrom
add_rate_limit
Open

Add support for rate limiting requests#74
sfc-gh-nlele wants to merge 16 commits intomainfrom
add_rate_limit

Conversation

@sfc-gh-nlele
Copy link
Contributor

@sfc-gh-nlele sfc-gh-nlele commented Jun 13, 2023

This PR adds support for rate-limiting requests, for which it uses a DynamoDB table to keep track of counts of requests for URLs.

We use two values in the EF: rate limit and rate limit window.

The rate limit is the count of how many requests should be made e.g. 20, during the rate limit window (in minutes) e.g. 60.

Testing

  1. Async, rate limit: 10, rate limit window: 5 (minutes)

After the rate limit has been exhausted:

Screenshot 2023-07-04 at 6 27 22 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments