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

1 messages · Page 1 of 1 (latest)

safe panther
#

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?

latent bone
#

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 🙂

safe panther
#

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

latent bone
#

it depends on how much time you set in the second one

safe panther
#

30 minutes

latent bone
#

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

safe panther
#

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?

latent bone
#

what do you mean?

#

we always check if there is an active digest and do not create a new one if there is one

safe panther
#

I have a 30 minutes window,
every time there is a new event, I want another 30 minutes window

latent bone
#

we do not have support for that right now, if I understand your needs correctly

paper ridge
#

@safe panther Can you please create a feature request for this?

safe panther
#

For the digest I wanted?