Creating Dynamic topics for Confluent Kafka using HiveMQ Cloud Broker

Usecase

I aim to set up IoT devices to publish messages to dynamically generated topics, for example, a device with ID 1234 publishing to the topic "device/1234". I would like these topics to be automatically created in Kafka, and when a message arrives at the MQTT broker, it should be forwarded to the identical topic in Kafka. Conversely, when a message is sent on the topic "device/1234" in Kafka, I want it to be relayed to the MQTT broker and then to the device listening on that topic. Is this setup possible?

Answer

It is currently not possible to create topics dynamically.

Solution

Please raise a feature request if this is an important use case and the HiveMQ product team would be happy to connect and scope the request.