Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

rate limiter will be completely disabled if false

Environment variable: QUARKUS_RATE_LIMITER_ENABLED

boolean

true

Maximum number of entries in the underlying cache

Environment variable: QUARKUS_RATE_LIMITER_MAX_SIZE

int

1000

Duration during which the bucket is kept after last refill if untouched

Environment variable: QUARKUS_RATE_LIMITER_KEEP_AFTER_REFILL

Duration

1H

Identity resolver allow to segment the population. Each resolved identity key will have its own quota. this must be a valid CDI bean implementing IdentityResolver.

Environment variable: QUARKUS_RATE_LIMITER_BUCKETS__BUCKET_ID__IDENTITY_RESOLVER

string

io.quarkiverse.bucket4j.runtime.resolver.ConstantResolver

limits enforced for this bucket

Environment variable: QUARKUS_RATE_LIMITER_BUCKETS__BUCKET_ID__LIMITS

list of Limit

required

If true, permitted uses are shared for all methods using the same bucket id. If false, each method has its own quota.

Environment variable: QUARKUS_RATE_LIMITER_BUCKETS__BUCKET_ID__SHARED

boolean

false