Skip to content
/ slottle Public

A rust throttle pool library designed for thread-based concurrency.

License

Notifications You must be signed in to change notification settings

visig9/slottle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A rust throttle pool library designed for thread-based concurrency.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages