Messager companions - method for getting all available messages #2808
Unanswered
GregJohnStewart
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry for the late reply. I assume "all available messages" means messages from the beginning of a topic-partition until the tail of a topic-partition. You can do this by
Hope this helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, apologies if this functionality exists and couldn't find it, but it seems like the KafkaCompanion (or presumably the other companions) doesn't support awaiting for all available messages, only the specified number of messages. This makes it hard to perform certain test cases.
Of note is I have tried simply awaiting for single messages in a loop, but that ended up with never actually exiting and always returning the same message. This seems infeasible without additional support from the companion.
Beta Was this translation helpful? Give feedback.
All reactions