Binding superstream to MQTT Topic Exchange #12623
-
Community Support Policy
RabbitMQ version used4.0.2 How is RabbitMQ deployed?Community Docker image Steps to reproduce the behavior in questionIs it possible to have an MQTT producer send messages to a RabbitMQ MQTT topic exchange (using QoS 0 or 1) and then consumers receive these events over super-streams (connected to streams making use of partitioning with partition keys). I am using .Net and it seems that the super stream and partition keys are setup by the producer. However in my case the producer is an MQTT client and not a stream client. Is this topology possible with RabbitMQ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You can use a stream with publishers MQTT (as if it was a queue) but MQTT clients cannot set up the partitioning that a stream protocol client can. Even then, you can use N streams with MQTT publishers. |
Beta Was this translation helpful? Give feedback.
-
You have the following two options to achieve your use case:
If it's possible to define the partitioning scheme a priori (for example you know that roughly a similar amount of messages are sent to topics with prefix |
Beta Was this translation helpful? Give feedback.
You have the following two options to achieve your use case:
a
. Stream 2 could bind to the topic exchange matching all topics starting with topic levelb
.