Aggregate bulk of messages in a unique one: TumblingWindow behavoir. #237
-
Hello, first of all thanks for this great project. Is helping me a lot on "managing" my kafka streams with dotnet. I would like to ask help for accomplishing this stuff. Suppose you have a lot of this messagges incoming in a topic:
I would like to aggregate all of this data in a message like this:
Where it's the same but instead of having a single param it has a list of Param. All this messages have a key that is unique for the group of messages I would like to aggregate.
When I send 3 messages in a time <200000ms, I see 3 messages. One with the first message, the second with 2 messages aggregated and the third with 3 messages aggregated correctly. Is this the correct behavoir of the TumblingWindow? I expected to get just the third aggregated message and not even the prevoius messages. Is this correct? I though that the "window time" was waiting for "new messages" before starting the aggregation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
An update on this, maybe I need the suppress feature in order to achieve what I mean i think #70 and here #134. |
Beta Was this translation helpful? Give feedback.
-
Hi @alessandroros, Thanks for this discussion. |
Beta Was this translation helpful? Give feedback.
Hi @alessandroros,
Thanks for this discussion.
Yes this exactly what you need, the
Supress(..)
feature. For now, it's not present in the 1.5.0 roadmap.Because before releasing this feature, I need to deliver the cache functionality and it's planned for 1.5.0