bucket4j/bucket4j
Java rate limiting library based on token-bucket algorithm. observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 94
- Release rhythm 72
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 35
- age_days: 4343
- days_rel: 106
- days_push: 41
- n_releases_24m: 6
Adoption not part of the score
2790 stars · 326 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Bucket4j is a Java rate-limiting library based on the token-bucket algorithm, offering lock-free, high-precision integer arithmetic implementations. It supports distributed rate limiting across JVM clusters via JCache-compatible grids like Hazelcast, Ignite, and Infinispan, as well as custom backends.
Use cases
- rate limit api requests in java
- throttle requests per user in a spring boot app
- distributed rate limiting across a cluster of jvms
- implement token bucket throttling with hazelcast
- protect an endpoint from too many requests
- limit bandwidth consumption in a java service
When to choose
- you need precise, high-performance rate limiting in a JVM application
- you need clustered/distributed rate limiting backed by JCache-compatible grids or databases
- you want lock-free concurrency and low GC overhead
- you need to change rate limit configuration at runtime
When to avoid
- you need rate limiting in a non-JVM language
- you want a ready-made API gateway or proxy rather than an embedded library
- your use case is simple single-node throttling where a smaller utility would suffice
Facets
library · maturity stable
rate-limiting caching middleware backend developer-tools microservices apis jvm cross-platform token-bucket jcache hazelcast infinispan apache-ignite distributed-rate-limiting java
3 sources
- readme: https://github.com/bucket4j/bucket4j · fetched 2026-08-28 · 1e794f802c04
- homepage: https://bucket4j.com · fetched 2026-08-29 · b24b4cd99997
- site_page: http://bucket4j.com/previous-releases.html · fetched 2026-08-29 · a7c7c098e197
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bucket4j/bucket4j | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="bucket4j/bucket4j")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem