Skip to main content

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


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)

Uploaded Source

Built Distribution

pyloadlimiter-0.1b0-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page