Module kafka::client

source ·
Expand description

Kafka Client - A mid-level abstraction for a kafka cluster allowing building higher level constructs.

The entry point into this module is KafkaClient obtained by a call to KafkaClient::new().

Modules

  • A representation of fetched messages from Kafka.
  • Types related to topic metadata for introspection by clients. Example: KafkaClient::topics().

Structs

  • Data point identifying a particular topic partition offset to be committed. See KafkaClient::commit_offsets.
  • Data point identifying a topic partition to fetch a group’s offset for. See KafkaClient::fetch_group_offsets.
  • Partition related request data for fetching messages. See KafkaClient::fetch_messages.
  • Client struct keeping track of brokers and topic metadata.
  • A retrieved offset for a particular partition in the context of an already known topic.
  • A confirmation of messages sent back by the Kafka broker to confirm delivery of producer messages.
  • Message data to be sent/produced to a particular topic partition. See KafkaClient::produce_messages and Producer::send.
  • A confirmation of messages sent back by the Kafka broker to confirm delivery of producer messages for a particular topic.
  • Security relevant configuration options for KafkaClient.

Enums

  • Compression types supported by kafka. The numeral values of this enumeration correspond to the compression encoding in the attributes of a Message in the protocol.
  • Possible values when querying a topic’s offset. See KafkaClient::fetch_offsets.
  • Defines the available storage types to utilize when fetching or committing group offsets. See also KafkaClient::set_group_offset_storage.
  • Possible choices on acknowledgement requirements when producing/sending messages to Kafka. See KafkaClient::produce_messages.

Constants