-
I have a stream of messages, for example from Kafka, that after some transformations I want to create batches by size or time for example, I want that every 100 messages will be collected into a list, that I will be able to call some IO bulk operation on it. Can I achieve that behavior in the current API? Or what is the alternative for that in Multiny? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You might look into https://javadoc.io/doc/io.smallrye.reactive/mutiny/latest/io.smallrye.mutiny/io/smallrye/mutiny/groups/MultiGroup.html ( Having more advanced windowing operators is on the radar, see #1279 |
Beta Was this translation helpful? Give feedback.
-
Yes, you will get chunks of up to 100 items lists.
It does respect back-pressure. |
Beta Was this translation helpful? Give feedback.
You might look into https://javadoc.io/doc/io.smallrye.reactive/mutiny/latest/io.smallrye.mutiny/io/smallrye/mutiny/groups/MultiGroup.html (
multi.group()...
).Having more advanced windowing operators is on the radar, see #1279