1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

add note about JWT support

Signed-off-by: Colin Sullivan <colin@synadia.com>
This commit is contained in:
Colin Sullivan 2021-04-30 15:10:00 -06:00
commit 8b087e1c10

View File

@ -19,7 +19,7 @@ mappings = {
# In this example bar.a.b would be mapped to baz.b.a. # In this example bar.a.b would be mapped to baz.b.a.
bar.*.*: baz.$2.$1 bar.*.*: baz.$2.$1
# You can scope mappings to to a particular cluster # You can scope mappings to a particular cluster
foo.cluster.scoped : [ foo.cluster.scoped : [
{ destination: bar.cluster.scoped, weight:100%, cluster: us-west-1 } { destination: bar.cluster.scoped, weight:100%, cluster: us-west-1 }
] ]
@ -62,7 +62,7 @@ With this mapping:
Messages that were originally published to `bar.a.b` are remapped in the server to `baz.b.a`. Messages that were originally published to `bar.a.b` are remapped in the server to `baz.b.a`.
Messages arriving at the server on `bar.one.two` would be mapped to `baz.two.one`, and so forth. Messages arriving at the server on `bar.one.two` would be mapped to `baz.two.one`, and so forth.
## Weighted Mappings for A/B Testing or Canary Releases. ## Weighted Mappings for A/B Testing or Canary Releases
Traffic can be split by percentage from one subject to multiple subjects. Here's an example Traffic can be split by percentage from one subject to multiple subjects. Here's an example
for canary deployments, starting with version 1 of your service. for canary deployments, starting with version 1 of your service.
@ -145,5 +145,5 @@ and the unaccounted for 2% would simulate message loss.
``` ```
*Note: Subject Mapping and Traffic Shaping are also supported in the NATS *Note: Subject Mapping and Traffic Shaping are also supported in the NATS
JWT model, although only through the [JWT API](https://github.com/nats-io/jwt). JWT model, although currently only through the [JWT API](https://github.com/nats-io/jwt).
`nsc` tooling support for subject mapping is coming soon.* `nsc` tooling support for subject mapping is coming soon.*