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

[ADDED] Stream RePublish and some ConsumerConfig new fields #980

Merged
merged 1 commit into from May 25, 2022

Commits on May 25, 2022

  1. [ADDED] Stream RePublish and some ConsumerConfig new fields

    Namely for pull consumers: ability to override the replica count or storage type:
    ```
    // Generally inherited by parent stream and other markers, now can be configured directly.
    Replicas int `json:"num_replicas"`
    // Force memory storage.
    MemoryStorage bool `json:"mem_storage,omitempty"`
    ```
    
    For the stream, this new StreamConfig option:
    ```
    // Allow republish of the message after being sequenced and stored.
    RePublish *SubjectMapping `json:"republish,omitempty"`
    ```
    Where SubjectMapping is:
    ```
    // SubjectMapping allows a source subject to be mapped to a destination subject for republishing.
    type SubjectMapping struct {
    	Source      string `json:"src,omitempty"`
    	Destination string `json:"dest"`
    }
    ```
    
    Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
    kozlovic committed May 25, 2022
    Copy the full SHA
    9aaf72b View commit details
    Browse the repository at this point in the history