N
Novu•2y ago
Nevo David

Failing to understand why I need to insert two intervals in the digest back-off strategy.

It's supposed to restart the digest every time there is a new event in a period of time. I read the documentation a few times and still can't understand. What's the first interval for? What's the second interval for?
12 Replies
DavidSouthmountain
DavidSouthmountain•2y ago
the second interval tells us how long we should check if there was a previous event inside if there was we will start a digest that will collecting during the first time interval you have choosen 🙂
Nevo David
Nevo David•2y ago
Ok let's say I put in the first interval of 30 minutes. then I have 4 events, each firing in a 10 minutes delay. How many events will be in the digest
DavidSouthmountain
DavidSouthmountain•2y ago
it depends on how much time you set in the second one
Nevo David
Nevo David•2y ago
30 minutes
DavidSouthmountain
DavidSouthmountain•2y ago
3 events will be digested, because first will not find anything 30 minutes back, second one will and check 30 min into the future and find 2 more events inside of the digest interval
Nevo David
Nevo David•2y ago
If I want to that digest will never stop in an interval of 30 minutes. Should I put like a huge number on the second input?
DavidSouthmountain
DavidSouthmountain•2y ago
what do you mean? we always check if there is an active digest and do not create a new one if there is one
Nevo David
Nevo David•2y ago
I have a 30 minutes window, every time there is a new event, I want another 30 minutes window
DavidSouthmountain
DavidSouthmountain•2y ago
we do not have support for that right now, if I understand your needs correctly
Pawan Jain
Pawan Jain•2y ago
@nevodavid Can you please create a feature request for this?
Nevo David
Nevo David•2y ago
For the digest I wanted?
Pawan Jain
Pawan Jain•2y ago
yes