aio-libs / aiokafka

asyncio client for kafka
http://aiokafka.readthedocs.io/
Apache License 2.0
1.08k stars 224 forks source link

[QUESTION] How to check readiness of kafka to receive msgs from producer? #1002

Open Olegt0rr opened 2 months ago

Olegt0rr commented 2 months ago

Once Kafka starts, it takes a few seconds to get ready to receive messages from producer. How to check this readiness from aiokafka client?

marcosschroh commented 5 days ago

why do you want to check the kafka readiness? Kafka should be available as any other service, if it is not then you can not do anything with consumers and producers. Now, let's assume that kafka is available, if you produce any amount of events, then it does not matter whether is a consumer available or not because you will consume then eventually (this is the power of kafka).