pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/encode/httpnext/pull/50

heet" href="https://github.githubassets.com/assets/actions-26401580c700f528.css" /> Rate limiting by lovelydinosaur · Pull Request #50 · encode/httpnext · GitHub
Skip to content

Rate limiting#50

Open
lovelydinosaur wants to merge 3 commits intodevfrom
rate-limiting
Open

Rate limiting#50
lovelydinosaur wants to merge 3 commits intodevfrom
rate-limiting

Conversation

@lovelydinosaur
Copy link
Contributor

Let's have an approach similar to our timeouts to enforce network rate limiting.

Design questions here include "what specifiers should we support" and "what is the API for specifying upload vs. download rates"?

with httpx.rate("10MB/s"):
    ...
with httpx.rate_limit(upload="10MB/s", download="25MB/s"):
    ...

There's also potentially(?) implementation questions here around windowing and smoothing, tho a hard cap might be reasonable. What good prior art is there for us to reference here?

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy