slottle

Crates.ioslottle
lib.rsslottle
version0.4.2
sourcesrc
created_at2020-11-28 09:04:49.78906
updated_at2021-03-07 04:49:33.801075
descriptionA throttle pool library designed for thread-based concurrency.
homepagehttps://github.com/visig9/slottle
repositoryhttps://github.com/visig9/slottle
max_upload_size
id317389
size44,391
ikai (visig9)

documentation

README

slottle

A simple Rust crate provide thread-based throttle pool. It can dynamic create multiple throttles by user given resource id.

For example, a web scraping tool may treat domain name as resource id to control access speed of each hosts in generic way. User can create multiple pools at the same time, each one have different configurations for different situations.

Features

  • Not just individual throttle but also provide throttle pool. (can ignore if don't need it)
  • Both concurrent & delay interval are configurable.
  • Allow user defined algorithm to generate delay interval dynamically.
  • Failure sensitive & builtin retry support.
  • Easy to use.
  • Exhaustive document.

Check online document for more detail.

License

MIT

Commit count: 32

cargo fmt