← Back to team overview

mosquitto-users team mailing list archive

Re: Deliver a message to only one subscriber of subscribers which subscribe a topic

 

Hi Roger,

Thank you so much for your advice. Using multiple topic is nice idea. I
think the design of the topic hierarchy is important for efficient
subscriber allocation in this case.

Best regards,

Takahiro




From:	Roger Light <roger@xxxxxxxxxx>
To:	Takahiro Inaba/Durham/Contr/IBM@IBMUS,
Cc:	"mosquitto-users@xxxxxxxxxxxxxxxxxxx"
            <mosquitto-users@xxxxxxxxxxxxxxxxxxx>
Date:	12/19/2013 04:13 AM
Subject:	Re: [Mosquitto-users] Deliver a message to only one subscriber
            of subscribers which subscribe a topic
Sent by:	rogerlight@xxxxxxxxx



Hi Takahiro,

What you describe is unfortunately not something that MQTT supports.
All subscribers to a topic receive all messages. You could produce
similar behaviour by spreading your messages out over multiple topics
with one subscriber per topic, but it isn't really what you are after
I think.

Regards,

Roger

On Wed, Dec 18, 2013 at 9:02 PM, Takahiro Inaba <tinaba@xxxxxxxxxx> wrote:
> Hi,
>
> I'm trying to build high rate messaging system using mosquitto. When a
> subscriber cannot process all messages sent to a topic, can multiple
> subscribers share the work like the shared subscription of Java Message
> Service 2.0? I think mount_point is not designed for this purpose. Do I
have
> to use a message queue which subscribes a topic on a mosquitto?
>
> Best regards,
>
> Takahiro
>
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>

GIF image


References