File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ The scripts in this directory provide code examples using Confluent's Python cli
55* [ consumer.py] ( consumer.py ) : reads messages from a Kafka topic
66* [ producer.py] ( producer.py ) : reads lines from stdin and sends them to Kafka
77* [ eos-transactions.py] ( eos-transactions.py ) : transactional producer with exactly once semantics (EOS)
8+ * [ avro_producer.py] ( avro_producer.py ) : SerializingProducer with AvroSerializer
9+ * [ avro_consumer.py] ( avro_consumer.py ) : DeserializingConsumer with AvroDeserializer
10+ * [ json_producer.py] ( json_producer.py ) : SerializingProducer with JsonSerializer
11+ * [ json_consumer.py] ( json_consumer.py ) : DeserializingConsumer with JsonDeserializer
12+ * [ protobuf_producer.py] ( protobuf_producer.py ) : SerializingProducer with ProtobufSerializer
13+ * [ protobuf_consumer.py] ( protobuf_consumer.py ) : DeserializingConsumer with ProtobufDeserializer
814
915Additional examples for [ Confluent Cloud] ( https://www.confluent.io/confluent-cloud/ ) :
1016
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ def main(args):
113113 except KeyboardInterrupt :
114114 break
115115
116+ consumer .close ()
117+
116118
117119if __name__ == '__main__' :
118120 parser = argparse .ArgumentParser (description = "Consumer Example client with "
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ def main(args):
121121 except KeyboardInterrupt :
122122 break
123123
124+ consumer .close ()
125+
124126
125127if __name__ == '__main__' :
126128 parser = argparse .ArgumentParser (description = "DeserializingConsumer Example" )
You can’t perform that action at this time.
0 commit comments