Replies: 1 comment
-
Do you often restart your code? If so, you might be running into Consumer rebalance, which takes some time to perform. Essentially, if you were connected to the cluster and then suddenly disconnected and reconnected again, the connection between consumer and broker was cut loose, so the broker has to perform consumer rebalance, which means that he has to assign partitions to the consumers left in the consumer group (if any). This usually takes about a minute, depending on your configuration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I set up the consumer first
The consumer code looks like this
When I start the consumer it takes at least 45s to see the print "Message received"
Beta Was this translation helpful? Give feedback.
All reactions