Operations
Kafka Operations
Kafka source, sink, auth, watermarks, and exactly-once notes.
Source basics
source:
type: kafka
kafka:
brokers: [localhost:9092]
topic: orders
groupID: order-totals
startFrom: earliestUse topics instead of topic for multi-topic consumer-group mode.
Authentication
sasl:
mechanism: plain
username: ${KAFKA_USERNAME}
password: ${KAFKA_PASSWORD}
tls:
caFile: ca.pem
insecureSkipVerify: falsePrefer secret placeholders for credentials.
Watermarks
watermark:
maxOutOfOrderness: 5s
interval: 500msWatermarks are required for event-time windows to fire continuously on Kafka streams.
Plain Kafka sink
sink:
type: kafka
kafka:
brokers: [localhost:9092]
topic: out
batchSize: 100
batchTimeout: 1s
acks: leader
maxRetries: 3
onError: dropPlain Kafka sinks are at-least-once when checkpointing is enabled.
Transactional Kafka sink
sink:
type: txnKafka
txnKafka:
brokers: [localhost:9092]
topic: order-totals
transactionalID: order-totals-pipelineUse a stable transactionalID per pipeline instance. A second process with the
same id fences the first.