Skip to content
Discussion options

You must be logged in to vote

When using Kafka companion consumer you either need to pass how many records you want to receive with .fromTopics("whatever", 1) or if you'd like to keep the consumer polling, need to await records accordingly using methods like .awaitNextRecord().

In your consuming example the awaitCompletion would timeout after 10 seconds (the default timeout).
You of course need to check that you are consuming from the same topic you are producing to.

Hope this helps.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dodalovicgran
Comment options

Answer selected by dodalovicgran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants