Python variable-sized load limiter
Project description
Py Load Limiter
A highly configurable, feature-packed, variable-request-sized load limiter python module.
Features
- Sliding window/buckets algorithm
- Limit amount of 'load' instead of simply limiting the number of requests by allowing load-aware requests
- Use with direct apis, as context manager or as decorator
- Support for automatic retry, delay or timeout on load requests
- Automatically compute TTA (time-to-availability) to easily give clients an amount of time to wait before resubmissions
- Configurable penalties for over-max-load requests and for uncompliant clients who do not respect the required delays
- Composite load limiter to allow for complex load limiting with a single instance (eg. long-time rate limiting together with burst protection)
- Configurable window fragmentation for optimal smoothness vs performance tuning
- Pluggable and customizable storage adapters to allow for easy persistence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyloadlimiter-0.1b0.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for pyloadlimiter-0.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7fed2b8440ab2d840e7db54e50e6eae3babf1771a46bef6c8731637cff47a45 |
|
MD5 | 532befa00d4fd25be01f98056acf5091 |
|
BLAKE2b-256 | fbaeae50b73c8c05055284c1e75547ee2cdc507a064454c47906b86c9db88bef |