Hi,

On Wed, 12 Jun 2019 at 09:55, fea17e86 <[email protected]> wrote:

> Hi
>
> I want to use Qpid Broker-J and AMQP 1.0 to achieve and event and message
> based communication between my microservices. I would like to hear your
> thoughts on the following scenario:
>
> There are one or more microservices subscribing to the same topic. All of
> the subscribers should receive all messages, or at least the last message
> of
> the same value (LVQ). Even if a subscriber was offline, due to updates,
> failures, or whatever, it should always receive the messages, once being
> online again.
>
> I thought I need to create a topic exchange and create one LVQ per
> subscriber, to make sure that each one of them gets the same messages. Is
> that correct, is there a more elegant way then creating n queues?
>

So, firstly, if you want all the messages to go to all the queues, you can
use a fanout exchange rather than a topic exchange.

In terms of alternative ways to implement the pattern... the way you
describe is probably what you need if you want to ensure that reconnecting
clients only receive messages that they haven't seen before when they were
previously connected.  If  it is OK that on reconnection the client
receives the latest value for every key (whether they have seen it before
or not) then you could use a single LVQ (rather than one per client) and
set the "ensureNonDestructiveConsumers" property to true.

-- Rob


>
> Best regards
> fea
>
>
>
> --
> Sent from:
> http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to