aio-libs / aiokafka

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

[QUESTION] Using AIOKafkaProducer.start() and stop() with kerberised Kafka #904

Open ant0nk opened 1 year ago

ant0nk commented 1 year ago

What is the preferred way of using AIOKafkaProducer.start() and stop() with long-running application and with environment when you have to periodically renew kerberos ticket for accessing brocker? If I use krbcontext for example should I include start() and stop() in same context with AIOKafkaProducer.send() or start() and stop() should be called just once in lifetime of application and only AIOKafkaProducer.send() should be called in krbcontext's with statement?