View Source OffBroadway.Kafka.ShowtimeHandler (off_broadway_kafka_pipeline v2.0.0)

Defines an Elsa.Consumer.MessageHandler for integrating with Broadway which supports creating a pipeline per topic partition for increased concurrency.

Configuration for Kafka and Broadway are handled by the OffBroadway.Kafka.kafka_config/1 and OffBroadway.Kafka.broadway_config/3 callbacks.

Set up by the OffBroadway.Kafka macro.

Link to this section Summary

Link to this section Functions

Link to this function

handle_messages(messages, state)

View Source

Handles Kafka messages.

Delegates message processing to OffBroadway.Kafka.Producer.handle_messages/2.

Initializes Broadway pipeline for Elsa.Consumer.MessageHandler.

Assumes a single producer stage using the OffBroadway.Kafka.Producer module. Other Broadway configuration comes from the OffBroadway.Kafka.broadway_config/3callback.

Retains a reference to the producer process in the state.