You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "justinrixx (via GitHub)" <gi...@apache.org> on 2024/07/09 16:45:33 UTC
[I] InitialSubscriptionName for DLQPolicy [pulsar-client-go]
justinrixx opened a new issue, #1239:
URL: https://github.com/apache/pulsar-client-go/issues/1239
**Is your feature request related to a problem? Please describe.**
[From the docs](https://pulsar.apache.org/docs/3.3.x/concepts-messaging/#dead-letter-topic):
>By default, there is no subscription during DLQ topic creation. Without a just-in-time subscription to the DLQ topic, you may lose messages. To automatically create an initial subscription for the DLQ, you can specify the `initialSubscriptionName` parameter.
These docs reference the java client. I don't see a corresponding option in the go client ([I would expect to find a corresponding field on the `DLQPolicy` struct](https://pkg.go.dev/github.com/apache/pulsar-client-go/pulsar#DLQPolicy)).
**Describe the solution you'd like**
The ability to create an initial subscription for a DLQ when creating a consumer with a retry-letter/deadletter policy. Likely a new `string` or `*string` field on `DLQPolicy` which does the same thing as `initialSubscriptionName()` from the java client does, but only if the value is not empty
**Describe alternatives you've considered**
I believe the alternative in order to avoid losing messages is to initialize the subscription to the dead letter topic before creating the consumer which produces to the dead letter topic.
If this option already exists, please point me in the right direction and close this issue.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] InitialSubscriptionName for DLQPolicy [pulsar-client-go]
Posted by "RobertIndie (via GitHub)" <gi...@apache.org>.
RobertIndie closed issue #1239: InitialSubscriptionName for DLQPolicy
URL: https://github.com/apache/pulsar-client-go/issues/1239
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] InitialSubscriptionName for DLQPolicy [pulsar-client-go]
Posted by "RobertIndie (via GitHub)" <gi...@apache.org>.
RobertIndie closed issue #1239: InitialSubscriptionName for DLQPolicy
URL: https://github.com/apache/pulsar-client-go/issues/1239
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org