GitHub user merlimat added a comment to the discussion: Migrating from 
RabbitMQ: shared consumers with new messages only on ack

> The first thing, which I believe is just not possible due to the nature of 
> the tech, are priority messages and priority consumers, with failover 
> subscriptions being a way to get fairly close to a priority consumer.

For messages priority, you can use separate topics for each priority.

Consumer priority can be set for shared subscriptions: 
https://pulsar.apache.org/api/client/2.11.x/org/apache/pulsar/client/api/ConsumerBuilder.html#priorityLevel(int)
 

> Is this functionality built into the [shared 
> subscription](https://pulsar.apache.org/docs/2.11.x/concepts-messaging/#shared)
>  at all, and if not, would anyone have any recommendations about how to 
> approach the problem? 

You can completely disable prefetching by setting the consumer receiver queue 
to 0: each consumer will only have the message that is currently process and 
won't block any other message.

GitHub link: 
https://github.com/apache/pulsar/discussions/20211#discussioncomment-5776848

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@pulsar.apache.org

Reply via email to