Open nil-andreu opened 1 year ago
Hi, thanks for the question! I just used that for debugging and evaluating the technologies. It's not necessary to use the sleep at all, but there will be a lot of data in your Kafka cluster if you leave that out. Feel free to experiment :)
Hey!!
What you could do is producer.flush()
, to make sure that you produce all your messages before keep creating new ones.
Hey, I was wondering which is the objective of the
time.sleep
in Kafka:Is it because we want to wait one second between generating messages, or because we want to wait some time to make sure all messages are sent?