simpleusr
simpleusr

Reputation: 374

Hazelcast topic - messages seem to be sent from only one member

I am using hazelcast cluster in client server mode. There are two members in the cluster.

From one client, I am publishing messages to topic and from other clients I am trying to receive messages from the topic.

In management center , it is shown that all operations are performed in only one instance.

enter image description here

Is this the expected behavior ? I would expect publishes and receives in both members

Regards

Upvotes: 0

Views: 1041

Answers (1)

sertug
sertug

Reputation: 969

I see same question is answered on google groups. As an addition to that answer, please keep in mind that ITopic is a non-partitioned data structure which means it is stored on a single partition (=single member). That's why you see all pub/sub related to that topic happens on a single member.

On the other hand, if you have a topic use-case I'd like to let you know about ReliableTopic as well, it has better guarantees but that might come with an overhead, obviously.

Upvotes: 2

Related Questions