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.

Wrapping a RateLimiterRedis with many RateLimiterQueues

See original GitHub issue

We have a situation where we want to rate limit actions on individual record IDs. Rate limiter queue on top of a Redis limiter handles this job for us, but we need it to consume per record ID however current RateLimiterQueue calls consume with a hardcoded limiter name

Any chance to make _key parametric in queue constructor or a removeTokens overload with _key parameter so that we can dynamically use many granular queues over a single limiter instance?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
behradcommented, Apr 18, 2020

👍 @animir Feels great, Thank you for your promising efforts on this nice handy project. I enjoy using your little sexy designed module ❤️ Let me check this & let you know!

1reaction
behradcommented, May 3, 2020

@behrad Hi, how is it going? Any feedback?

Sorry for my late response, I tested against latest version yesterday and it now serves me as expected. Great job @animir 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-rate-limiter-flexible - Bountysource
Wrapping a RateLimiterRedis with many RateLimiterQueues $ 0 ... Created 2 years ago in animir/node-rate-limiter-flexible with 3 comments. ... Any chance to make ......
Read more >
The node-rate-limiter-flexible from animir - Coder Social Home
Wrapping a RateLimiterRedis with many RateLimiterQueues. We have a situation where we want to rate limit actions on individual record IDs.
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