AsyncConfluentProducer
faststream.confluent.helpers.AsyncConfluentProducer #
AsyncConfluentProducer(
*, logger: LoggerState, config: ConfluentFastConfig
)
An asynchronous Python Kafka client using the "confluent-kafka" package.
Source code in faststream/confluent/helpers/client.py
stop async #
Stop the Kafka producer and flush remaining messages.
Source code in faststream/confluent/helpers/client.py
flush async #
send async #
send(
topic: str,
value: bytes | str | None = None,
key: bytes | str | None = None,
partition: int | None = None,
timestamp_ms: int | None = None,
headers: list[tuple[str, str | bytes]] | None = None,
no_confirm: bool = False,
) -> Future[Message | None] | Message | None
Sends a single message to a Kafka topic.
Source code in faststream/confluent/helpers/client.py
create_batch #
create_batch() -> BatchBuilder
send_batch async #
send_batch(
batch: BatchBuilder,
topic: str,
*,
partition: int | None,
no_confirm: bool = False,
) -> None
Sends a batch of messages to a Kafka topic.
Source code in faststream/confluent/helpers/client.py
ping async #
Implement ping using list_topics information request.