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
5
5
* [ consumer.py] ( consumer.py ) : reads messages from a Kafka topic
6
6
* [ producer.py] ( producer.py ) : reads lines from stdin and sends them to Kafka
7
7
* [ 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
8
14
9
15
Additional examples for [ Confluent Cloud] ( https://www.confluent.io/confluent-cloud/ ) :
10
16
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ def main(args):
113
113
except KeyboardInterrupt :
114
114
break
115
115
116
+ consumer .close ()
117
+
116
118
117
119
if __name__ == '__main__' :
118
120
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):
121
121
except KeyboardInterrupt :
122
122
break
123
123
124
+ consumer .close ()
125
+
124
126
125
127
if __name__ == '__main__' :
126
128
parser = argparse .ArgumentParser (description = "DeserializingConsumer Example" )
You can’t perform that action at this time.
0 commit comments