Debouncing #895
Replies: 2 comments 1 reply
-
Systems like inngest, natively support this pattern: |
Beta Was this translation helpful? Give feedback.
-
I believe #550 and #453 were previous discussions of this kind of feature ("batching" or "aggregation"). We got pretty close on an early implementation for one approach here but decided to change directions and haven't come back around to it. Definitely would be useful to have! I wanted to confirm some more details about your use case @juanpmarin. What time frame are you looking to aggregate over? We kicked around ideas for a couple approaches, one of which essentially batched jobs already on the queue, and another which allowed a configurable (longer) period to delay processing certain jobs for the sake of efficiency. It sounds like you were probably thinking of the latter? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks & Kudos
Huge thanks to the River team for crafting such a versatile job-processing engine!
What is debouncing?
Debouncing batches a rapid sequence of events into a single action after a specified “quiet” interval—only the final event in a burst triggers processing.
High-level use case
In a conversational system, users often send multiple messages in quick succession. We want to defer work until the conversation pauses, then invoke our chatbot once with the latest context. Is it possible to implement this with river?
Beta Was this translation helpful? Give feedback.
All reactions