6 releases (3 breaking)

0.5.0 Apr 24, 2024
0.3.2 Nov 19, 2023
0.3.1 Jul 11, 2023
0.2.1 May 7, 2023
0.1.0 Mar 2, 2023

#46 in #async-stream

Download history 393/week @ 2024-07-29 403/week @ 2024-08-05 478/week @ 2024-08-12 530/week @ 2024-08-19 545/week @ 2024-08-26 428/week @ 2024-09-02 474/week @ 2024-09-09 518/week @ 2024-09-16 581/week @ 2024-09-23 650/week @ 2024-09-30 585/week @ 2024-10-07 466/week @ 2024-10-14 456/week @ 2024-10-21 513/week @ 2024-10-28 615/week @ 2024-11-04 526/week @ 2024-11-11

2,156 downloads per month
Used in 9 crates (2 directly)

MIT/Apache

110KB
2.5K SLoC

sea-streamer-kafka: Kafka / Redpanda Backend

This is the Kafka / Redpanda backend implementation for SeaStreamer. This crate provides a comprehensive type system that makes working with Kafka easier and safer.

First of all, all API (many are sync) are properly wrapped as async. Methods are also marked &mut to eliminate possible race conditions.

KafkaConsumerOptions has typed parameters.

KafkaConsumer allows you to seek to point in time, rewind to particular offset, and commit message read.

KafkaProducer allows you to await a send Receipt or discard it if you are uninterested. You can also flush the Producer.

KafkaStreamer allows you to flush all producers on disconnect.

See tests for an illustration of the stream semantics.

This crate depends on rdkafka, which in turn depends on librdkafka-sys, which itself is a wrapper of librdkafka.

Configuration Reference: https://kafka.apache.org/documentation/#configuration

Dependencies

~15–31MB
~453K SLoC