question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow greater access to the SmoothBursty rate limiter

See original GitHub issue

Create 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:closed
  • Created 9 years ago
  • Reactions:19
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gmethvincommented, Dec 11, 2018
0reactions
nick-someonecommented, Jul 24, 2019

Duplicate of #1707

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found