DripDrop.Policy.RateLimit (DripDrop v0.1.0)

Copy Markdown View Source

Defers dispatch when configured sending-rate buckets are exhausted.

Summary

Functions

Checks configured rate-limit buckets and defers when any bucket is exhausted.

Functions

check(context, payload, adapter)

@spec check(map(), map(), map()) ::
  :ok | {:defer, DateTime.t(), map()} | {:error, map()}

Checks configured rate-limit buckets and defers when any bucket is exhausted.