You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's great to be able to limit a function's rate with rateLimit, however throttled events are kind of "lost" - they do not trigger any function, and the client that sends the event is unaware of that.
It would be nice to be able to handle those throttled events. Two ideas of how that could work:
Add an option to rateLimit to retain throttled events in the queue and execute the function later once it's back within the rate limit
Add a onThrottle() handler to functions which would be called every time an event is received and the function is throttled
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It's great to be able to limit a function's rate with
rateLimit
, however throttled events are kind of "lost" - they do not trigger any function, and the client that sends the event is unaware of that.It would be nice to be able to handle those throttled events. Two ideas of how that could work:
rateLimit
to retain throttled events in the queue and execute the function later once it's back within the rate limitonThrottle()
handler to functions which would be called every time an event is received and the function is throttledBeta Was this translation helpful? Give feedback.
All reactions