AsyncConfluentFastProducer
faststream.confluent.publisher.producer.AsyncConfluentFastProducer #
Bases: ProducerProto
A class to represent Kafka producer.
Source code in faststream/confluent/publisher/producer.py
publish async
#
publish(message, topic, *, key=None, partition=None, timestamp_ms=None, headers=None, correlation_id='', reply_to='', no_confirm=False)
Publish a message to a topic.
Source code in faststream/confluent/publisher/producer.py
stop async
#
publish_batch async
#
publish_batch(*msgs, topic, partition=None, timestamp_ms=None, headers=None, reply_to='', correlation_id='', no_confirm=False)
Publish a batch of messages to a topic.