DEV Community


Discussion on: Rate-limit a Python API with 2 lines of code

hextrace profile image

Hi, thx

I have some questions

What's a better flow of data? Requests are queued if limit is hit, can we configure a timeout? Is rate based on request emits or response receives?

paymon123 profile image
Paymon Wang Lotfi Author

This is all configurable with the ratelimit API, this post is just showing how easy it is to get started. In this situation it is IP address

Forem Open with the Forem app