Allow greater access to the SmoothBursty rate limiter
See original GitHub issueCreate a method, such as create(permitsPerSecond, maxBurst, timeUnit)
so that the full functionality of the SmoothBursty
class can be utilised.
Use case
Use a RateLimiter
when the rate is applied on a wider timescale than just a single second. An example of this would be the GitHub API which has a rate limit of 5,000 per hour.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:19
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Detailed Explanation of Guava RateLimiter's ... - Alibaba Cloud
Limit the average access rate of a time window. ... The token bucket limits the average inflow rate and allows sudden increase in...
Read more >Rate Limiting Part 2 - Hechao's Blog
RateLimiter provides two static creators that will create a SmoothBursty rate limiter and a SmoothWarmingUp rate limiter respectively.
Read more >Guava's RateLimiter per minutes instead of seconds?
From the RateLimiter.create javadoc: When the incoming request rate exceeds permitsPerSecond the rate limiter will release one permit every (1.0 ...
Read more >Detailed Explanation of Guava RateLimiter's ... - DZone
Limit the average access rate of a time window. ... The token bucket limits the average inflow rate and allows a sudden increase...
Read more >RateLimiter (Guava: Google Core Libraries for Java 19.0 API)
Once acquired, permits need not be released. Rate limiters are often used to restrict the rate at which some physical or logical resource...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We released a small library for this: https://mvnrepository.com/artifact/com.iterable/guava-bursty-rate-limiter/0.1.0
Duplicate of #1707