Open Jarema opened 1 year ago
At the moment the best way to play with it is (and check the schemas, and the generated stream and kv config JSON) is to build nats
from the jnm/streamsourcetransform
branch, or to look at nats.go
where it's already implemented.
Overview
With nats-server 2.10.0 this feature will be released.
Server PR: https://github.com/nats-io/nats-server/pull/3814 https://github.com/nats-io/nats-server/pull/3827
PR contains a lot of details.
Example Stream config with transforms:
Besides exposing these new fields in the StreamConfig the client library should also automatically fill-in the subject transformation (subject filter and transform destination) fields in the StreamConfig for the bucket for the defined sources for the bucket, such that the source filter is
"$KV.<sourced bucket name>.>"
and the destination"$KV.<bucket name>.>"
.Example of the StreamConfig for a bucket C that sources from KV buckets A and B:
(see https://github.com/nats-io/nats.go/pull/1200 for reference)
Clients and Tools
Other Tasks
Implemented
Client authors please update with your progress. If you open issues in your own repositories as a result of this request, please link them to this one by pasting the issue URL in a comment or main issue description.