AsyncConfluentProducer
faststream.confluent.client.AsyncConfluentProducer #
AsyncConfluentProducer(
*,
logger,
config,
bootstrap_servers="localhost",
client_id=None,
metadata_max_age_ms=300000,
request_timeout_ms=40000,
acks=EMPTY,
compression_type=None,
partitioner="consistent_random",
max_request_size=1048576,
linger_ms=0,
retry_backoff_ms=100,
security_protocol="PLAINTEXT",
connections_max_idle_ms=540000,
enable_idempotence=False,
transactional_id=None,
transaction_timeout_ms=60000,
allow_auto_create_topics=True,
sasl_mechanism=None,
sasl_plain_password=None,
sasl_plain_username=None,
)
An asynchronous Python Kafka client using the "confluent-kafka" package.
Source code in faststream/confluent/client.py
stop async
#
Stop the Kafka producer and flush remaining messages.
Source code in faststream/confluent/client.py
send async
#
send(
topic,
value=None,
key=None,
partition=None,
timestamp_ms=None,
headers=None,
no_confirm=False,
)
Sends a single message to a Kafka topic.
Source code in faststream/confluent/client.py
create_batch #
send_batch async
#
Sends a batch of messages to a Kafka topic.
Source code in faststream/confluent/client.py
ping async
#
Implement ping using list_topics
information request.