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
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 🙂
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
it depends on how much time you set in the second one
30 minutes
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
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?
what do you mean?
we always check if there is an active digest and do not create a new one if there is one
I have a 30 minutes window,
every time there is a new event, I want another 30 minutes window
we do not have support for that right now, if I understand your needs correctly
@nevodavid Can you please create a feature request for this?
For the digest I wanted?
yes