proxystore.stream.shims.kafka¶
Kafka publisher and subscriber shims.
Shims to the
kafka-python
package.
KafkaPublisher ¶
KafkaPublisher(client: KafkaProducer)
Kafka publisher shim.
Parameters:
-
client
(KafkaProducer
) –KafkaProducer
client.
Source code in proxystore/stream/shims/kafka.py
KafkaSubscriber ¶
KafkaSubscriber(client: KafkaConsumer)
Kafka subscriber shim.
This shim is an iterable object which will yield bytes
messages from the stream, blocking on the next message, until the stream
is closed.
Parameters:
-
client
(KafkaConsumer
) –KafkaConsumer
client.