Let's say for that one has a Pulsar Producer for a persistent topic topic1
(namespace and tenant are not relevant for the question).
And let's say we have multiple consumers for the same topic (topic1
) with different subscription names.
Is it possible to configure the consumers to receive same message? So for example if message msg1
is sent to the topic both consumer1
and consumer2
receive this message?
Both consumers and producer are written in Java but programming language is not important.
Clarification
The current behavior observed with multiple subscriptions on the same topic with multiple subscriptions is that each of the subscribers do not receive all messages that have been published to the topic. I need to receive all messages from the topic.
Yes, you just need to use multiple subscriptions on the topic.
I wrote a blog post on this exact topic: "Subscriptions: Multiple Groups of Consumers on a Pulsar Topic".