Batch Receive #286
Replies: 8 comments 21 replies
-
Yes, that is how the Pulsar works, but the configuration is kept on default values. Would you like to have it exposed to override batching policy? |
Beta Was this translation helpful? Give feedback.
-
What I am thinking is to create an infinite loop that calls the consumer batchReceive method. And this infinite loop should run inside a separate thread or maybe we might use another feature of the spring framework. I will start to write but I am not sure if this is the right approach. What do you think about it? |
Beta Was this translation helpful? Give feedback.
-
Instead creating a new annotation I used your existing annotation by adding a batch attribute. default value is false when you set it to true than I iniate a new thread with infinite loop. Of course there are tons of things to do. I just committed it for you to take a look at it. |
Beta Was this translation helpful? Give feedback.
-
Added documentation to batch consumer configuration. Planning to complete unit tests this weekend. |
Beta Was this translation helpful? Give feedback.
-
Hi, I also finished with unit tests. |
Beta Was this translation helpful? Give feedback.
-
Perfect, one last thing - 2 tests are failing - the hardcoded consumers and producers calculator. Please increase the values. Also wrote a comment to the PR. After this I will merge it :) |
Beta Was this translation helpful? Give feedback.
-
Can you control again? :) |
Beta Was this translation helpful? Give feedback.
-
How to control the time interval of each batch in batch consume |
Beta Was this translation helpful? Give feedback.
-
Can we receive messages in batches? Normally pulsar has the ability to receive batch messages in a given quantity in a given timeout. If a topic does not receive enough messages then it consumes messages in a given time. Does a reactive client of yours works in this fashion or do you need additional development for this feature?
Beta Was this translation helpful? Give feedback.
All reactions