Skip to content

Subscription type after the creation of the subscription using Pulsar Admin createSubscription method #22339

Closed Answered by visortelle
alexesom asked this question in Q&A
Discussion options

You must be logged in to vote

@alexesom I think it's the correct answer to your question :)

https://stackoverflow.com/a/75485553/4182882

The subscription type is determined when the first consumer connects. Pulsar will not persist the subscription type to the metadata store, so Pulsar doesn't have APIs to create a subscription with the subscription type (The created subscription is maintained in the metadata store).
And if the subsequent consumers are using different subscription types, they will fail when they subscribe to the topic. After all consumers disconnect, the subscription will change to "No subscription type" state, so the subscription gets a chance to switch to a different subscription type as before.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by visortelle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants