Replies: 1 comment
-
As you say, it sounds like this functionality can be made by composition of a rate limiter and queuer. On rejection, add items to an overflow queue? I guess we could make some first class composites like this, but it's probably more flexible for us to just document how to do it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using TanStack Pacer to rate-limit async calls at 100 requests/sec. The built-in
AsyncRateLimiter
rejects calls beyond the cap, andqueue
/AsyncQueuer
need manual config to approximate a “p-throttle”–style behavior (limit+buffer).Would you consider adding a first-class, buffered throttle utility (à la [p-throttle](https://github.com/sindresorhus/p-throttle)) that:
This would simplify common API-rate-limit patterns and avoid the need to compose multiple primitives. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions