mqtt-kafka Binding
Bindingmqtt-kafkaproxy
mqtt-kafka Binding
Defines a binding with mqtt-kafka support.
proxy
Behave as a mqtt-kafka proxy for adapting MQTT topic streams to Kafka topic streams. By configuring the Kafka topics that the proxy will use to route mqtt messages and session states an mqtt server binding can allow clients to connect and proxy MQTT messages onto Kafka topics.
With a store configured, the proxy also maps MQTT 5 shared subscriptions to Kafka share groups.
mqtt_kafka_proxy:
type: mqtt-kafka
kind: proxy
options:
store: my_store
topics:
sessions: mqtt-sessions
messages: mqtt-messages
retained: mqtt-retained
clients:
- place/{identity}/#
routes:
- when:
- publish:
- topic: place/+/device/#
- subscribe:
- topic: place/+/device/#
with:
messages: mqtt-devices
exit: kafka_cache_client
exit: kafka_cache_client
