Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.62 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.62 KB

throttler

Build Status Coverage Status Codacy Badge Version License

RequestThrottler

RequestThrottler allows to limit the maximum number of requests / messages which can be processed within a specific time period for a specific user / resource, etc.

TokenBucket

TokenBucket is a request throttling implementation for limiting requests rate for a single resource, see Token Bucket on Wikipedia.

FixedIntervalRefillStrategy

FixedIntervalRefillStrategy is a token bucket refill strategy that will provide N tokens for a token bucket to consume every T milliseconds.

Setup

addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")

libraryDependencies += "com.evolutiongaming" %% "throttler" % "2.0.1"