Skip to content

How does the number of pulsar consumers consume when it exceeds the number of partitions #21959

Answered by Loahrs
kansnow asked this question in Q&A
Discussion options

You must be logged in to vote

In Pulsar we have Topics. Topics can be partitioned or non-partitioned. A partitioned Topic is a virtual concept since it can be used in the same way as a non-partitioned Topic. Pulsar will "wrap" the partitions away. (A consumer will be implicitly subscribed to each partition). However, you can decide to explicitly listen to a specific partition.

Consumers don't subscribe to Topics directly, they do it through a Subscription. A Topic can have n - Subscriptions. If a Topic has 2 Subscriptions, Pulsar will send the message to each Subscription simultaneously. Once an acknowledgment of the message was sent for each Subscription, the message will be deleted.

A Subscription has a type (explic…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kansnow
Comment options

@Loahrs
Comment options

Answer selected by kansnow
@kansnow
Comment options

@mkueh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants