piet
piet

Reputation: 406

ActiveMQ cosumer connection differ from producer

The following is my ActiveMQ setup:

I have two AMQ broker which are configured with failover. I have 40 producer but only on consumer.

Now the problem: From time to time, one of the producer lost the connection to the master broker. The failover reacts and the producer gets a new connection to the slave which gets the messages. So far so good. But the consumer does not have the problem, he consumes still the messages from the master. He does not know, that the slave has also some messages.

How can i now solve the problem woth losing those messages thay are sent to the slave?

Thank in advance

Upvotes: 0

Views: 92

Answers (1)

Ben Damer
Ben Damer

Reputation: 1036

I would recommend you configure a network of brokers. That way, your brokers will be connected as well, and it no longer matters which broker your producers and consumers connect to - the messages will get propagated across the network.

Upvotes: 1

Related Questions