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

Add subject mapping transforms for Streams #838

Closed
Jarema opened this issue Feb 14, 2023 · 0 comments · Fixed by #867
Closed

Add subject mapping transforms for Streams #838

Jarema opened this issue Feb 14, 2023 · 0 comments · Fixed by #867
Labels
enhancement Enhancement to existing functionality

Comments

@Jarema
Copy link
Member

Jarema commented Feb 14, 2023

With nats-server 2.10.0 this feature will be released.

Server PR:
nats-io/nats-server#3798
PR contains a lot of details.

Example Stream config with transforms:

{
  "name": "test2",
  "subjects": [
    "a",
    "b"
  ],
  "retention": "limits",
  "max_consumers": -1,
  "max_msgs_per_subject": -1,
  "max_msgs": -1,
  "max_bytes": -1,
  "max_age": 0,
  "max_msg_size": -1,
  "storage": "file",
  "discard": "old",
  "num_replicas": 1,
  "duplicate_window": 120000000000,
  "input_subject_transform": {
    "src": "fromtest.>",
    "dest": "input.>"
  },
"sources": [
    {
      "name": "test",
      "subject_transform": "fromtest.>",
      "subject_filter" : ">"
    }
  ],
  "sealed": false,
  "deny_delete": false,
  "deny_purge": false,
  "allow_rollup_hdrs": false,
  "allow_direct": false,
  "mirror_direct": false
}

nats-io/nats-architecture-and-design#201

@Jarema Jarema added the enhancement Enhancement to existing functionality label Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant