Kafka

Kafka

Event source specifications of Kafka.

KafkaSpec

Belong toEventSourceSpec.

Note

The EventSource generates Dapr Bindings Components for adapting Kafka event sources according to the KafkaSpec, and in principle we try to maintain the consistency of the relevant parameters. You can get more information by visiting the Kafka binding spec.

Field Description
brokers string A comma-separated string of Kafka server addresses, for example, localhost:9092.
authRequired bool Whether to enable SASL authentication for the Kafka server. Value options: true, false.
topic string The topic name of the Kafka event source, for example, topicA, myTopic.
saslUsername string (Optional) The SASL username to use for authentication. Only required if authRequired is true. For example, admin.
saslPassword string (Optional) The SASL user password for authentication. Only required if authRequired is true. For example, 123456.
maxMessageBytes int64 (Optional) The maximum number of bytes a single message is allowed to contain. Default is 1024. For example, 2048.
scaleOption KafkaScaleOption (Optional) Kafka’s scale configuration.

KafkaScaleOption

Belong toKafkaSpec.

Field Description
GenericScaleOption Generic scale configuration.
consumerGroup string Kafka’s consumer group name.
topic string Topic under monitoring, for example, topicA, myTopic.
lagThreshold string Threshold for triggering scaling, in this case is the Kafka’s lag.