DEV Community

loading...

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

Collapse
hextrace profile image
hextrace

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?

Collapse
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