StartTimeRateLimiterAlgorithm

ox.resilience.StartTimeRateLimiterAlgorithm

Algorithms, which take into account the start time of the operation only.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class FixedWindow(rate: Int, per: FiniteDuration) extends RateLimiterAlgorithm

Fixed window algorithm: allows starting at most rate operations in consecutively segments of duration per.

Fixed window algorithm: allows starting at most rate operations in consecutively segments of duration per.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LeakyBucket(rate: Int, per: FiniteDuration) extends RateLimiterAlgorithm

Token/leaky bucket algorithm It adds a token to start a new operation each per with a maximum number of tokens of rate.

Token/leaky bucket algorithm It adds a token to start a new operation each per with a maximum number of tokens of rate.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SlidingWindow(rate: Int, per: FiniteDuration) extends RateLimiterAlgorithm

Sliding window algorithm: allows to start at most rate operations in the lapse of per before current time.

Sliding window algorithm: allows to start at most rate operations in the lapse of per before current time.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all