Module mz_storage::source::kafka
source ยท Structsยง
- Glue
Consumer ๐Context An implementation ofConsumerContext
that forwards statistics to the worker - Health
Status ๐ - Processes
resume_uppers
stream updates, committing them upstream and storing them in theprogress_statistics
to be emitted later. - Contains all information necessary to ingest data from Kafka
- A partially-filled version of
ProgressStatisticsUpdate
. This allows us to only emit updates whenoffset_known
is updated by the metadata thread. - Partition
Capability ๐ - Partition
Consumer ๐Wrapper around a partition containing the underlying consumer - Source
Output ๐Info
Enumsยง
Functionsยง
- fetch_
partition_ ๐info Fetches the list of partitions and their corresponding high watermark. - responsible_
for_ ๐pid Computes whether this worker is responsible for consuming a partition. It assigns partitions to workers in a round-robin fashion, starting at an arbitrary worker based on the hash of the source id.
Type Aliasesยง
- High
Watermark ๐The high watermark offsets of a Kafka partition.