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
I've met strange behaviour of the ZStream.groupedWithin which can significantly affect performance of an application when it's passing batches of messages of fixed size. Here is the reproducer (works both on RC-20, RC-21 and SNAPSHOT):
One can see that we are able to compose a full batch after a millis from start, but actually we got batch only at the end of a group window (after 10 seconds).
Is it a bug or an expected behaviour?
Thank you!
The text was updated successfully, but these errors were encountered:
@fillson-shady The problem is that the transducer used in groupedWithin, ZTransducer.collectAllN, waits for the N+1th element before emitting. So as a workaround, you could try modifying the batch size. But most likely in real-world situations, the number of elements on the stream is variable and you might not be hitting this as often as thought.
Either way - will fix the problem with collectAllN.
Hello!
I've met strange behaviour of the
ZStream.groupedWithin
which can significantly affect performance of an application when it's passing batches of messages of fixed size. Here is the reproducer (works both on RC-20, RC-21 and SNAPSHOT):It produces the following output:
One can see that we are able to compose a full batch after a millis from start, but actually we got batch only at the end of a group window (after 10 seconds).
Is it a bug or an expected behaviour?
Thank you!
The text was updated successfully, but these errors were encountered: