--
You received this message because you are subscribed to the Google Groups "kafka-clients" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kafka-client...@googlegroups.com.
To post to this group, send email to kafka-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kafka-clients.
To view this discussion on the web visit https://groups.google.com/d/msgid/kafka-clients/6ab44e9e-1875-4daf-ab86-fdca2b5000a9%40googlegroups.com.
Dana,Thanks for this writeup, very helpful. I did migrate my implementation to the Async class.self.client = KafkaClient(kwargs['kafka_uri'])self.topic = kwargs['kafka_topic'].encode('utf8')self.producer = SimpleProducer(self.client, async=True)I noticed from a few other documents that during startup its best to call client.ensure_topic_exists(topic), to create the topic if it doesn't already exist.
However do you recommend we explicitly call close() on the client or .stop() on the producer to make sure all messages are sent and received by kafka before shutting down?
In addition I know you mentioned the async producer handles that list of errors that can be retried, but are there any best-practices around handling other types of exceptions that are perhaps recoverable but outside that list?