Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow RePublish stream option to be editable #3803

Closed
amorey opened this issue Jan 23, 2023 · 4 comments
Closed

Allow RePublish stream option to be editable #3803

amorey opened this issue Jan 23, 2023 · 4 comments
Assignees

Comments

@amorey
Copy link
Contributor

amorey commented Jan 23, 2023

Feature Request

Currently, NATS server doesn't allow clients to change the RePublish stream option after it has been defined. Allowing clients to remove/modify RePublish would allow users to disable republishing when it is no longer necessary and to make it easier to make modifications to the subject namespace over time.

In addition, it would be useful for the RePublish option to be a list so you can republish messages to multiple subjects.

Use Case:

The most immediate use cases are 1) disabling republishing when it is no longer necessary and 2) using the feature to make modifications to the subject namespace.

Proposed Change:

Allow the RePublish stream option to be editable.

Who Benefits From The Change(s)?

Users who want to disable RePublishing or change a destination subject.

Alternative Approaches

It should be possible to implement the same behavior by creating a new stream that uses the old stream as a source. Then once the streams are synced, you can set the desired RePublish option in the new stream and delete the old stream. To prevent data loss between deleting the old stream and subscribing the new stream to the old subjects, you can use subject mapping to redirect messages from the old stream to the new stream.

@derekcollison
Copy link
Member

This is reasonable, @Jarema or @neilalexander could one of you take this on for 2.10?

@neilalexander
Copy link
Member

Completed by #3811.

@ripienaar
Copy link
Contributor

Will need a https://github.com/nats-io/nats-architecture-and-design/ issue for clients to support this

@amorey
Copy link
Contributor Author

amorey commented Jan 29, 2023

Wow! Very impressive turnaround! Thank you!! How difficult would it be to make the republish option available as a list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants