Publish message, process it in just one client node

19 views
Skip to first unread message

miguel.ga...@gmail.com

unread,
Jun 25, 2015, 10:29:49 AM6/25/15
to haze...@googlegroups.com
Hello, I am currently using HZ topics to publish messages between two machines, M1 runs HZ and M2 uses a HZ-Client. M1's SW creates (and publishes over) topic1 and subscribes to topic2. M2's SW creates (and publishes over) topic2 and subscribes to topic1. 

This all works well because I have just to machines here. But I plan to add more M1-like machines and also M2-like, therefore having more HZ clustered nodes.

The problem I am fearing is that my messages on topic* are to be processed by just one HZ node (whichever of them). My concrete usage cases are sending mobile push notifications and XMPP messaging. I do not want M1-like SW to publish something and be processed by *every* M2-like, but *just by one* of them. 

From my (limited) HZ understanding, I could refactor and use IQueue's instead. I would then expect for any node to put a message in the queue and then *any -but just one-* of the others pop it and process. 

¿Am I right assuming this will solve my scenario? ¿Is there any other approach I could take?

Thanks a lot in advance!

Ali Gurbuz

unread,
Jun 25, 2015, 10:40:33 AM6/25/15
to haze...@googlegroups.com
Yes you can use IQueue

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/963d6df2-d4c7-4533-ae01-0d10d431d96f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Ali Gurbuz
Core Team Lead

Mahir İz Cad. No:35, Altunizade, İstanbul
a...@hazelcast.com 
+90 507 857 7815
@aligurbuz
Reply all
Reply to author
Forward
0 new messages