Replies: 3 comments 1 reply
-
There's probably not a definite answer to the right sizing, but I'll try to provide some answers to other questions. The Shared and Key_Shared subscription types implement the competing consumer pattern in Pulsar. Multiple consumers use the same subscription name. In the case of partitioned topics, each partition is independent in the Pulsar broker and the aggregation is handled on the client side. Client side consumers can consumer from all partitions using the name of the partitioned topics, and there's also the possibility to consume from individual partitions. The name of the partition for a topic is the topic name appended with "-partition-N" where N is 0-based index for the partition. While each partition is independent on the broker side, there are some small details where there are dependencies between the partitions on the client side. For producing there is a dependency on the client side such that if the send queue for a single partition is full, it will block sending also for other partitions. It's reasonable that this happens, but it might become as a surprise when doing failure tests for Pulsar. |
Beta Was this translation helpful? Give feedback.
-
Actually, my question is a very simple one. Trying to understand if messages/partitions left behind in any of the 4 Subscription Modes When we create a pulsar producer on a partitioned topic, pulsar will write to all partitions. Similarly, when we create a Pulsar Consumer , want to understand if it subscribes to all partitions or not, w.r.t 4 subscription modes. Thanks for explaining the per-partition-topic based produce/consume. Right now not looking at that flexibility. |
Beta Was this translation helpful? Give feedback.
-
Please share if the subscriptions, is not clear to you. |
Beta Was this translation helpful? Give feedback.
-
Other messaging systems that support competing consumer pattern allows multiple consumers on a queue with same subscription name.
Kafka supports one consumer group to have multiple consumers that have 1:1 mapping with the partitions in a topic
With Pulsar, due to multiple types of consumption, it isnt' very clear on right sizing the (#producers , topic, #partitions, subscription, subscriptionType, #consumers) to ensure that there is steady state.
Beta Was this translation helpful? Give feedback.
All reactions