From e7fcdaf24b56a7a686aa692167cf0944dc83d700 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Sun, 27 Nov 2022 21:13:22 -0500 Subject: [PATCH 01/11] Update Go and server versions Signed-off-by: Byron Ruth --- cmd/nbe/go.mod | 2 +- docker/docker-compose.cluster.yaml | 6 +++--- docker/docker-compose.yaml | 2 +- docker/go/Dockerfile | 2 +- docker/go/go.mod | 10 +++------- docker/go/go.sum | 24 ++++-------------------- 6 files changed, 13 insertions(+), 33 deletions(-) diff --git a/cmd/nbe/go.mod b/cmd/nbe/go.mod index fa450c8e..2a2a32a8 100644 --- a/cmd/nbe/go.mod +++ b/cmd/nbe/go.mod @@ -1,6 +1,6 @@ module github.com/bruth/nats-by-example/cmd/nbe -go 1.18 +go 1.19 require ( github.com/alecthomas/chroma v0.10.0 diff --git a/docker/docker-compose.cluster.yaml b/docker/docker-compose.cluster.yaml index 6b787efd..fd140536 100644 --- a/docker/docker-compose.cluster.yaml +++ b/docker/docker-compose.cluster.yaml @@ -1,7 +1,7 @@ version: '3.9' services: nats1: - image: docker.io/nats:2.9.0 + image: docker.io/nats:2.9.8 command: - "--debug" - "--name=nats1" @@ -15,7 +15,7 @@ services: - "18222:8222" nats2: - image: docker.io/nats:2.9.0 + image: docker.io/nats:2.9.8 command: - "--debug" - "--name=nats2" @@ -29,7 +29,7 @@ services: - "28222:8222" nats3: - image: docker.io/nats:2.9.0 + image: docker.io/nats:2.9.8 command: - "--debug" - "--name=nats3" diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 01ffc775..a08ccef6 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -1,7 +1,7 @@ version: '3.9' services: nats: - image: docker.io/nats:2.9.0 + image: docker.io/nats:2.9.8 command: - "--debug" - "--http_port=8222" diff --git a/docker/go/Dockerfile b/docker/go/Dockerfile index 37cce520..65059000 100644 --- a/docker/go/Dockerfile +++ b/docker/go/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18-alpine AS build +FROM golang:1.19-alpine AS build WORKDIR /opt/app diff --git a/docker/go/go.mod b/docker/go/go.mod index 8087879a..2ef162f6 100644 --- a/docker/go/go.mod +++ b/docker/go/go.mod @@ -1,14 +1,10 @@ module github.com/ConnectEverything/nats-by-example/go -go 1.18 - -require github.com/nats-io/nats.go v1.16.0 +go 1.19 require ( - github.com/golang/protobuf v1.5.2 // indirect - github.com/nats-io/nats-server/v2 v2.8.4 // indirect + github.com/nats-io/nats.go v1.20.0 // indirect github.com/nats-io/nkeys v0.3.0 // indirect github.com/nats-io/nuid v1.0.1 // indirect - golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect - google.golang.org/protobuf v1.28.0 // indirect + golang.org/x/crypto v0.3.0 // indirect ) diff --git a/docker/go/go.sum b/docker/go/go.sum index 40c4c9b6..836f4562 100644 --- a/docker/go/go.sum +++ b/docker/go/go.sum @@ -1,30 +1,14 @@ -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/klauspost/compress v1.14.4 h1:eijASRJcobkVtSt81Olfh7JX43osYLwy5krOJo6YEu4= -github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= -github.com/nats-io/jwt/v2 v2.2.1-0.20220330180145-442af02fd36a h1:lem6QCvxR0Y28gth9P+wV2K/zYUUAkJ+55U8cpS0p5I= -github.com/nats-io/nats-server/v2 v2.8.4 h1:0jQzze1T9mECg8YZEl8+WYUXb9JKluJfCBriPUtluB4= -github.com/nats-io/nats-server/v2 v2.8.4/go.mod h1:8zZa+Al3WsESfmgSs98Fi06dRWLH5Bnq90m5bKD/eT4= -github.com/nats-io/nats.go v1.16.0 h1:zvLE7fGBQYW6MWaFaRdsgm9qT39PJDQoju+DS8KsO1g= -github.com/nats-io/nats.go v1.16.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w= +github.com/nats-io/nats.go v1.20.0 h1:T8JJnQfVSdh1CzGiwAOv5hEobYCBho/0EupGznYw0oM= +github.com/nats-io/nats.go v1.20.0/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA= github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd h1:XcWmESyNjXJMLahc3mqVQJcgSTDxFxhETVlfk9uGc38= -golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20220111092808-5a964db01320 h1:0jf+tOCoZ3LyutmCOWpVni1chK4VfFLhRsDK7MhqGRY= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 h1:GZokNIeuVkl3aZHJchRrr13WCsols02MLUcz1U9is6M= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= From 75f383b35e8596294cfa7dc9c6596fba3a798314 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 08:30:44 -0500 Subject: [PATCH 02/11] Upgrade versions and remove redundant Dockerfiles Signed-off-by: Byron Ruth --- cmd/nbe/docker.go | 14 ++++++++++---- cmd/nbe/parse.go | 3 +++ docker/cli/Dockerfile | 9 +++++++-- .../cli}/docker-compose.yaml | 2 +- docker/deno/Dockerfile | 2 +- docker/go/go.mod | 1 + docker/go/go.sum | 2 ++ docker/java/Dockerfile | 2 +- docker/java/build.gradle | 2 +- docker/node/Dockerfile | 2 +- docker/python/Dockerfile | 2 +- docker/python/requirements.txt | 2 +- docker/rust/Dockerfile | 2 +- examples/auth/nkeys-jwts/go/go.mod | 10 ---------- examples/auth/nkeys-jwts/go/go.sum | 11 ----------- examples/auth/private-inbox-jwt/cli/Dockerfile | 9 --------- .../auth/private-inbox-jwt/docker-compose.yaml | 7 ------- examples/auth/private-inbox/cli/Dockerfile | 9 --------- examples/auth/private-inbox/docker-compose.yaml | 7 ------- examples/auth/sys-account/cli/Dockerfile | 9 --------- examples/auth/sys-account/docker-compose.yaml | 7 ------- examples/topologies/leafnode-jwt/cli/Dockerfile | 9 --------- .../topologies/leafnode-jwt/docker-compose.yaml | 7 ------- examples/topologies/simple-leafnode/cli/Dockerfile | 9 --------- .../topologies/simple-leafnode/docker-compose.yaml | 7 ------- .../topologies/supercluster-arbiter/cli/Dockerfile | 11 ----------- .../supercluster-jetstream/cli/Dockerfile | 12 ------------ .../supercluster-jetstream/docker-compose.yaml | 4 ---- examples/topologies/supercluster/cli/Dockerfile | 12 ------------ .../topologies/supercluster/docker-compose.yaml | 4 ---- .../cross-region-streams-cluster/cli/Dockerfile | 11 ----------- .../docker-compose.yaml | 4 ---- .../cli/Dockerfile | 11 ----------- .../docker-compose.yaml | 4 ---- 34 files changed, 31 insertions(+), 188 deletions(-) rename {examples/topologies/supercluster-arbiter => docker/cli}/docker-compose.yaml (57%) delete mode 100644 examples/auth/nkeys-jwts/go/go.mod delete mode 100644 examples/auth/nkeys-jwts/go/go.sum delete mode 100644 examples/auth/private-inbox-jwt/cli/Dockerfile delete mode 100644 examples/auth/private-inbox-jwt/docker-compose.yaml delete mode 100644 examples/auth/private-inbox/cli/Dockerfile delete mode 100644 examples/auth/private-inbox/docker-compose.yaml delete mode 100644 examples/auth/sys-account/cli/Dockerfile delete mode 100644 examples/auth/sys-account/docker-compose.yaml delete mode 100644 examples/topologies/leafnode-jwt/cli/Dockerfile delete mode 100644 examples/topologies/leafnode-jwt/docker-compose.yaml delete mode 100644 examples/topologies/simple-leafnode/cli/Dockerfile delete mode 100644 examples/topologies/simple-leafnode/docker-compose.yaml delete mode 100644 examples/topologies/supercluster-arbiter/cli/Dockerfile delete mode 100644 examples/topologies/supercluster-jetstream/cli/Dockerfile delete mode 100644 examples/topologies/supercluster-jetstream/docker-compose.yaml delete mode 100644 examples/topologies/supercluster/cli/Dockerfile delete mode 100644 examples/topologies/supercluster/docker-compose.yaml delete mode 100644 examples/use-cases/cross-region-streams-cluster/cli/Dockerfile delete mode 100644 examples/use-cases/cross-region-streams-cluster/docker-compose.yaml delete mode 100644 examples/use-cases/cross-region-streams-supercluster/cli/Dockerfile delete mode 100644 examples/use-cases/cross-region-streams-supercluster/docker-compose.yaml diff --git a/cmd/nbe/docker.go b/cmd/nbe/docker.go index 3efdd906..3e8e2ee3 100644 --- a/cmd/nbe/docker.go +++ b/cmd/nbe/docker.go @@ -217,16 +217,22 @@ func (r *ComposeRunner) Run(imageTag string) error { exampleDir := filepath.Dir(clientDir) lang := filepath.Base(example) - composeFile := filepath.Join(exampleDir, "docker-compose.yaml") + // Check client directory first, fallback to example directory, finally the defaults. + composeFile := filepath.Join(clientDir, "docker-compose.yaml") if _, err := os.Stat(composeFile); err != nil { - if os.IsNotExist(err) { + if !os.IsNotExist(err) { + return err + } + composeFile = filepath.Join(exampleDir, "docker-compose.yaml") + if _, err := os.Stat(composeFile); err != nil { + if !os.IsNotExist(err) { + return err + } if r.Cluster { composeFile = filepath.Join(r.Repo, "docker", "docker-compose.cluster.yaml") } else { composeFile = filepath.Join(r.Repo, "docker", "docker-compose.yaml") } - } else { - return err } } diff --git a/cmd/nbe/parse.go b/cmd/nbe/parse.go index 90b13b5f..4698032d 100644 --- a/cmd/nbe/parse.go +++ b/cmd/nbe/parse.go @@ -349,6 +349,9 @@ func readClientDir(path, name string) (*Client, error) { defer f.Close() blocks, source, err := parseReader(lang, f) + if err != nil { + return nil, err + } x.Language = lang x.MainFile = mainFile x.Blocks = blocks diff --git a/docker/cli/Dockerfile b/docker/cli/Dockerfile index 9c86e4b2..b9861273 100644 --- a/docker/cli/Dockerfile +++ b/docker/cli/Dockerfile @@ -1,6 +1,11 @@ -FROM natsio/nats-box:0.13.0 +FROM natsio/nats-box:0.13.2 + +RUN apk add bash curl + +COPY --from=nats:2.9.8 /nats-server /usr/local/bin/ COPY . . -CMD ["main.sh"] +ENTRYPOINT ["bash"] +CMD ["main.sh"] diff --git a/examples/topologies/supercluster-arbiter/docker-compose.yaml b/docker/cli/docker-compose.yaml similarity index 57% rename from examples/topologies/supercluster-arbiter/docker-compose.yaml rename to docker/cli/docker-compose.yaml index b45dea38..9c528cfb 100644 --- a/examples/topologies/supercluster-arbiter/docker-compose.yaml +++ b/docker/cli/docker-compose.yaml @@ -1,4 +1,4 @@ version: '3.9' services: app: - image: ${IMAGE_TAG} + image: ${IMAGE_TAG} \ No newline at end of file diff --git a/docker/deno/Dockerfile b/docker/deno/Dockerfile index 9c7d3fe9..7df5d35c 100644 --- a/docker/deno/Dockerfile +++ b/docker/deno/Dockerfile @@ -1,4 +1,4 @@ -FROM denoland/deno:1.23.3 +FROM denoland/deno:1.28.2 COPY . . diff --git a/docker/go/go.mod b/docker/go/go.mod index 2ef162f6..808ab4fa 100644 --- a/docker/go/go.mod +++ b/docker/go/go.mod @@ -3,6 +3,7 @@ module github.com/ConnectEverything/nats-by-example/go go 1.19 require ( + github.com/nats-io/jwt/v2 v2.3.0 // indirect github.com/nats-io/nats.go v1.20.0 // indirect github.com/nats-io/nkeys v0.3.0 // indirect github.com/nats-io/nuid v1.0.1 // indirect diff --git a/docker/go/go.sum b/docker/go/go.sum index 836f4562..ade69e54 100644 --- a/docker/go/go.sum +++ b/docker/go/go.sum @@ -1,3 +1,5 @@ +github.com/nats-io/jwt/v2 v2.3.0 h1:z2mA1a7tIf5ShggOFlR1oBPgd6hGqcDYsISxZByUzdI= +github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k= github.com/nats-io/nats.go v1.20.0 h1:T8JJnQfVSdh1CzGiwAOv5hEobYCBho/0EupGznYw0oM= github.com/nats-io/nats.go v1.20.0/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA= github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= diff --git a/docker/java/Dockerfile b/docker/java/Dockerfile index f9c8f930..8ba9de5b 100644 --- a/docker/java/Dockerfile +++ b/docker/java/Dockerfile @@ -1,4 +1,4 @@ -FROM gradle:7.5.0-jdk8-jammy AS build +FROM gradle:7.5.1-jdk8-jammy AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN mkdir -p src/main/java/example diff --git a/docker/java/build.gradle b/docker/java/build.gradle index 87722da6..6da59bdb 100644 --- a/docker/java/build.gradle +++ b/docker/java/build.gradle @@ -7,7 +7,7 @@ repositories { } dependencies { - implementation 'io.nats:jnats:2.15.5' + implementation 'io.nats:jnats:2.16.5' } apply plugin: 'java' diff --git a/docker/node/Dockerfile b/docker/node/Dockerfile index 7ef06629..914d9f07 100644 --- a/docker/node/Dockerfile +++ b/docker/node/Dockerfile @@ -1,4 +1,4 @@ -FROM node:slim +FROM node:19.1.0-slim WORKDIR /opt/app diff --git a/docker/python/Dockerfile b/docker/python/Dockerfile index e579bb73..7eda60b3 100644 --- a/docker/python/Dockerfile +++ b/docker/python/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.10.8-slim COPY requirements.txt ./ RUN pip install -r requirements.txt diff --git a/docker/python/requirements.txt b/docker/python/requirements.txt index f48a6b12..b6439c16 100644 --- a/docker/python/requirements.txt +++ b/docker/python/requirements.txt @@ -1 +1 @@ -nats-py[nkeys]==2.1.4 \ No newline at end of file +nats-py[nkeys]==2.2.0 \ No newline at end of file diff --git a/docker/rust/Dockerfile b/docker/rust/Dockerfile index dd6ff44b..48b371f4 100644 --- a/docker/rust/Dockerfile +++ b/docker/rust/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.62-slim AS build +FROM rust:1.65.0-slim AS build WORKDIR /opt/app diff --git a/examples/auth/nkeys-jwts/go/go.mod b/examples/auth/nkeys-jwts/go/go.mod deleted file mode 100644 index 3754602c..00000000 --- a/examples/auth/nkeys-jwts/go/go.mod +++ /dev/null @@ -1,10 +0,0 @@ -module github.com/ConnectEverything/nats-by-example/examples/auth/nkeys-jwts/go - -go 1.18 - -require ( - github.com/nats-io/jwt/v2 v2.3.0 - github.com/nats-io/nkeys v0.3.0 -) - -require golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b // indirect diff --git a/examples/auth/nkeys-jwts/go/go.sum b/examples/auth/nkeys-jwts/go/go.sum deleted file mode 100644 index 2b1b8702..00000000 --- a/examples/auth/nkeys-jwts/go/go.sum +++ /dev/null @@ -1,11 +0,0 @@ -github.com/nats-io/jwt/v2 v2.3.0 h1:z2mA1a7tIf5ShggOFlR1oBPgd6hGqcDYsISxZByUzdI= -github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k= -github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8= -github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4= -golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b h1:wSOdpTq0/eI46Ez/LkDwIsAKA71YP2SRKBODiRWM0as= -golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/examples/auth/private-inbox-jwt/cli/Dockerfile b/examples/auth/private-inbox-jwt/cli/Dockerfile deleted file mode 100644 index 0d6dbbf3..00000000 --- a/examples/auth/private-inbox-jwt/cli/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -# Copy nats-server from source image. -COPY --from=nats:2.8.4-alpine /usr/local/bin/nats-server /usr/local/bin/ - -COPY . . - -CMD ["main.sh"] - diff --git a/examples/auth/private-inbox-jwt/docker-compose.yaml b/examples/auth/private-inbox-jwt/docker-compose.yaml deleted file mode 100644 index ebb0bbd8..00000000 --- a/examples/auth/private-inbox-jwt/docker-compose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} - ports: - - "14222:4222" - - "14223:4223" diff --git a/examples/auth/private-inbox/cli/Dockerfile b/examples/auth/private-inbox/cli/Dockerfile deleted file mode 100644 index 0d6dbbf3..00000000 --- a/examples/auth/private-inbox/cli/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -# Copy nats-server from source image. -COPY --from=nats:2.8.4-alpine /usr/local/bin/nats-server /usr/local/bin/ - -COPY . . - -CMD ["main.sh"] - diff --git a/examples/auth/private-inbox/docker-compose.yaml b/examples/auth/private-inbox/docker-compose.yaml deleted file mode 100644 index ebb0bbd8..00000000 --- a/examples/auth/private-inbox/docker-compose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} - ports: - - "14222:4222" - - "14223:4223" diff --git a/examples/auth/sys-account/cli/Dockerfile b/examples/auth/sys-account/cli/Dockerfile deleted file mode 100644 index 0d6dbbf3..00000000 --- a/examples/auth/sys-account/cli/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -# Copy nats-server from source image. -COPY --from=nats:2.8.4-alpine /usr/local/bin/nats-server /usr/local/bin/ - -COPY . . - -CMD ["main.sh"] - diff --git a/examples/auth/sys-account/docker-compose.yaml b/examples/auth/sys-account/docker-compose.yaml deleted file mode 100644 index ebb0bbd8..00000000 --- a/examples/auth/sys-account/docker-compose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} - ports: - - "14222:4222" - - "14223:4223" diff --git a/examples/topologies/leafnode-jwt/cli/Dockerfile b/examples/topologies/leafnode-jwt/cli/Dockerfile deleted file mode 100644 index 0d6dbbf3..00000000 --- a/examples/topologies/leafnode-jwt/cli/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -# Copy nats-server from source image. -COPY --from=nats:2.8.4-alpine /usr/local/bin/nats-server /usr/local/bin/ - -COPY . . - -CMD ["main.sh"] - diff --git a/examples/topologies/leafnode-jwt/docker-compose.yaml b/examples/topologies/leafnode-jwt/docker-compose.yaml deleted file mode 100644 index ebb0bbd8..00000000 --- a/examples/topologies/leafnode-jwt/docker-compose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} - ports: - - "14222:4222" - - "14223:4223" diff --git a/examples/topologies/simple-leafnode/cli/Dockerfile b/examples/topologies/simple-leafnode/cli/Dockerfile deleted file mode 100644 index 0d6dbbf3..00000000 --- a/examples/topologies/simple-leafnode/cli/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -# Copy nats-server from source image. -COPY --from=nats:2.8.4-alpine /usr/local/bin/nats-server /usr/local/bin/ - -COPY . . - -CMD ["main.sh"] - diff --git a/examples/topologies/simple-leafnode/docker-compose.yaml b/examples/topologies/simple-leafnode/docker-compose.yaml deleted file mode 100644 index ebb0bbd8..00000000 --- a/examples/topologies/simple-leafnode/docker-compose.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} - ports: - - "14222:4222" - - "14223:4223" diff --git a/examples/topologies/supercluster-arbiter/cli/Dockerfile b/examples/topologies/supercluster-arbiter/cli/Dockerfile deleted file mode 100644 index 27ae930f..00000000 --- a/examples/topologies/supercluster-arbiter/cli/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -RUN apk add bash curl - -COPY --from=nats:2.9.0 /nats-server /usr/local/bin/ - -COPY . . - -ENTRYPOINT ["bash"] - -CMD ["main.sh"] diff --git a/examples/topologies/supercluster-jetstream/cli/Dockerfile b/examples/topologies/supercluster-jetstream/cli/Dockerfile deleted file mode 100644 index e8c1d8de..00000000 --- a/examples/topologies/supercluster-jetstream/cli/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -RUN apk add bash curl - -COPY --from=nats:2.9.1 /nats-server /usr/local/bin/ - -COPY . . - -ENTRYPOINT ["bash"] - -CMD ["main.sh"] - diff --git a/examples/topologies/supercluster-jetstream/docker-compose.yaml b/examples/topologies/supercluster-jetstream/docker-compose.yaml deleted file mode 100644 index b45dea38..00000000 --- a/examples/topologies/supercluster-jetstream/docker-compose.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} diff --git a/examples/topologies/supercluster/cli/Dockerfile b/examples/topologies/supercluster/cli/Dockerfile deleted file mode 100644 index e8c1d8de..00000000 --- a/examples/topologies/supercluster/cli/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -RUN apk add bash curl - -COPY --from=nats:2.9.1 /nats-server /usr/local/bin/ - -COPY . . - -ENTRYPOINT ["bash"] - -CMD ["main.sh"] - diff --git a/examples/topologies/supercluster/docker-compose.yaml b/examples/topologies/supercluster/docker-compose.yaml deleted file mode 100644 index b45dea38..00000000 --- a/examples/topologies/supercluster/docker-compose.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} diff --git a/examples/use-cases/cross-region-streams-cluster/cli/Dockerfile b/examples/use-cases/cross-region-streams-cluster/cli/Dockerfile deleted file mode 100644 index eafc21c0..00000000 --- a/examples/use-cases/cross-region-streams-cluster/cli/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -RUN apk add bash curl - -COPY --from=synadia/nats-server:nightly /bin/nats-server /usr/local/bin/ - -COPY . . - -ENTRYPOINT ["bash"] - -CMD ["main.sh"] diff --git a/examples/use-cases/cross-region-streams-cluster/docker-compose.yaml b/examples/use-cases/cross-region-streams-cluster/docker-compose.yaml deleted file mode 100644 index b45dea38..00000000 --- a/examples/use-cases/cross-region-streams-cluster/docker-compose.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/Dockerfile b/examples/use-cases/cross-region-streams-supercluster/cli/Dockerfile deleted file mode 100644 index eafc21c0..00000000 --- a/examples/use-cases/cross-region-streams-supercluster/cli/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM natsio/nats-box:0.12.0 - -RUN apk add bash curl - -COPY --from=synadia/nats-server:nightly /bin/nats-server /usr/local/bin/ - -COPY . . - -ENTRYPOINT ["bash"] - -CMD ["main.sh"] diff --git a/examples/use-cases/cross-region-streams-supercluster/docker-compose.yaml b/examples/use-cases/cross-region-streams-supercluster/docker-compose.yaml deleted file mode 100644 index b45dea38..00000000 --- a/examples/use-cases/cross-region-streams-supercluster/docker-compose.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: '3.9' -services: - app: - image: ${IMAGE_TAG} From c582cd1c3f34e20910004a69ef9c570da79a848c Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 08:34:13 -0500 Subject: [PATCH 03/11] Remove recordings to regenerate with new versions Signed-off-by: Byron Ruth --- examples/auth/nkeys-jwts/go/output.cast | 11 - examples/auth/nkeys-jwts/go/output.txt | 72 ---- .../auth/private-inbox-jwt/cli/output.cast | 52 --- .../auth/private-inbox-jwt/cli/output.txt | 125 ------- examples/auth/private-inbox/cli/output.cast | 45 --- examples/auth/private-inbox/cli/output.txt | 84 ----- examples/auth/sys-account/cli/output.cast | 48 --- examples/auth/sys-account/cli/output.txt | 101 ----- .../jetstream/interest-stream/go/output.cast | 16 - .../jetstream/interest-stream/go/output.txt | 74 ---- .../jetstream/limits-stream/deno/output.cast | 21 -- .../jetstream/limits-stream/deno/output.txt | 48 --- .../jetstream/limits-stream/go/output.cast | 18 - .../jetstream/limits-stream/go/output.txt | 63 ---- .../jetstream/limits-stream/node/output.cast | 18 - .../jetstream/limits-stream/node/output.txt | 48 --- .../multi-stream-consumption/go/output.cast | 12 - .../multi-stream-consumption/go/output.txt | 14 - .../pull-consumer-limits/go/output.cast | 16 - .../pull-consumer-limits/go/output.txt | 24 -- .../jetstream/pull-consumer/go/output.cast | 21 -- .../jetstream/pull-consumer/go/output.txt | 14 - .../jetstream/pull-consumer/rust/output.cast | 10 - .../jetstream/pull-consumer/rust/output.txt | 16 - .../jetstream/push-consumer/go/output.cast | 28 -- .../jetstream/push-consumer/go/output.txt | 31 -- .../queue-push-consumer/go/output.cast | 14 - .../queue-push-consumer/go/output.txt | 20 - .../jetstream/workqueue-stream/go/output.cast | 19 - .../jetstream/workqueue-stream/go/output.txt | 40 -- examples/kv/intro/go/output.cast | 14 - examples/kv/intro/go/output.txt | 18 - .../messaging/concurrent/rust/output.cast | 54 --- examples/messaging/concurrent/rust/output.txt | 56 --- .../rust/output.cast | 346 ------------------ .../rust/output.txt | 306 ---------------- examples/messaging/json/rust/output.cast | 8 - examples/messaging/json/rust/output.txt | 8 - examples/messaging/pub-sub/cli/output.cast | 17 - examples/messaging/pub-sub/cli/output.txt | 28 -- examples/messaging/pub-sub/deno/output.cast | 9 - examples/messaging/pub-sub/deno/output.txt | 9 - examples/messaging/pub-sub/go/output.cast | 10 - examples/messaging/pub-sub/go/output.txt | 11 - examples/messaging/pub-sub/java/output.cast | 10 - examples/messaging/pub-sub/java/output.txt | 9 - examples/messaging/pub-sub/node/output.cast | 9 - examples/messaging/pub-sub/node/output.txt | 9 - examples/messaging/pub-sub/python/output.cast | 8 - examples/messaging/pub-sub/python/output.txt | 9 - examples/messaging/pub-sub/rust/output.cast | 8 - examples/messaging/pub-sub/rust/output.txt | 9 - .../messaging/request-reply/go/output.cast | 11 - .../messaging/request-reply/go/output.txt | 10 - .../request-reply/python/output.cast | 8 - .../messaging/request-reply/python/output.txt | 10 - .../messaging/request-reply/rust/output.cast | 10 - .../messaging/request-reply/rust/output.txt | 9 - .../topologies/leafnode-jwt/cli/output.cast | 44 --- .../topologies/leafnode-jwt/cli/output.txt | 113 ------ .../simple-leafnode/cli/output.cast | 42 --- .../topologies/simple-leafnode/cli/output.txt | 86 ----- .../supercluster-arbiter/cli/output.cast | 20 - .../supercluster-arbiter/cli/output.txt | 163 --------- .../supercluster-jetstream/cli/output.cast | 18 - .../supercluster-jetstream/cli/output.txt | 54 --- .../topologies/supercluster/cli/output.cast | 15 - .../topologies/supercluster/cli/output.txt | 31 -- .../cli/output.cast | 35 -- .../cli/output.txt | 158 -------- .../cli/output.cast | 44 --- .../cli/output.txt | 246 ------------- 72 files changed, 3215 deletions(-) delete mode 100644 examples/auth/nkeys-jwts/go/output.cast delete mode 100644 examples/auth/nkeys-jwts/go/output.txt delete mode 100644 examples/auth/private-inbox-jwt/cli/output.cast delete mode 100644 examples/auth/private-inbox-jwt/cli/output.txt delete mode 100644 examples/auth/private-inbox/cli/output.cast delete mode 100644 examples/auth/private-inbox/cli/output.txt delete mode 100644 examples/auth/sys-account/cli/output.cast delete mode 100644 examples/auth/sys-account/cli/output.txt delete mode 100644 examples/jetstream/interest-stream/go/output.cast delete mode 100644 examples/jetstream/interest-stream/go/output.txt delete mode 100644 examples/jetstream/limits-stream/deno/output.cast delete mode 100644 examples/jetstream/limits-stream/deno/output.txt delete mode 100644 examples/jetstream/limits-stream/go/output.cast delete mode 100644 examples/jetstream/limits-stream/go/output.txt delete mode 100644 examples/jetstream/limits-stream/node/output.cast delete mode 100644 examples/jetstream/limits-stream/node/output.txt delete mode 100644 examples/jetstream/multi-stream-consumption/go/output.cast delete mode 100644 examples/jetstream/multi-stream-consumption/go/output.txt delete mode 100644 examples/jetstream/pull-consumer-limits/go/output.cast delete mode 100644 examples/jetstream/pull-consumer-limits/go/output.txt delete mode 100644 examples/jetstream/pull-consumer/go/output.cast delete mode 100644 examples/jetstream/pull-consumer/go/output.txt delete mode 100644 examples/jetstream/pull-consumer/rust/output.cast delete mode 100644 examples/jetstream/pull-consumer/rust/output.txt delete mode 100644 examples/jetstream/push-consumer/go/output.cast delete mode 100644 examples/jetstream/push-consumer/go/output.txt delete mode 100644 examples/jetstream/queue-push-consumer/go/output.cast delete mode 100644 examples/jetstream/queue-push-consumer/go/output.txt delete mode 100644 examples/jetstream/workqueue-stream/go/output.cast delete mode 100644 examples/jetstream/workqueue-stream/go/output.txt delete mode 100644 examples/kv/intro/go/output.cast delete mode 100644 examples/kv/intro/go/output.txt delete mode 100644 examples/messaging/concurrent/rust/output.cast delete mode 100644 examples/messaging/concurrent/rust/output.txt delete mode 100644 examples/messaging/iterating-multiple-subscriptions/rust/output.cast delete mode 100644 examples/messaging/iterating-multiple-subscriptions/rust/output.txt delete mode 100644 examples/messaging/json/rust/output.cast delete mode 100644 examples/messaging/json/rust/output.txt delete mode 100644 examples/messaging/pub-sub/cli/output.cast delete mode 100644 examples/messaging/pub-sub/cli/output.txt delete mode 100644 examples/messaging/pub-sub/deno/output.cast delete mode 100644 examples/messaging/pub-sub/deno/output.txt delete mode 100644 examples/messaging/pub-sub/go/output.cast delete mode 100644 examples/messaging/pub-sub/go/output.txt delete mode 100644 examples/messaging/pub-sub/java/output.cast delete mode 100644 examples/messaging/pub-sub/java/output.txt delete mode 100644 examples/messaging/pub-sub/node/output.cast delete mode 100644 examples/messaging/pub-sub/node/output.txt delete mode 100644 examples/messaging/pub-sub/python/output.cast delete mode 100644 examples/messaging/pub-sub/python/output.txt delete mode 100644 examples/messaging/pub-sub/rust/output.cast delete mode 100644 examples/messaging/pub-sub/rust/output.txt delete mode 100644 examples/messaging/request-reply/go/output.cast delete mode 100644 examples/messaging/request-reply/go/output.txt delete mode 100644 examples/messaging/request-reply/python/output.cast delete mode 100644 examples/messaging/request-reply/python/output.txt delete mode 100644 examples/messaging/request-reply/rust/output.cast delete mode 100644 examples/messaging/request-reply/rust/output.txt delete mode 100644 examples/topologies/leafnode-jwt/cli/output.cast delete mode 100644 examples/topologies/leafnode-jwt/cli/output.txt delete mode 100644 examples/topologies/simple-leafnode/cli/output.cast delete mode 100644 examples/topologies/simple-leafnode/cli/output.txt delete mode 100644 examples/topologies/supercluster-arbiter/cli/output.cast delete mode 100644 examples/topologies/supercluster-arbiter/cli/output.txt delete mode 100644 examples/topologies/supercluster-jetstream/cli/output.cast delete mode 100644 examples/topologies/supercluster-jetstream/cli/output.txt delete mode 100644 examples/topologies/supercluster/cli/output.cast delete mode 100644 examples/topologies/supercluster/cli/output.txt delete mode 100644 examples/use-cases/cross-region-streams-cluster/cli/output.cast delete mode 100644 examples/use-cases/cross-region-streams-cluster/cli/output.txt delete mode 100644 examples/use-cases/cross-region-streams-supercluster/cli/output.cast delete mode 100644 examples/use-cases/cross-region-streams-supercluster/cli/output.txt diff --git a/examples/auth/nkeys-jwts/go/output.cast b/examples/auth/nkeys-jwts/go/output.cast deleted file mode 100644 index d3abaef9..00000000 --- a/examples/auth/nkeys-jwts/go/output.cast +++ /dev/null @@ -1,11 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1661858141, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: auth/nkeys-jwts/go"} -[7.407263, "o", "Network e62f65ec_default Creating\r\n"] -[7.46753, "o", "Network e62f65ec_default Created\r\nContainer e62f65ec-nats-1 Creating\r\n"] -[7.574347, "o", "Container e62f65ec-nats-1 Created\r\n"] -[7.575507, "o", "Container e62f65ec-nats-1 Starting\r\n"] -[8.184688, "o", "Container e62f65ec-nats-1 Started\r\n"] -[9.192073, "o", "operator pubkey: OA3RVMES5FWOZXSB5RNK36VBC34GRZG6LZQMRUXUGMOZRDYJYFMEPUY7\r\noperator seed: SOANKZ77PHTRUWRUZFVTCKQJDRJMNPL47FO2EO2PZEIRM5Z3LNE32KMHCM\r\n\r\naccount pubkey: ABNK2MJUJCCE3PYD2FA5WOS7L7A4DCFCG54XHQS2VWNCKBZASDHQO2L5\r\naccount seed: SAADJWVFWVMEAQNV2TAJS7ETWT4JQNLINW7QKKWUINRYFRXHMGEREJJX6U\r\naccount claims: {\r\n \"name\": \"my-account\",\r\n \"sub\": \"ABNK2MJUJCCE3PYD2FA5WOS7L7A4DCFCG54XHQS2VWNCKBZASDHQO2L5\",\r\n \"nats\": {\r\n \"limits\": {\r\n \"subs\": -1,\r\n \"data\": -1,\r\n \"payload\": -1,\r\n \"imports\": -1,\r\n \"exports\": -1,\r\n \"wildcards\": true,\r\n \"conn\": -1,\r\n \"leaf\": -1,\r\n \"mem_storage\": -1,\r\n \"disk_storage\": -1\r\n },\r\n \"default_permissions\": {\r\n \"pub\": {},\r\n \"sub\": {}\r\n }\r\n }\r\n}\r\naccount jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJNNTMyWDZRTlc1MllFRkgyTjY1RFlGQk9HNFREVlVMVVRBNkk1SFZQUVg2WUlDWFhJTDZRIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJPQTNSVk1FUzVGV09aWFNCNVJOSzM2VkJDMzRHUlpHNkxaUU1SVVhVR01PWlJEWUpZRk1FUFVZNyIsIm5hbWUiOiJteS1hY2Nv"] -[9.192658, "o", "dW50Iiwic3ViIjoiQUJOSzJNSlVKQ0NFM1BZRDJGQTVXT1M3TDdBNERDRkNHNTRYSFFTMlZXTkNLQlpBU0RIUU8yTDUiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.q_C-AlvT6QrhbfdoK7TViplpRpwDNlENSremSd91Lj2mB0DMuYAyu57vK9cpAAHXL0ct41Kbro8fLk4Ny9jHCw\r\n\r\nuser pubkey: UAWWZ7VSLYRR7KZMCGLZ4TCUT2V436T657LHVY5HFLON3SX5ETXTACRO\r\nuser seed: SUAPQFMXCGGZ2B6C4FIILJNO2XX7VEYPBO46QYZNEUZUO2XI7GKSAW5FGE\r\nuserclaims: {\r\n \"name\": \"my-user\",\r\n \"sub\": \"UAWWZ7VSLYRR7KZMCGLZ4TCUT2V436T657LHVY5HFLON3SX5ETXTACRO\",\r\n \"nats\": {\r\n \"pub\": {\r\n \"allow\": [\r\n \"foo.\\u003e\",\r\n \"bar.\\u003e\"\r\n ]\r\n },\r\n \"sub\": {\r\n \"allow\": [\r\n \"_INBOX.\\u003e\"\r\n ]\r\n },\r\n \"subs\": -1,\r\n \"data\": 1073741824,\r\n \"payload\": -1\r\n }\r\n}\r\n"] -[9.192702, "o", "user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI2VDVJN1NHRkJFT1hFRlNZWTU2NVNEQ1Q3S1k1SlBaUjNZUTdQNVZTRUVCSEo0TExDUzVBIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJBQk5LMk1KVUpDQ0UzUFlEMkZBNVdPUzdMN0E0RENGQ0c1NFhIUVMyVldOQ0tCWkFTREhRTzJMNSIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUFXV1o3VlNMWVJSN0taTUNHTFo0VENVVDJWNDM2VDY1N0xIVlk1SEZMT04zU1g1RVRYVEFDUk8iLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.XQ86T92lfzthYzOxzWuVTOojcBRB6N4cA9eyzfrKBjD6yAXleNY7J6gYKRFia2J39bN3esSgF3svlXN9dU1PCg\r\n"] -[9.193511, "o", "creds file: -----BEGIN NATS USER JWT-----\r\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI2VDVJN1NHRkJFT1hFRlNZWTU2NVNEQ1Q3S1k1SlBaUjNZUTdQNVZTRUVCSEo0TExDUzVBIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJBQk5LMk1KVUpDQ0UzUFlEMkZBNVdPUzdMN0E0RENGQ0c1NFhIUVMyVldOQ0tCWkFTREhRTzJMNSIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUFXV1o3VlNMWVJSN0taTUNHTFo0VENVVDJWNDM2VDY1N0xIVlk1SEZMT04zU1g1RVRYVEFDUk8iLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.XQ86T92lfzthYzOxzWuVTOojcBRB6N4cA9eyzfrKBjD6yAXleNY7J6gYKRFia2J39bN3esSgF3svlXN9dU1PCg\r\n------END NATS USER JWT------\r\n\r\n************************* IMPORTANT *************************\r\nNKEY Seed printed below can be used to sign and prove identity.\r\nNKEYs are sensitive and should be treated as secrets.\r\n\r\n-----BEGIN USER NKEY SEED-----\r\nSUAPQFMXCGGZ2B6C4FIILJNO2XX7VEYPBO46QYZNEUZUO2XI7GKSAW5FGE\r\n------END USER NKEY SEED----"] -[9.194155, "o", "--\r\n\r\n*************************************************************\r\n\r\n"] diff --git a/examples/auth/nkeys-jwts/go/output.txt b/examples/auth/nkeys-jwts/go/output.txt deleted file mode 100644 index 62a30965..00000000 --- a/examples/auth/nkeys-jwts/go/output.txt +++ /dev/null @@ -1,72 +0,0 @@ -Network e62f65ec_default Creating -Network e62f65ec_default Created -Container e62f65ec-nats-1 Creating -Container e62f65ec-nats-1 Created -Container e62f65ec-nats-1 Starting -Container e62f65ec-nats-1 Started -operator pubkey: OA3RVMES5FWOZXSB5RNK36VBC34GRZG6LZQMRUXUGMOZRDYJYFMEPUY7 -operator seed: SOANKZ77PHTRUWRUZFVTCKQJDRJMNPL47FO2EO2PZEIRM5Z3LNE32KMHCM - -account pubkey: ABNK2MJUJCCE3PYD2FA5WOS7L7A4DCFCG54XHQS2VWNCKBZASDHQO2L5 -account seed: SAADJWVFWVMEAQNV2TAJS7ETWT4JQNLINW7QKKWUINRYFRXHMGEREJJX6U -account claims: { - "name": "my-account", - "sub": "ABNK2MJUJCCE3PYD2FA5WOS7L7A4DCFCG54XHQS2VWNCKBZASDHQO2L5", - "nats": { - "limits": { - "subs": -1, - "data": -1, - "payload": -1, - "imports": -1, - "exports": -1, - "wildcards": true, - "conn": -1, - "leaf": -1, - "mem_storage": -1, - "disk_storage": -1 - }, - "default_permissions": { - "pub": {}, - "sub": {} - } - } -} -account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJNNTMyWDZRTlc1MllFRkgyTjY1RFlGQk9HNFREVlVMVVRBNkk1SFZQUVg2WUlDWFhJTDZRIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJPQTNSVk1FUzVGV09aWFNCNVJOSzM2VkJDMzRHUlpHNkxaUU1SVVhVR01PWlJEWUpZRk1FUFVZNyIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUJOSzJNSlVKQ0NFM1BZRDJGQTVXT1M3TDdBNERDRkNHNTRYSFFTMlZXTkNLQlpBU0RIUU8yTDUiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.q_C-AlvT6QrhbfdoK7TViplpRpwDNlENSremSd91Lj2mB0DMuYAyu57vK9cpAAHXL0ct41Kbro8fLk4Ny9jHCw - -user pubkey: UAWWZ7VSLYRR7KZMCGLZ4TCUT2V436T657LHVY5HFLON3SX5ETXTACRO -user seed: SUAPQFMXCGGZ2B6C4FIILJNO2XX7VEYPBO46QYZNEUZUO2XI7GKSAW5FGE -userclaims: { - "name": "my-user", - "sub": "UAWWZ7VSLYRR7KZMCGLZ4TCUT2V436T657LHVY5HFLON3SX5ETXTACRO", - "nats": { - "pub": { - "allow": [ - "foo.\u003e", - "bar.\u003e" - ] - }, - "sub": { - "allow": [ - "_INBOX.\u003e" - ] - }, - "subs": -1, - "data": 1073741824, - "payload": -1 - } -} -user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI2VDVJN1NHRkJFT1hFRlNZWTU2NVNEQ1Q3S1k1SlBaUjNZUTdQNVZTRUVCSEo0TExDUzVBIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJBQk5LMk1KVUpDQ0UzUFlEMkZBNVdPUzdMN0E0RENGQ0c1NFhIUVMyVldOQ0tCWkFTREhRTzJMNSIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUFXV1o3VlNMWVJSN0taTUNHTFo0VENVVDJWNDM2VDY1N0xIVlk1SEZMT04zU1g1RVRYVEFDUk8iLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.XQ86T92lfzthYzOxzWuVTOojcBRB6N4cA9eyzfrKBjD6yAXleNY7J6gYKRFia2J39bN3esSgF3svlXN9dU1PCg -creds file: -----BEGIN NATS USER JWT----- -eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI2VDVJN1NHRkJFT1hFRlNZWTU2NVNEQ1Q3S1k1SlBaUjNZUTdQNVZTRUVCSEo0TExDUzVBIiwiaWF0IjoxNjYxODU4MTUwLCJpc3MiOiJBQk5LMk1KVUpDQ0UzUFlEMkZBNVdPUzdMN0E0RENGQ0c1NFhIUVMyVldOQ0tCWkFTREhRTzJMNSIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUFXV1o3VlNMWVJSN0taTUNHTFo0VENVVDJWNDM2VDY1N0xIVlk1SEZMT04zU1g1RVRYVEFDUk8iLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.XQ86T92lfzthYzOxzWuVTOojcBRB6N4cA9eyzfrKBjD6yAXleNY7J6gYKRFia2J39bN3esSgF3svlXN9dU1PCg -------END NATS USER JWT------ - -************************* IMPORTANT ************************* -NKEY Seed printed below can be used to sign and prove identity. -NKEYs are sensitive and should be treated as secrets. - ------BEGIN USER NKEY SEED----- -SUAPQFMXCGGZ2B6C4FIILJNO2XX7VEYPBO46QYZNEUZUO2XI7GKSAW5FGE -------END USER NKEY SEED------ - -************************************************************* - diff --git a/examples/auth/private-inbox-jwt/cli/output.cast b/examples/auth/private-inbox-jwt/cli/output.cast deleted file mode 100644 index 6333376b..00000000 --- a/examples/auth/private-inbox-jwt/cli/output.cast +++ /dev/null @@ -1,52 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659460868, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: auth/private-inbox-jwt/cli"} -[0.534395, "o", "Network b7bfbec0_default Creating\r\n"] -[0.582083, "o", "Network b7bfbec0_default Created\r\n"] -[0.978432, "o", " _ _ \r\n _ __ __ _| |_ ___ | |__ _____ __\r\n| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /\r\n| | | | (_| | |_\\__ \\_____| |_) | (_) > < \r\n|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\\r\n \r\n"] -[0.982063, "o", "nats-box v0.12.0\r\n"] -[0.989531, "o", "[ OK ] generated and stored operator key \"ODFMSKLO5IXEZEYGRURAIXESSKTOITJY6J5ENUZM2DOPODARGAMRCBYE\"\r\n[ OK ] added operator \"local\"\r\n[ OK ] When running your own nats-server, make sure they run at least version 2.2.0\r\n[ OK ] created operator signing key: OBVV4SZH4LGW2DTKN75CFDKPI3EAPG2JY55R3YOOKYPVOPTW6QLLKRSV\r\n[ OK ] created system_account: name:SYS id:ABBGTNCV4YW7PFBT6J5DCT4E7MFJPINFPAKZKYX3YEDOBD2B2CKJNYJI\r\n[ OK ] created system account user: name:sys id:UAX4G37MYJSFKJZAYW4DCBPZNWYUQSFHEJTJVDICYXTSFWFU4OSM76RD\r\n[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds`\r\n"] -[0.998342, "o", "[ OK ] strict signing key usage set to: true\r\n[ OK ] set account jwt server url to \"nats://localhost:4222\"\r\n[ OK ] edited operator \"local\"\r\n"] -[1.006799, "o", "[ OK ] generated and stored account key \"AB5MLX47CDR6HLNI7CGRRAOPHZXHA5WLLZBCM3Y5M5ITSBZWT66HBDUZ\"\r\n[ OK ] added account \"APP\"\r\n"] -[1.015887, "o", "[ OK ] added signing key \"AAT6RZPFDH5Y4HRDO554REFLEZXC7OC6YLI6ED3SCYNFZ4NDMYY7WB65\"\r\n[ OK ] edited account \"APP\"\r\n"] -[3.035293, "o", "[ OK ] push to nats-server \"nats://localhost:4222\" using system account \"SYS\":\r\n [ OK ] push APP to nats-server with nats account resolver:\r\n [ OK ] pushed \"APP\" to nats-server NCXGMGNQBBKCTS3LO2SLVRCZP7CJGO6GWSR6KADR4Y3D6LG7TQS2S6AB: jwt updated\r\n [ OK ] pushed to a total of 1 nats-server\r\n"] -[3.045105, "o", "[ OK ] set max responses to 1"] -[3.045266, "o", "\r\n[ OK ] added sub \"services.greet\"\r\n[ OK ] generated and stored user key \"UBAK6JLWQMHXEJ4WCFGVRKZYCBHLCNI6JGFHFMUODPNL27ZHOYOCHOO3\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/greeter.creds`\r\n[ OK ] added user \"greeter\" to account \"APP\"\r\n"] -[3.054862, "o", "[ OK ] added pub pub \"joe.>\"\r\n[ OK ] added pub pub \"services.*\"\r\n[ OK ] generated and stored user key \"UARFKBJRTAZM4OW3WZIPOXAV5BCS3JH6BCCUARVFHJDFJ7IY2HXJUXLJ\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] added user \"joe\" to account \"APP\"\r\n"] -[3.064655, "o", "[ OK ] added pub pub \"pam.>\"\r\n[ OK ] added pub pub \"services.*\"\r\n[ OK ] generated and stored user key \"UBYSMJ3Y366XN5H6JP5IHNQ3M76CTXK2BRXSTK2C75HY7LFRUASGT3OV\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] added user \"pam\" to account \"APP\"\r\n"] -[3.073656, "o", "[ OK ] added sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] edited user \"joe\"\r\n"] -[3.081963, "o", "[ OK ] added sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] edited user \"pam\"\r\n"] -[3.130207, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/greeter.creds (OK)\r\n NSC Lookup: nsc://local/APP/greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\n"] -[3.181706, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/joe.creds (OK)\r\n NSC Lookup: nsc://local/APP/joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\n"] -[3.236577, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/pam.creds (OK)\r\n NSC Lookup: nsc://local/APP/pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\n"] -[3.290534, "o", "17:21:11 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] -[3.790941, "o", "17:21:11 Sending request on \"services.greet\"\r\n"] -[3.791691, "o", "\r\n\r\n17:21:11 [#0] Received on subject \"services.greet\":\r\n"] -[3.792571, "o", "17:21:11 Received with rtt 1.421611ms\r\nReply EiaIxD2O9zht77dHYbTZfN\r\n\r\n"] -[3.834159, "o", "17:21:11 Sending request on \"services.greet\"\r\n"] -[3.834882, "o", "17:21:11 [#1] Received on subject \"services.greet\":\r\n"] -[3.835287, "o", "\r\n\r\n"] -[3.835725, "o", "17:21:11 Received with rtt 1.089909ms\r\n"] -[3.836015, "o", "Reply EiaIxD2O9zht77dHYbTZk4\r\n\r\n"] -[3.88255, "o", "17:21:12 Subscribing on _INBOX.>\r\n"] -[3.892191, "o", "17:21:12 Sending request on \"services.greet\"\r\n"] -[3.893543, "o", "17:21:12 [#2] Received on subject \"services.greet\":"] -[3.893662, "o", "\r\n\r\n\r\n"] -[3.894649, "o", "Reply EiaIxD2O9zht77dHYbTZol\r\n\r\n17:21:12 Received with rtt 681.706µs\r\n"] -[3.895325, "o", "[#1] Received on \"_INBOX.ZYAAExoXcyDKsFDdxuFgQb.PIt1MPL3\"\r\nReply EiaIxD2O9zht77dHYbTZol\r\n\r\n"] -[3.944688, "o", "17:21:12 Sending request on \"services.greet\"\r\n"] -[3.945738, "o", "17:21:12 [#3] Received on subject \"services.greet\":\r\n17:21:12 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to \"_INBOX_joe.fNg5JF7k4bT2VSUa4Ep6wD.7tIj5Fxs\"\r\n\r\n"] -[3.946382, "o", "\r\n"] -[8.95523, "o", "[ OK ] added sub \"_INBOX_joe.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] edited user \"joe\"\r\n"] -[8.964557, "o", "[ OK ] added sub \"_INBOX_pam.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] edited user \"pam\"\r\n"] -[9.016086, "o", "17:21:17 Subscribing on _INBOX.>\r\n"] -[9.017507, "o", "17:21:17 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to \"_INBOX.>\"\r\n"] -[9.018267, "o", "nats: error: nats: Permissions Violation for Subscription to \"_INBOX.>\", try --help\r\n"] -[9.069782, "o", "17:21:17 Subscribing on _INBOX_joe.>\r\n"] -[9.070286, "o", "nats: error: nats: Permissions Violation for Subscription to \"_INBOX_joe.>\", try --help\r\n"] -[9.121882, "o", "17:21:17 Sending request on \"services.greet\"\r\n"] -[9.122746, "o", "\r\n\r\n17:21:17 [#4] Received on subject \"services.greet\":\r\n"] -[9.123573, "o", "17:21:17 Received with rtt 1.093234ms\r\nReply EiaIxD2O9zht77dHYbTZy9\r\n\r\n"] -[9.173329, "o", "17:21:17 Sending request on \"services.greet\"\r\n"] -[9.17416, "o", "17:21:17 [#5] Received on subject \"services.greet\":\r\n"] -[9.174298, "o", "\r\n"] -[9.17484, "o", "\r\n"] -[9.176812, "o", "17:21:17 Received with rtt 2.893689ms\r\nReply EiaIxD2O9zht77dHYbTa2q\r\n\r\n"] diff --git a/examples/auth/private-inbox-jwt/cli/output.txt b/examples/auth/private-inbox-jwt/cli/output.txt deleted file mode 100644 index 26db05ff..00000000 --- a/examples/auth/private-inbox-jwt/cli/output.txt +++ /dev/null @@ -1,125 +0,0 @@ -Network b7bfbec0_default Creating -Network b7bfbec0_default Created - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -[ OK ] generated and stored operator key "ODFMSKLO5IXEZEYGRURAIXESSKTOITJY6J5ENUZM2DOPODARGAMRCBYE" -[ OK ] added operator "local" -[ OK ] When running your own nats-server, make sure they run at least version 2.2.0 -[ OK ] created operator signing key: OBVV4SZH4LGW2DTKN75CFDKPI3EAPG2JY55R3YOOKYPVOPTW6QLLKRSV -[ OK ] created system_account: name:SYS id:ABBGTNCV4YW7PFBT6J5DCT4E7MFJPINFPAKZKYX3YEDOBD2B2CKJNYJI -[ OK ] created system account user: name:sys id:UAX4G37MYJSFKJZAYW4DCBPZNWYUQSFHEJTJVDICYXTSFWFU4OSM76RD -[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds` -[ OK ] strict signing key usage set to: true -[ OK ] set account jwt server url to "nats://localhost:4222" -[ OK ] edited operator "local" -[ OK ] generated and stored account key "AB5MLX47CDR6HLNI7CGRRAOPHZXHA5WLLZBCM3Y5M5ITSBZWT66HBDUZ" -[ OK ] added account "APP" -[ OK ] added signing key "AAT6RZPFDH5Y4HRDO554REFLEZXC7OC6YLI6ED3SCYNFZ4NDMYY7WB65" -[ OK ] edited account "APP" -[ OK ] push to nats-server "nats://localhost:4222" using system account "SYS": - [ OK ] push APP to nats-server with nats account resolver: - [ OK ] pushed "APP" to nats-server NCXGMGNQBBKCTS3LO2SLVRCZP7CJGO6GWSR6KADR4Y3D6LG7TQS2S6AB: jwt updated - [ OK ] pushed to a total of 1 nats-server -[ OK ] set max responses to 1 -[ OK ] added sub "services.greet" -[ OK ] generated and stored user key "UBAK6JLWQMHXEJ4WCFGVRKZYCBHLCNI6JGFHFMUODPNL27ZHOYOCHOO3" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/greeter.creds` -[ OK ] added user "greeter" to account "APP" -[ OK ] added pub pub "joe.>" -[ OK ] added pub pub "services.*" -[ OK ] generated and stored user key "UARFKBJRTAZM4OW3WZIPOXAV5BCS3JH6BCCUARVFHJDFJ7IY2HXJUXLJ" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` -[ OK ] added user "joe" to account "APP" -[ OK ] added pub pub "pam.>" -[ OK ] added pub pub "services.*" -[ OK ] generated and stored user key "UBYSMJ3Y366XN5H6JP5IHNQ3M76CTXK2BRXSTK2C75HY7LFRUASGT3OV" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` -[ OK ] added user "pam" to account "APP" -[ OK ] added sub "_INBOX.>" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` -[ OK ] edited user "joe" -[ OK ] added sub "_INBOX.>" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` -[ OK ] edited user "pam" -NATS Configuration Context "greeter" - - Server URLs: nats://127.0.0.1:4222 - Credentials: /nsc/nkeys/creds/local/APP/greeter.creds (OK) - NSC Lookup: nsc://local/APP/greeter - Path: /nsc/.config/nats/context/greeter.json - -NATS Configuration Context "joe" - - Server URLs: nats://127.0.0.1:4222 - Credentials: /nsc/nkeys/creds/local/APP/joe.creds (OK) - NSC Lookup: nsc://local/APP/joe - Path: /nsc/.config/nats/context/joe.json - -NATS Configuration Context "pam" - - Server URLs: nats://127.0.0.1:4222 - Credentials: /nsc/nkeys/creds/local/APP/pam.creds (OK) - NSC Lookup: nsc://local/APP/pam - Path: /nsc/.config/nats/context/pam.json - -17:21:11 Listening on "services.greet" in group "NATS-RPLY-22" -17:21:11 Sending request on "services.greet" - - -17:21:11 [#0] Received on subject "services.greet": -17:21:11 Received with rtt 1.421611ms -Reply EiaIxD2O9zht77dHYbTZfN - -17:21:11 Sending request on "services.greet" -17:21:11 [#1] Received on subject "services.greet": - - -17:21:11 Received with rtt 1.089909ms -Reply EiaIxD2O9zht77dHYbTZk4 - -17:21:12 Subscribing on _INBOX.> -17:21:12 Sending request on "services.greet" -17:21:12 [#2] Received on subject "services.greet": - - -Reply EiaIxD2O9zht77dHYbTZol - -17:21:12 Received with rtt 681.706µs -[#1] Received on "_INBOX.ZYAAExoXcyDKsFDdxuFgQb.PIt1MPL3" -Reply EiaIxD2O9zht77dHYbTZol - -17:21:12 Sending request on "services.greet" -17:21:12 [#3] Received on subject "services.greet": -17:21:12 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to "_INBOX_joe.fNg5JF7k4bT2VSUa4Ep6wD.7tIj5Fxs" - - -[ OK ] added sub "_INBOX_joe.>" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` -[ OK ] edited user "joe" -[ OK ] added sub "_INBOX_pam.>" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` -[ OK ] edited user "pam" -17:21:17 Subscribing on _INBOX.> -17:21:17 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to "_INBOX.>" -nats: error: nats: Permissions Violation for Subscription to "_INBOX.>", try --help -17:21:17 Subscribing on _INBOX_joe.> -nats: error: nats: Permissions Violation for Subscription to "_INBOX_joe.>", try --help -17:21:17 Sending request on "services.greet" - - -17:21:17 [#4] Received on subject "services.greet": -17:21:17 Received with rtt 1.093234ms -Reply EiaIxD2O9zht77dHYbTZy9 - -17:21:17 Sending request on "services.greet" -17:21:17 [#5] Received on subject "services.greet": - - -17:21:17 Received with rtt 2.893689ms -Reply EiaIxD2O9zht77dHYbTa2q - diff --git a/examples/auth/private-inbox/cli/output.cast b/examples/auth/private-inbox/cli/output.cast deleted file mode 100644 index e82a0d96..00000000 --- a/examples/auth/private-inbox/cli/output.cast +++ /dev/null @@ -1,45 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659470097, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: auth/private-inbox/cli"} -[0.99066, "o", "Network 1786fb97_default Creating\r\n"] -[1.047357, "o", "Network 1786fb97_default Created\r\n"] -[1.488538, "o", " _ _ "] -[1.493413, "o", "\r\n"] -[1.493879, "o", " _ __ __ _| |_ ___ | |__ _____ __\r\n| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /\r\n| | | | (_| | |_\\__ \\_____| |_) | (_) > < \r\n|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\\r\n \r\nnats-box v0.12.0\r\n"] -[1.539079, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Username: greeter\r\n Password: *********\r\n Token: greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\n"] -[1.586467, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Username: joe\r\n Password: *********\r\n Token: joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\n"] -[1.635534, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Username: pam\r\n Password: *********\r\n Token: pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\n"] -[1.67851, "o", "19:54:58 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] -[2.192956, "o", "19:54:59 Sending request on \"services.greet\"\r\n"] -[2.195411, "o", "\r\n\r\n19:54:59 [#0] Received on subject \"services.greet\":\r\n"] -[2.196004, "o", "19:54:59 Received with rtt 1.938223ms\r\nReply kVcebqrJGNaiEdYnRkxtZ6\r\n"] -[2.197388, "o", "\r\n"] -[2.250479, "o", "19:54:59 Sending request on \"services.greet\"\r\n"] -[2.251939, "o", "\r\n\r\n19:54:59 [#1] Received on subject \"services.greet\":\r\n"] -[2.252952, "o", "Reply kVcebqrJGNaiEdYnRkxtbq\r\n\r\n19:54:59 Received with rtt 1.774421ms\r\n"] -[2.301383, "o", "19:54:59 Sending request on \"services.greet\"\r\n"] -[2.302536, "o", "19:54:59 Subscribing on _INBOX.>\r\n"] -[2.303438, "o", "19:54:59 [#2] Received on subject \"services.greet\":\r\n"] -[2.303797, "o", "\r\n"] -[2.304381, "o", "\r\n"] -[2.30493, "o", "[#1] Received on \"_INBOX.ibELuIAOztYm2U6Ft9a6U7.x32D5Jhc\"\r\n"] -[2.305265, "o", "Reply kVcebqrJGNaiEdYnRkxtea\r\n\r\n"] -[2.30625, "o", "19:54:59 Received with rtt 2.942535ms\r\nReply kVcebqrJGNaiEdYnRkxtea\r\n\r\n"] -[2.359424, "o", "19:54:59 Sending request on \"services.greet\"\r\n"] -[2.360257, "o", "19:54:59 [#3] Received on subject \"services.greet\":\r\n"] -[2.36056, "o", "\r\n"] -[2.360771, "o", "\r\n"] -[2.362019, "o", "19:54:59 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to \"_INBOX_joe.gdH4A4t4fVkE968KULTJHP.3DNwALma\"\r\n"] -[7.362664, "o", "Reloading the server with new config..."] -[7.363393, "o", "\r\n"] -[7.366495, "o", "19:55:04 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to \"_INBOX.>\" (sid \"1\")\r\n"] -[7.417098, "o", "19:55:04 Subscribing on _INBOX.>\r\n"] -[7.417567, "o", "nats: error: nats: Permissions Violation for Subscription to \"_INBOX.>\", try --help\r\n"] -[7.46914, "o", "19:55:04 Subscribing on _INBOX_joe.>\r\n"] -[7.469349, "o", "nats: error: nats: Permissions Violation for Subscription to \"_INBOX_joe.>\", try --help\r\n"] -[7.519522, "o", "19:55:04 Sending request on \"services.greet\"\r\n"] -[7.520175, "o", "19:55:04 [#4] Received on subject \"services.greet\":\r\n"] -[7.520663, "o", "\r\n"] -[7.521083, "o", "\r\n"] -[7.522488, "o", "19:55:04 Received with rtt 2.400329ms\r\nReply kVcebqrJGNaiEdYnRkxtk4\r\n\r\n"] -[7.575421, "o", "19:55:04 Sending request on \"services.greet\"\r\n"] -[7.577388, "o", "19:55:04 [#5] Received on subject \"services.greet\":\r\n\r\n\r\n"] -[7.578076, "o", "19:55:04 Received with rtt 1.708521ms\r\nReply kVcebqrJGNaiEdYnRkxtmo\r\n\r\n"] diff --git a/examples/auth/private-inbox/cli/output.txt b/examples/auth/private-inbox/cli/output.txt deleted file mode 100644 index 9fc03277..00000000 --- a/examples/auth/private-inbox/cli/output.txt +++ /dev/null @@ -1,84 +0,0 @@ -Network 1786fb97_default Creating -Network 1786fb97_default Created - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -NATS Configuration Context "greeter" - - Server URLs: nats://127.0.0.1:4222 - Username: greeter - Password: ********* - Token: greeter - Path: /nsc/.config/nats/context/greeter.json - -NATS Configuration Context "joe" - - Server URLs: nats://127.0.0.1:4222 - Username: joe - Password: ********* - Token: joe - Path: /nsc/.config/nats/context/joe.json - -NATS Configuration Context "pam" - - Server URLs: nats://127.0.0.1:4222 - Username: pam - Password: ********* - Token: pam - Path: /nsc/.config/nats/context/pam.json - -19:54:58 Listening on "services.greet" in group "NATS-RPLY-22" -19:54:59 Sending request on "services.greet" - - -19:54:59 [#0] Received on subject "services.greet": -19:54:59 Received with rtt 1.938223ms -Reply kVcebqrJGNaiEdYnRkxtZ6 - -19:54:59 Sending request on "services.greet" - - -19:54:59 [#1] Received on subject "services.greet": -Reply kVcebqrJGNaiEdYnRkxtbq - -19:54:59 Received with rtt 1.774421ms -19:54:59 Sending request on "services.greet" -19:54:59 Subscribing on _INBOX.> -19:54:59 [#2] Received on subject "services.greet": - - -[#1] Received on "_INBOX.ibELuIAOztYm2U6Ft9a6U7.x32D5Jhc" -Reply kVcebqrJGNaiEdYnRkxtea - -19:54:59 Received with rtt 2.942535ms -Reply kVcebqrJGNaiEdYnRkxtea - -19:54:59 Sending request on "services.greet" -19:54:59 [#3] Received on subject "services.greet": - - -19:54:59 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to "_INBOX_joe.gdH4A4t4fVkE968KULTJHP.3DNwALma" -Reloading the server with new config... -19:55:04 Unexpected NATS error from server nats://127.0.0.1:4222: nats: Permissions Violation for Subscription to "_INBOX.>" (sid "1") -19:55:04 Subscribing on _INBOX.> -nats: error: nats: Permissions Violation for Subscription to "_INBOX.>", try --help -19:55:04 Subscribing on _INBOX_joe.> -nats: error: nats: Permissions Violation for Subscription to "_INBOX_joe.>", try --help -19:55:04 Sending request on "services.greet" -19:55:04 [#4] Received on subject "services.greet": - - -19:55:04 Received with rtt 2.400329ms -Reply kVcebqrJGNaiEdYnRkxtk4 - -19:55:04 Sending request on "services.greet" -19:55:04 [#5] Received on subject "services.greet": - - -19:55:04 Received with rtt 1.708521ms -Reply kVcebqrJGNaiEdYnRkxtmo - diff --git a/examples/auth/sys-account/cli/output.cast b/examples/auth/sys-account/cli/output.cast deleted file mode 100644 index 01011fae..00000000 --- a/examples/auth/sys-account/cli/output.cast +++ /dev/null @@ -1,48 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659380123, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: auth/sys-account/cli"} -[2.145546, "o", "Network 0e66dc3e_default Creating\r\n"] -[2.203679, "o", "Network 0e66dc3e_default Created\r\n"] -[2.724317, "o", " _ _ "] -[2.72505, "o", "\r\n"] -[2.725586, "o", " _ __ __ _| |_ ___ | |__ _____ __"] -[2.72585, "o", "\r\n"] -[2.726357, "o", "| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /"] -[2.726546, "o", "\r\n"] -[2.727072, "o", "| | | | (_| | |_\\__ \\_____| |_) | (_) > < "] -[2.7273, "o", "\r\n"] -[2.728021, "o", "|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\"] -[2.728237, "o", "\r\n"] -[2.728702, "o", " "] -[2.72893, "o", "\r\n"] -[2.729706, "o", "nats-box v0.12.0"] -[2.729954, "o", "\r\n"] -[2.731984, "o", "+ touch server.conf"] -[2.732242, "o", "\r\n+ SERVER_PID=13\r\n+ sleep 0.5\r\n+ nats-server -c server.conf -l log.txt\r\n"] -[3.230268, "o", "+ nats server info"] -[3.230614, "o", "\r\n"] -[3.287308, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions, try --help\r\n"] -[3.288795, "o", "+ cat\r\n"] -[3.290078, "o", "+ nats-server --signal 'reload=13'\r\n"] -[3.294816, "o", "+ nats context save sys --user sys --password pass\r\n"] -[3.35051, "o", "NATS Configuration Context \"sys\"\r\n\r\n Server URLs: nats://127.0.0.1:4222\r\n Username: sys\r\n Password: *********\r\n Token: sys\r\n Path: /nsc/.config/nats/context/sys.json\r\n\r\n"] -[3.352307, "o", "+ nats"] -[3.352551, "o", " --context"] -[3.352844, "o", " sys"] -[3.353133, "o", " server"] -[3.35343, "o", " info"] -[3.354026, "o", "\r\n"] -[3.396984, "o", "Server information for NB2MEK5VEFZGMLMCV35G557VTY3NJVOUIAJC2H42I5PXRLYWDZ4CYRKY\r\n\r\nProcess Details:\r\n\r\n Version: 2.8.4\r\n Git Commit: 66524ed\r\n Go Version: go1.17.10\r\n Start Time: 2022-08-01 18:55:25.918663239 +0000 UTC\r\n Uptime: 0s\r\n\r\nConnection Details:\r\n\r\n Auth Required: true\r\n"] -[3.399014, "o", " TLS Required: false\r\n Host: 0.0.0.0:4222\r\n Client URLs: \r\n\r\nLimits:\r\n\r\n Max Conn: 65536\r\n Max Subs: 0\r\n Max Payload: 1.0 MiB\r\n"] -[3.399258, "o", " TLS Timeout: 2s\r\n Write Deadline: 10s\r\n\r\nStatistics:\r\n\r\n CPU Cores: 2 0.00%\r\n Memory: 11 MiB\r\n Connections: 1\r\n Subscriptions: 37\r\n Msgs: 1 in 0 out\r\n Bytes: 2 B in 0 B out\r\n Slow Consumers: 0\r\n\r\n"] -[3.400832, "o", "+ cat\r\n"] -[3.401723, "o", "+ nats-server --signal 'reload=13'\r\n"] -[3.40555, "o", "+ nats --context sys server info\r\n"] -[3.452446, "o", "Server information for NB2MEK5VEFZGMLMCV35G557VTY3NJVOUIAJC2H42I5PXRLYWDZ4CYRKY\r\n\r\nProcess Details:\r\n\r\n"] -[3.453313, "o", " Version: 2.8.4\r\n"] -[3.453671, "o", " Git Commit: 66524ed\r\n Go Version: go1.17.10\r\n Start Time: 2022-08-01 18:55:25.918663239 +0000 UTC\r\n"] -[3.454841, "o", " Uptime: 0s\r\n\r\nConnection Details:\r\n\r\n"] -[3.455178, "o", " Auth Required: true\r\n TLS Required: false\r\n Host: 0.0.0.0:4222\r\n Client URLs: \r\n\r\nLimits:\r\n\r\n Max Conn: 65536\r\n Max Subs: 0\r\n Max Payload: 1.0 MiB\r\n TLS Timeout: 2s\r\n Write Deadline: 10s\r\n\r\nStatistics:\r\n\r\n CPU Cores: 2 0.00%\r\n"] -[3.458417, "o", " Memory: 11 MiB"] -[3.458566, "o", "\r\n"] -[3.458673, "o", " Connections: 1\r\n"] -[3.458728, "o", " Subscriptions: 37\r\n Msgs: 2 in 1 out\r\n Bytes: 4 B in 1.2 KiB out\r\n Slow Consumers: 0\r\n\r\n"] -[3.462257, "o", "+ kill 13\r\n"] diff --git a/examples/auth/sys-account/cli/output.txt b/examples/auth/sys-account/cli/output.txt deleted file mode 100644 index 4e0e8c65..00000000 --- a/examples/auth/sys-account/cli/output.txt +++ /dev/null @@ -1,101 +0,0 @@ -Network 0e66dc3e_default Creating -Network 0e66dc3e_default Created - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -+ touch server.conf -+ SERVER_PID=13 -+ sleep 0.5 -+ nats-server -c server.conf -l log.txt -+ nats server info -nats: error: no results received, ensure the account used has system privileges and appropriate permissions, try --help -+ cat -+ nats-server --signal 'reload=13' -+ nats context save sys --user sys --password pass -NATS Configuration Context "sys" - - Server URLs: nats://127.0.0.1:4222 - Username: sys - Password: ********* - Token: sys - Path: /nsc/.config/nats/context/sys.json - -+ nats --context sys server info -Server information for NB2MEK5VEFZGMLMCV35G557VTY3NJVOUIAJC2H42I5PXRLYWDZ4CYRKY - -Process Details: - - Version: 2.8.4 - Git Commit: 66524ed - Go Version: go1.17.10 - Start Time: 2022-08-01 18:55:25.918663239 +0000 UTC - Uptime: 0s - -Connection Details: - - Auth Required: true - TLS Required: false - Host: 0.0.0.0:4222 - Client URLs: - -Limits: - - Max Conn: 65536 - Max Subs: 0 - Max Payload: 1.0 MiB - TLS Timeout: 2s - Write Deadline: 10s - -Statistics: - - CPU Cores: 2 0.00% - Memory: 11 MiB - Connections: 1 - Subscriptions: 37 - Msgs: 1 in 0 out - Bytes: 2 B in 0 B out - Slow Consumers: 0 - -+ cat -+ nats-server --signal 'reload=13' -+ nats --context sys server info -Server information for NB2MEK5VEFZGMLMCV35G557VTY3NJVOUIAJC2H42I5PXRLYWDZ4CYRKY - -Process Details: - - Version: 2.8.4 - Git Commit: 66524ed - Go Version: go1.17.10 - Start Time: 2022-08-01 18:55:25.918663239 +0000 UTC - Uptime: 0s - -Connection Details: - - Auth Required: true - TLS Required: false - Host: 0.0.0.0:4222 - Client URLs: - -Limits: - - Max Conn: 65536 - Max Subs: 0 - Max Payload: 1.0 MiB - TLS Timeout: 2s - Write Deadline: 10s - -Statistics: - - CPU Cores: 2 0.00% - Memory: 11 MiB - Connections: 1 - Subscriptions: 37 - Msgs: 2 in 1 out - Bytes: 4 B in 1.2 KiB out - Slow Consumers: 0 - -+ kill 13 diff --git a/examples/jetstream/interest-stream/go/output.cast b/examples/jetstream/interest-stream/go/output.cast deleted file mode 100644 index dbc89101..00000000 --- a/examples/jetstream/interest-stream/go/output.cast +++ /dev/null @@ -1,16 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1662137108, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/interest-stream/go"} -[3.067677, "o", "Network 41fa9692_default Creating\r\n"] -[3.112849, "o", "Network 41fa9692_default Created\r\n"] -[3.112929, "o", "Container 41fa9692-nats-1 Creating\r\n"] -[3.147814, "o", "Container 41fa9692-nats-1 Created\r\n"] -[3.148978, "o", "Container 41fa9692-nats-1 Starting\r\n"] -[3.503979, "o", "Container 41fa9692-nats-1 Started\r\n"] -[3.839256, "o", "created the stream\r\n"] -[3.840335, "o", "published 3 messages\r\nlast message seq: 3\r\n# Stream info without any consumers\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-09-02T16:45:11.994503237Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-09-02T16:45:11.994503237Z\",\r\n \"consumer_count\": 0\r\n}\r\n"] -[3.842491, "o", "\r\n# Stream info with one consumer\r\n{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-09-02T16:45:11.996210249Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-09-02T16:45:11.99637755Z\",\r\n \"consumer_count\": 1\r\n}\r\n"] -[3.844448, "o", "\r\n# Stream info with one consumer and acked messages\r\n"] -[3.844776, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-09-02T16:45:11.99637755Z\",\r\n \"consumer_count\": 1\r\n}\r\n"] -[3.846816, "o", "msg seqs 6 and 7\r\n# Stream info with two consumers, but only one set of acked messages\r\n"] -[3.847615, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"2022-09-02T16:45:12.000898683Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-09-02T16:45:12.001069284Z\",\r\n \"consumer_count\": 2\r\n}\r\n\r\n# Stream info with two consumers having both acked\r\n"] -[3.848907, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 8,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-09-02T16:45:12.001069284Z\",\r\n \"consumer_count\": 2\r\n}\r\n"] -[3.85243, "o", "\r\n# Stream info with three consumers with interest from two\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 9,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 8,\r\n \"last_ts\": \"2022-09-02T16:45:12.004017306Z\",\r\n \"consumer_count\": 3\r\n}\r\n"] diff --git a/examples/jetstream/interest-stream/go/output.txt b/examples/jetstream/interest-stream/go/output.txt deleted file mode 100644 index e36b3120..00000000 --- a/examples/jetstream/interest-stream/go/output.txt +++ /dev/null @@ -1,74 +0,0 @@ -Network 41fa9692_default Creating -Network 41fa9692_default Created -Container 41fa9692-nats-1 Creating -Container 41fa9692-nats-1 Created -Container 41fa9692-nats-1 Starting -Container 41fa9692-nats-1 Started -created the stream -published 3 messages -last message seq: 3 -# Stream info without any consumers -{ - "messages": 0, - "bytes": 0, - "first_seq": 4, - "first_ts": "2022-09-02T16:45:11.994503237Z", - "last_seq": 3, - "last_ts": "2022-09-02T16:45:11.994503237Z", - "consumer_count": 0 -} - -# Stream info with one consumer -{ - "messages": 2, - "bytes": 100, - "first_seq": 4, - "first_ts": "2022-09-02T16:45:11.996210249Z", - "last_seq": 5, - "last_ts": "2022-09-02T16:45:11.99637755Z", - "consumer_count": 1 -} - -# Stream info with one consumer and acked messages -{ - "messages": 0, - "bytes": 0, - "first_seq": 6, - "first_ts": "1970-01-01T00:00:00Z", - "last_seq": 5, - "last_ts": "2022-09-02T16:45:11.99637755Z", - "consumer_count": 1 -} -msg seqs 6 and 7 -# Stream info with two consumers, but only one set of acked messages -{ - "messages": 2, - "bytes": 100, - "first_seq": 6, - "first_ts": "2022-09-02T16:45:12.000898683Z", - "last_seq": 7, - "last_ts": "2022-09-02T16:45:12.001069284Z", - "consumer_count": 2 -} - -# Stream info with two consumers having both acked -{ - "messages": 0, - "bytes": 0, - "first_seq": 8, - "first_ts": "1970-01-01T00:00:00Z", - "last_seq": 7, - "last_ts": "2022-09-02T16:45:12.001069284Z", - "consumer_count": 2 -} - -# Stream info with three consumers with interest from two -{ - "messages": 0, - "bytes": 0, - "first_seq": 9, - "first_ts": "1970-01-01T00:00:00Z", - "last_seq": 8, - "last_ts": "2022-09-02T16:45:12.004017306Z", - "consumer_count": 3 -} diff --git a/examples/jetstream/limits-stream/deno/output.cast b/examples/jetstream/limits-stream/deno/output.cast deleted file mode 100644 index 122fc4ce..00000000 --- a/examples/jetstream/limits-stream/deno/output.cast +++ /dev/null @@ -1,21 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1658858930, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/limits-stream/deno"} -[2.341954, "o", "Network ca247c9f_default Creating\r\n"] -[2.416971, "o", "Network ca247c9f_default Created\r\n"] -[2.417123, "o", "Container ca247c9f-nats-1 Creating\r\n"] -[2.468022, "o", "Container ca247c9f-nats-1 Created\r\n"] -[2.469391, "o", "Container ca247c9f-nats-1 Starting"] -[2.469612, "o", "\r\n"] -[2.941429, "o", "Container ca247c9f-nats-1 Started"] -[2.941855, "o", "\r\n"] -[3.59734, "o", "created the stream\r\n"] -[3.608429, "o", "published 6 messages\r\n"] -[3.611755, "o", "published another 6 messages\r\n"] -[3.61812, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: \"2022-07-26T18:08:53.802656261Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-07-26T18:08:53.813858053Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[3.622375, "o", "{"] -[3.622897, "o", "\r\n"] -[3.623545, "o", " messages: 10,"] -[3.623757, "o", "\r\n"] -[3.62414, "o", " bytes: 496,\r\n first_seq: 3,\r\n first_ts: \"2022-07-26T18:08:53.806882796Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-07-26T18:08:53.813858053Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[3.626199, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: \"2022-07-26T18:08:53.813729652Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-07-26T18:08:53.813858053Z\",\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] -[4.63228, "o", "{"] -[4.632685, "o", "\r\n messages: 0,\r\n bytes: 0,\r\n first_seq: 13,\r\n first_ts: \"1970-01-01T00:00:00Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-07-26T18:08:53.813858053Z\",\r\n consumer_count: 0\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/deno/output.txt b/examples/jetstream/limits-stream/deno/output.txt deleted file mode 100644 index df114095..00000000 --- a/examples/jetstream/limits-stream/deno/output.txt +++ /dev/null @@ -1,48 +0,0 @@ -Network ca247c9f_default Creating -Network ca247c9f_default Created -Container ca247c9f-nats-1 Creating -Container ca247c9f-nats-1 Created -Container ca247c9f-nats-1 Starting -Container ca247c9f-nats-1 Started -created the stream -published 6 messages -published another 6 messages -{ - messages: 12, - bytes: 594, - first_seq: 1, - first_ts: "2022-07-26T18:08:53.802656261Z", - last_seq: 12, - last_ts: "2022-07-26T18:08:53.813858053Z", - num_subjects: 6, - consumer_count: 0 -} -{ - messages: 10, - bytes: 496, - first_seq: 3, - first_ts: "2022-07-26T18:08:53.806882796Z", - last_seq: 12, - last_ts: "2022-07-26T18:08:53.813858053Z", - num_subjects: 6, - consumer_count: 0 -} -{ - messages: 6, - bytes: 298, - first_seq: 7, - first_ts: "2022-07-26T18:08:53.813729652Z", - last_seq: 12, - last_ts: "2022-07-26T18:08:53.813858053Z", - num_subjects: 4, - consumer_count: 0 -} -{ - messages: 0, - bytes: 0, - first_seq: 13, - first_ts: "1970-01-01T00:00:00Z", - last_seq: 12, - last_ts: "2022-07-26T18:08:53.813858053Z", - consumer_count: 0 -} diff --git a/examples/jetstream/limits-stream/go/output.cast b/examples/jetstream/limits-stream/go/output.cast deleted file mode 100644 index 5bcdfecc..00000000 --- a/examples/jetstream/limits-stream/go/output.cast +++ /dev/null @@ -1,18 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1658495084, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/limits-stream/go"} -[2.415176, "o", "Network 072641e3_default Creating\r\n"] -[2.496847, "o", "Network 072641e3_default Created\r\nContainer 072641e3-nats-1 Creating\r\n"] -[2.552073, "o", "Container 072641e3-nats-1 Created\r\n"] -[2.553326, "o", "Container 072641e3-nats-1 Starting\r\n"] -[3.03372, "o", "Container 072641e3-nats-1 Started\r\n"] -[3.529632, "o", "created the stream\r\n"] -[3.531177, "o", "published 6 messages\r\n"] -[3.532077, "o", "published 6 messages\r\n"] -[3.533049, "o", "inspecting stream info\r\n{\r\n \"messages\": 12,\r\n \"bytes\": 594,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-07-22T13:04:47.814798969Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-07-22T13:04:47.817297637Z\",\r\n \"consumer_count\": 0\r\n}\r\n"] -[3.534812, "o", "set max messages to 10\r\n"] -[3.535734, "o", "inspecting stream info\r\n{\r\n \"messages\": 10,\r\n \"bytes\": 496,\r\n \"first_seq\": 3,\r\n \"first_ts\": \"2022-07-22T13:04:47.815772395Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-07-22T13:04:47.817297637Z\",\r\n \"consumer_count\": 0\r\n}\r\n"] -[3.537466, "o", "set max bytes to 300\r\n"] -[3.538708, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-07-22T13:04:47.817220635Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-07-22T13:04:47.817297637Z\",\r\n \"consumer_count\": 0\r\n}\r\n"] -[3.53884, "o", "set max age to one second\r\n"] -[3.539361, "o", "inspecting stream info\r\n"] -[3.540069, "o", "{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-07-22T13:04:47.817220635Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-07-22T13:04:47.817297637Z\",\r\n \"consumer_count\": 0\r\n}\r\nsleeping one second...\r\n"] -[4.542527, "o", "inspecting stream info\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 13,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-07-22T13:04:47.817297637Z\",\r\n \"consumer_count\": 0\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/go/output.txt b/examples/jetstream/limits-stream/go/output.txt deleted file mode 100644 index f9189d2f..00000000 --- a/examples/jetstream/limits-stream/go/output.txt +++ /dev/null @@ -1,63 +0,0 @@ -Network 072641e3_default Creating -Network 072641e3_default Created -Container 072641e3-nats-1 Creating -Container 072641e3-nats-1 Created -Container 072641e3-nats-1 Starting -Container 072641e3-nats-1 Started -created the stream -published 6 messages -published 6 messages -inspecting stream info -{ - "messages": 12, - "bytes": 594, - "first_seq": 1, - "first_ts": "2022-07-22T13:04:47.814798969Z", - "last_seq": 12, - "last_ts": "2022-07-22T13:04:47.817297637Z", - "consumer_count": 0 -} -set max messages to 10 -inspecting stream info -{ - "messages": 10, - "bytes": 496, - "first_seq": 3, - "first_ts": "2022-07-22T13:04:47.815772395Z", - "last_seq": 12, - "last_ts": "2022-07-22T13:04:47.817297637Z", - "consumer_count": 0 -} -set max bytes to 300 -inspecting stream info -{ - "messages": 6, - "bytes": 298, - "first_seq": 7, - "first_ts": "2022-07-22T13:04:47.817220635Z", - "last_seq": 12, - "last_ts": "2022-07-22T13:04:47.817297637Z", - "consumer_count": 0 -} -set max age to one second -inspecting stream info -{ - "messages": 6, - "bytes": 298, - "first_seq": 7, - "first_ts": "2022-07-22T13:04:47.817220635Z", - "last_seq": 12, - "last_ts": "2022-07-22T13:04:47.817297637Z", - "consumer_count": 0 -} -sleeping one second... -inspecting stream info -{ - "messages": 0, - "bytes": 0, - "first_seq": 13, - "first_ts": "1970-01-01T00:00:00Z", - "last_seq": 12, - "last_ts": "2022-07-22T13:04:47.817297637Z", - "consumer_count": 0 -} diff --git a/examples/jetstream/limits-stream/node/output.cast b/examples/jetstream/limits-stream/node/output.cast deleted file mode 100644 index 8cf56ef0..00000000 --- a/examples/jetstream/limits-stream/node/output.cast +++ /dev/null @@ -1,18 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1658838132, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/limits-stream/node"} -[1.026291, "o", "Network d08d9b88_default Creating\r\n"] -[1.079998, "o", "Network d08d9b88_default Created\r\n"] -[1.080271, "o", "Container d08d9b88-nats-1 Creating\r\n"] -[1.112825, "o", "Container d08d9b88-nats-1 Created\r\n"] -[1.113596, "o", "Container d08d9b88-nats-1 Starting"] -[1.11367, "o", "\r\n"] -[1.455376, "o", "Container d08d9b88-nats-1 Started\r\n"] -[1.904071, "o", "created the stream\r\n"] -[1.915466, "o", "published 6 messages\r\n"] -[1.91714, "o", "published another 6 messages\r\n"] -[1.920765, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: '2022-07-26T12:22:14.101422068Z',\r\n last_seq: 12,\r\n last_ts: '2022-07-26T12:22:14.111748799Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.925051, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: '2022-07-26T12:22:14.105116215Z',\r\n last_seq: 12,\r\n last_ts: '2022-07-26T12:22:14.111748799Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.929061, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: '2022-07-26T12:22:14.111692998Z',\r\n last_seq: 12,\r\n last_ts: '2022-07-26T12:22:14.111748799Z',\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] -[2.93407, "o", "{"] -[2.934307, "o", "\r\n"] -[2.934463, "o", " messages: 0,"] -[2.934602, "o", "\r\n bytes: 0,\r\n first_seq: 13,\r\n first_ts: '1970-01-01T00:00:00Z',\r\n last_seq: 12,\r\n last_ts: '2022-07-26T12:22:14.111748799Z',\r\n consumer_count: 0\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/node/output.txt b/examples/jetstream/limits-stream/node/output.txt deleted file mode 100644 index c99899b0..00000000 --- a/examples/jetstream/limits-stream/node/output.txt +++ /dev/null @@ -1,48 +0,0 @@ -Network d08d9b88_default Creating -Network d08d9b88_default Created -Container d08d9b88-nats-1 Creating -Container d08d9b88-nats-1 Created -Container d08d9b88-nats-1 Starting -Container d08d9b88-nats-1 Started -created the stream -published 6 messages -published another 6 messages -{ - messages: 12, - bytes: 594, - first_seq: 1, - first_ts: '2022-07-26T12:22:14.101422068Z', - last_seq: 12, - last_ts: '2022-07-26T12:22:14.111748799Z', - num_subjects: 6, - consumer_count: 0 -} -{ - messages: 10, - bytes: 496, - first_seq: 3, - first_ts: '2022-07-26T12:22:14.105116215Z', - last_seq: 12, - last_ts: '2022-07-26T12:22:14.111748799Z', - num_subjects: 6, - consumer_count: 0 -} -{ - messages: 6, - bytes: 298, - first_seq: 7, - first_ts: '2022-07-26T12:22:14.111692998Z', - last_seq: 12, - last_ts: '2022-07-26T12:22:14.111748799Z', - num_subjects: 4, - consumer_count: 0 -} -{ - messages: 0, - bytes: 0, - first_seq: 13, - first_ts: '1970-01-01T00:00:00Z', - last_seq: 12, - last_ts: '2022-07-26T12:22:14.111748799Z', - consumer_count: 0 -} diff --git a/examples/jetstream/multi-stream-consumption/go/output.cast b/examples/jetstream/multi-stream-consumption/go/output.cast deleted file mode 100644 index 695fb183..00000000 --- a/examples/jetstream/multi-stream-consumption/go/output.cast +++ /dev/null @@ -1,12 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1664223857, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/multi-stream-consumption/go"} -[1.36327, "o", "Network 59bfde6d_default Creating\r\n"] -[1.408275, "o", "Network 59bfde6d_default Created\r\n"] -[1.416367, "o", "Container 59bfde6d-nats-1 Creating\r\n"] -[1.445475, "o", "Container 59bfde6d-nats-1 Created\r\n"] -[1.446584, "o", "Container 59bfde6d-nats-1 Starting\r\n"] -[1.77572, "o", "Container 59bfde6d-nats-1 Started"] -[1.775967, "o", "\r\n"] -[2.119245, "o", "events.eu.page_loaded\r\nevents.eu.input_focused\r\n"] -[2.119943, "o", "events.us.page_loaded\r\nevents.eu.mouse_clicked\r\nevents.us.mouse_clicked\r\nevents.us.input_focused\r\n"] -[3.121564, "o", "eu: last delivered: 3, num pending: 0\r\n"] -[3.122716, "o", "us: last delivered: 3, num pending: 0\r\n"] diff --git a/examples/jetstream/multi-stream-consumption/go/output.txt b/examples/jetstream/multi-stream-consumption/go/output.txt deleted file mode 100644 index 9c7192bb..00000000 --- a/examples/jetstream/multi-stream-consumption/go/output.txt +++ /dev/null @@ -1,14 +0,0 @@ -Network 59bfde6d_default Creating -Network 59bfde6d_default Created -Container 59bfde6d-nats-1 Creating -Container 59bfde6d-nats-1 Created -Container 59bfde6d-nats-1 Starting -Container 59bfde6d-nats-1 Started -events.eu.page_loaded -events.eu.input_focused -events.us.page_loaded -events.eu.mouse_clicked -events.us.mouse_clicked -events.us.input_focused -eu: last delivered: 3, num pending: 0 -us: last delivered: 3, num pending: 0 diff --git a/examples/jetstream/pull-consumer-limits/go/output.cast b/examples/jetstream/pull-consumer-limits/go/output.cast deleted file mode 100644 index 0349de19..00000000 --- a/examples/jetstream/pull-consumer-limits/go/output.cast +++ /dev/null @@ -1,16 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659027140, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/pull-consumer-limits/go"} -[1.851372, "o", "Network cb225c3a_default Creating\r\n"] -[1.899624, "o", "Network cb225c3a_default Created\r\n"] -[1.899693, "o", "Container cb225c3a-nats-1 Creating\r\n"] -[1.947348, "o", "Container cb225c3a-nats-1 Created"] -[1.947541, "o", "\r\n"] -[1.948724, "o", "Container cb225c3a-nats-1 Starting\r\n"] -[2.312785, "o", "Container cb225c3a-nats-1 Started\r\n"] -[2.692106, "o", "--- max in-flight messages (n=1) ---\r\n"] -[7.684136, "o", "requested 3, got 1\r\n"] -[8.685802, "o", "nats: timeout\r\n"] -[8.687064, "o", "requested 1, got 1\r\n\r\n--- max fetch batch size (n=2) ---\r\nnats: Exceeded MaxRequestBatch of 2\r\n"] -[8.687551, "o", "requested 2, got 2\r\n\r\n--- max waiting requests (n=1) ---\r\nis valid? true\r\nfetch 1: nats: Exceeded MaxWaiting\r\nfetch 3: nats: Exceeded MaxWaiting\r\n"] -[9.687964, "o", "fetch 2: nats: timeout"] -[9.688105, "o", "\r\n\r\n--- max fetch timeout (d=1s) ---\r\n"] -[10.689591, "o", "timeout occured? true in 1.000437048s\r\nnats: Exceeded MaxRequestExpires of 1s in 339.805µs\r\n"] diff --git a/examples/jetstream/pull-consumer-limits/go/output.txt b/examples/jetstream/pull-consumer-limits/go/output.txt deleted file mode 100644 index 9708616b..00000000 --- a/examples/jetstream/pull-consumer-limits/go/output.txt +++ /dev/null @@ -1,24 +0,0 @@ -Network cb225c3a_default Creating -Network cb225c3a_default Created -Container cb225c3a-nats-1 Creating -Container cb225c3a-nats-1 Created -Container cb225c3a-nats-1 Starting -Container cb225c3a-nats-1 Started ---- max in-flight messages (n=1) --- -requested 3, got 1 -nats: timeout -requested 1, got 1 - ---- max fetch batch size (n=2) --- -nats: Exceeded MaxRequestBatch of 2 -requested 2, got 2 - ---- max waiting requests (n=1) --- -is valid? true -fetch 1: nats: Exceeded MaxWaiting -fetch 3: nats: Exceeded MaxWaiting -fetch 2: nats: timeout - ---- max fetch timeout (d=1s) --- -timeout occured? true in 1.000437048s -nats: Exceeded MaxRequestExpires of 1s in 339.805µs diff --git a/examples/jetstream/pull-consumer/go/output.cast b/examples/jetstream/pull-consumer/go/output.cast deleted file mode 100644 index 541499a0..00000000 --- a/examples/jetstream/pull-consumer/go/output.cast +++ /dev/null @@ -1,21 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659123280, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/pull-consumer/go"} -[2.193363, "o", "Network 62be849f_default Creating\r\n"] -[2.233426, "o", "Network 62be849f_default Created\r\n"] -[2.233646, "o", "Container 62be849f-nats-1 Creating\r\n"] -[2.258609, "o", "Container 62be849f-nats-1 Created"] -[2.25869, "o", "\r\n"] -[2.260702, "o", "Container 62be849f-nats-1 Starting"] -[2.260773, "o", "\r\n"] -[2.566618, "o", "Container 62be849f-nats-1 Started\r\n"] -[2.887799, "o", "ephemeral name is \"wSgbguE5\""] -[2.888014, "o", "\r\n"] -[2.888851, "o", "got 2 messages"] -[2.889018, "o", "\r\n"] -[2.889758, "o", "got 1 messages"] -[2.88988, "o", "\r\n"] -[3.890749, "o", "timeout? true\r\n"] -[3.892535, "o", "received \"events.1\" from sub1"] -[3.89268, "o", "\r\n"] -[3.893312, "o", "received \"events.2\" from sub1 (after reconnect)\r\n"] -[3.894108, "o", "received \"events.3\" from sub2\r\n"] -[4.894475, "o", "timeout on sub1? true\r\n"] diff --git a/examples/jetstream/pull-consumer/go/output.txt b/examples/jetstream/pull-consumer/go/output.txt deleted file mode 100644 index 1701c1cc..00000000 --- a/examples/jetstream/pull-consumer/go/output.txt +++ /dev/null @@ -1,14 +0,0 @@ -Network 62be849f_default Creating -Network 62be849f_default Created -Container 62be849f-nats-1 Creating -Container 62be849f-nats-1 Created -Container 62be849f-nats-1 Starting -Container 62be849f-nats-1 Started -ephemeral name is "wSgbguE5" -got 2 messages -got 1 messages -timeout? true -received "events.1" from sub1 -received "events.2" from sub1 (after reconnect) -received "events.3" from sub2 -timeout on sub1? true diff --git a/examples/jetstream/pull-consumer/rust/output.cast b/examples/jetstream/pull-consumer/rust/output.cast deleted file mode 100644 index 1883c166..00000000 --- a/examples/jetstream/pull-consumer/rust/output.cast +++ /dev/null @@ -1,10 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1659527957, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/pull-consumer/rust"} -[1.914003, "o", "Network aafc2f58_default Creating\r\n"] -[1.960074, "o", "Network aafc2f58_default Created\r\n"] -[1.960619, "o", "Container aafc2f58-nats-1 Creating\r\n"] -[1.998382, "o", "Container aafc2f58-nats-1 Created\r\n"] -[1.999531, "o", "Container aafc2f58-nats-1 Starting\r\n"] -[2.36708, "o", "Container aafc2f58-nats-1 Started\r\n"] -[2.847063, "o", "got message on subject events.0 with payload \"data\"\r\ngot message on subject events.1 with payload \"data\"\r\n"] -[2.847914, "o", "got message on subject events.2 with payload \"data\"\r\n"] -[2.84932, "o", "got message on subject events.3 with payload \"data\"\r\ngot message on subject events.4 with payload \"data\"\r\ngot message on subject events.5 with payload \"data\"\r\ngot message on subject events.6 with payload \"data\"\r\ngot message on subject events.7 with payload \"data\"\r\ngot message on subject events.8 with payload \"data\"\r\ngot message on subject events.9 with payload \"data\"\r\n"] diff --git a/examples/jetstream/pull-consumer/rust/output.txt b/examples/jetstream/pull-consumer/rust/output.txt deleted file mode 100644 index 886fb871..00000000 --- a/examples/jetstream/pull-consumer/rust/output.txt +++ /dev/null @@ -1,16 +0,0 @@ -Network aafc2f58_default Creating -Network aafc2f58_default Created -Container aafc2f58-nats-1 Creating -Container aafc2f58-nats-1 Created -Container aafc2f58-nats-1 Starting -Container aafc2f58-nats-1 Started -got message on subject events.0 with payload "data" -got message on subject events.1 with payload "data" -got message on subject events.2 with payload "data" -got message on subject events.3 with payload "data" -got message on subject events.4 with payload "data" -got message on subject events.5 with payload "data" -got message on subject events.6 with payload "data" -got message on subject events.7 with payload "data" -got message on subject events.8 with payload "data" -got message on subject events.9 with payload "data" diff --git a/examples/jetstream/push-consumer/go/output.cast b/examples/jetstream/push-consumer/go/output.cast deleted file mode 100644 index 5f96d3c7..00000000 --- a/examples/jetstream/push-consumer/go/output.cast +++ /dev/null @@ -1,28 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1660231983, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/push-consumer/go"} -[3.837198, "o", "Network dbfddaae_default Creating\r\n"] -[3.882055, "o", "Network dbfddaae_default Created\r\n"] -[3.882221, "o", "Container dbfddaae-nats-1 Creating\r\n"] -[3.919072, "o", "Container dbfddaae-nats-1 Created\r\n"] -[3.926801, "o", "Container dbfddaae-nats-1 Starting\r\n"] -[4.296772, "o", "Container dbfddaae-nats-1 Started\r\n"] -[4.65308, "o", "# Ephemeral"] -[4.653267, "o", "\r\n"] -[4.654594, "o", "ephemeral name is \"5OHvxDcR\""] -[4.655144, "o", "\r\n3 messages queued\r\n"] -[4.656344, "o", "6 messages queued"] -[4.656496, "o", "\r\nreceived \"events.1\"\r\nreceived \"events.2\""] -[4.657123, "o", "\r\n4 messages queued\r\n\r\n# Durable (Helper)\r\n"] -[4.658674, "o", "6 messages queued\r\n"] -[4.66004, "o", "nats: consumer not found\r\n\r\n# Durable (AddConsumer)\r\n"] -[4.661006, "o", "received \"events.1\"\r\n5 messages queued\r\nmax stream sequence delivered: 6\r\nmax consumer sequence delivered: 6\r\nnum ack pending: 5\r\nnum redelivered: 0\r\n"] -[4.761571, "o", "received timeout? true\r\n"] -[5.662136, "o", "received \"events.2\" (delivery #2)"] -[5.662193, "o", "\r\n"] -[5.66465, "o", "max stream sequence delivered: 6"] -[5.664994, "o", "\r\n"] -[5.665307, "o", "max consumer sequence delivered: 11"] -[5.665602, "o", "\r\n"] -[5.665733, "o", "num ack pending: 4"] -[5.665876, "o", "\r\n"] -[5.666001, "o", "num redelivered: 4"] -[5.666116, "o", "\r\n"] diff --git a/examples/jetstream/push-consumer/go/output.txt b/examples/jetstream/push-consumer/go/output.txt deleted file mode 100644 index cf6de4b7..00000000 --- a/examples/jetstream/push-consumer/go/output.txt +++ /dev/null @@ -1,31 +0,0 @@ -Network dbfddaae_default Creating -Network dbfddaae_default Created -Container dbfddaae-nats-1 Creating -Container dbfddaae-nats-1 Created -Container dbfddaae-nats-1 Starting -Container dbfddaae-nats-1 Started -# Ephemeral -ephemeral name is "5OHvxDcR" -3 messages queued -6 messages queued -received "events.1" -received "events.2" -4 messages queued - -# Durable (Helper) -6 messages queued -nats: consumer not found - -# Durable (AddConsumer) -received "events.1" -5 messages queued -max stream sequence delivered: 6 -max consumer sequence delivered: 6 -num ack pending: 5 -num redelivered: 0 -received timeout? true -received "events.2" (delivery #2) -max stream sequence delivered: 6 -max consumer sequence delivered: 11 -num ack pending: 4 -num redelivered: 4 diff --git a/examples/jetstream/queue-push-consumer/go/output.cast b/examples/jetstream/queue-push-consumer/go/output.cast deleted file mode 100644 index db2c57a6..00000000 --- a/examples/jetstream/queue-push-consumer/go/output.cast +++ /dev/null @@ -1,14 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1660526833, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/queue-push-consumer/go"} -[2.301199, "o", "Network d7077068_default Creating\r\n"] -[2.347976, "o", "Network d7077068_default Created\r\n"] -[2.348032, "o", "Container d7077068-nats-1 Creating\r\n"] -[2.379665, "o", "Container d7077068-nats-1 Created\r\n"] -[2.380193, "o", "Container d7077068-nats-1 Starting\r\n"] -[2.836685, "o", "Container d7077068-nats-1 Started\r\n"] -[3.169602, "o", "# Durable (implicit)"] -[3.16994, "o", "\r\n"] -[3.1717, "o", "deliver group: \"event-processor\"\r\n"] -[3.172635, "o", "deliver subject: \"_INBOX.CYOssaH1azfwRG0Z9sLLFJ\"\r\n"] -[3.174409, "o", "sub1: received message \"events.2\"\r\nsub2: received message \"events.1\"\r\nsub3: received message \"events.3\"\r\n"] -[3.175602, "o", "\r\n# Durable (explicit)\r\n"] -[3.176734, "o", "sub2: received message \"events.4\"\r\nsub1: received message \"events.1\"\r\nsub1: received message \"events.2\"\r\nsub1: received message \"events.3\"\r\nsub1: received message \"events.5\"\r\nsub1: received message \"events.6\"\r\n"] diff --git a/examples/jetstream/queue-push-consumer/go/output.txt b/examples/jetstream/queue-push-consumer/go/output.txt deleted file mode 100644 index 3b70db05..00000000 --- a/examples/jetstream/queue-push-consumer/go/output.txt +++ /dev/null @@ -1,20 +0,0 @@ -Network d7077068_default Creating -Network d7077068_default Created -Container d7077068-nats-1 Creating -Container d7077068-nats-1 Created -Container d7077068-nats-1 Starting -Container d7077068-nats-1 Started -# Durable (implicit) -deliver group: "event-processor" -deliver subject: "_INBOX.CYOssaH1azfwRG0Z9sLLFJ" -sub1: received message "events.2" -sub2: received message "events.1" -sub3: received message "events.3" - -# Durable (explicit) -sub2: received message "events.4" -sub1: received message "events.1" -sub1: received message "events.2" -sub1: received message "events.3" -sub1: received message "events.5" -sub1: received message "events.6" diff --git a/examples/jetstream/workqueue-stream/go/output.cast b/examples/jetstream/workqueue-stream/go/output.cast deleted file mode 100644 index bb7081a5..00000000 --- a/examples/jetstream/workqueue-stream/go/output.cast +++ /dev/null @@ -1,19 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1662137118, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: jetstream/workqueue-stream/go"} -[1.431614, "o", "Network 85a06faf_default Creating\r\n"] -[1.477426, "o", "Network 85a06faf_default Created\r\n"] -[1.477554, "o", "Container 85a06faf-nats-1 Creating\r\n"] -[1.508024, "o", "Container 85a06faf-nats-1 Created\r\n"] -[1.509108, "o", "Container 85a06faf-nats-1 Starting\r\n"] -[1.826416, "o", "Container 85a06faf-nats-1 Started\r\n"] -[2.166808, "o", "created the stream\r\n"] -[2.167935, "o", "published 3 messages\r\n# Stream info without any consumers\r\n"] -[2.168857, "o", "{\r\n \"messages\": 3,\r\n \"bytes\": 157,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-09-02T16:45:20.27406655Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-09-02T16:45:20.275518261Z\",\r\n \"consumer_count\": 0"] -[2.168889, "o", "\r\n}\r\n"] -[2.171769, "o", "\r\n# Stream info with one consumer\r\n"] -[2.172357, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-09-02T16:45:20.275518261Z\",\r\n \"consumer_count\": 1\r\n}\r\n"] -[2.173353, "o", "\r\n# Create an overlapping consumer\r\nnats: multiple non-filtered consumers not allowed on workqueue stream\r\n"] -[2.174978, "o", "created the new consumer? true\r\n"] -[2.175725, "o", "\r\n# Create non-overlapping consumers\r\n"] -[2.178812, "o", "published 4 messages\r\n"] -[2.179555, "o", "us sub got: events.us.page_loaded\r\nus sub got: events.us.input_focused\r\n"] -[2.180862, "o", "eu sub got: events.eu.mouse_clicked\r\neu sub got: events.eu.page_loaded\r\n"] diff --git a/examples/jetstream/workqueue-stream/go/output.txt b/examples/jetstream/workqueue-stream/go/output.txt deleted file mode 100644 index ff9baa32..00000000 --- a/examples/jetstream/workqueue-stream/go/output.txt +++ /dev/null @@ -1,40 +0,0 @@ -Network 85a06faf_default Creating -Network 85a06faf_default Created -Container 85a06faf-nats-1 Creating -Container 85a06faf-nats-1 Created -Container 85a06faf-nats-1 Starting -Container 85a06faf-nats-1 Started -created the stream -published 3 messages -# Stream info without any consumers -{ - "messages": 3, - "bytes": 157, - "first_seq": 1, - "first_ts": "2022-09-02T16:45:20.27406655Z", - "last_seq": 3, - "last_ts": "2022-09-02T16:45:20.275518261Z", - "consumer_count": 0 -} - -# Stream info with one consumer -{ - "messages": 0, - "bytes": 0, - "first_seq": 4, - "first_ts": "1970-01-01T00:00:00Z", - "last_seq": 3, - "last_ts": "2022-09-02T16:45:20.275518261Z", - "consumer_count": 1 -} - -# Create an overlapping consumer -nats: multiple non-filtered consumers not allowed on workqueue stream -created the new consumer? true - -# Create non-overlapping consumers -published 4 messages -us sub got: events.us.page_loaded -us sub got: events.us.input_focused -eu sub got: events.eu.mouse_clicked -eu sub got: events.eu.page_loaded diff --git a/examples/kv/intro/go/output.cast b/examples/kv/intro/go/output.cast deleted file mode 100644 index 00170408..00000000 --- a/examples/kv/intro/go/output.cast +++ /dev/null @@ -1,14 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1665433855, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: kv/intro/go"} -[1.176824, "o", "Network b99bdd80_default Creating\r\n"] -[1.21998, "o", "Network b99bdd80_default Created\r\n"] -[1.26665, "o", "Container b99bdd80-nats-1 Creating\r\n"] -[1.294783, "o", "Container b99bdd80-nats-1 Created\r\n"] -[1.303683, "o", "Container b99bdd80-nats-1 Starting\r\n"] -[1.623171, "o", "Container b99bdd80-nats-1 Started\r\n"] -[1.943883, "o", "sue.color @ 1 -> \"blue\"\r\n"] -[1.944615, "o", "sue.color @ 2 -> \"green\"\r\n"] -[1.945351, "o", "expected error: nats: wrong last sequence: 2\r\nsue.color @ 3 -> \"red\"\r\n"] -[1.945926, "o", "KV stream name: KV_profiles\r\n"] -[1.947923, "o", "$KV.profiles.sue.color @ 3 -> \"red\"\r\n"] -[1.94873, "o", "$KV.profiles.sue.color @ 4 -> \"yellow\"\r\n$KV.profiles.sue.color @ 5 -> \"\"\r\nheaders: map[KV-Operation:[DEL]]\r\n"] -[1.950444, "o", "sue.color @ 5 -> \"\" (op: KeyValueDeleteOp)\r\nsue.color @ 6 -> \"purple\" (op: KeyValuePutOp)\r\nsue.food @ 7 -> \"pizza\" (op: KeyValuePutOp)\r\n"] diff --git a/examples/kv/intro/go/output.txt b/examples/kv/intro/go/output.txt deleted file mode 100644 index 8404d612..00000000 --- a/examples/kv/intro/go/output.txt +++ /dev/null @@ -1,18 +0,0 @@ -Network b99bdd80_default Creating -Network b99bdd80_default Created -Container b99bdd80-nats-1 Creating -Container b99bdd80-nats-1 Created -Container b99bdd80-nats-1 Starting -Container b99bdd80-nats-1 Started -sue.color @ 1 -> "blue" -sue.color @ 2 -> "green" -expected error: nats: wrong last sequence: 2 -sue.color @ 3 -> "red" -KV stream name: KV_profiles -$KV.profiles.sue.color @ 3 -> "red" -$KV.profiles.sue.color @ 4 -> "yellow" -$KV.profiles.sue.color @ 5 -> "" -headers: map[KV-Operation:[DEL]] -sue.color @ 5 -> "" (op: KeyValueDeleteOp) -sue.color @ 6 -> "purple" (op: KeyValuePutOp) -sue.food @ 7 -> "pizza" (op: KeyValuePutOp) diff --git a/examples/messaging/concurrent/rust/output.cast b/examples/messaging/concurrent/rust/output.cast deleted file mode 100644 index fcb118f5..00000000 --- a/examples/messaging/concurrent/rust/output.cast +++ /dev/null @@ -1,54 +0,0 @@ -{"version": 2, "width": 80, "height": 45, "timestamp": 1658369542, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/concurrent/rust"} -[0.052815, "o", "Network 3b5be259_default Creating\r\n"] -[0.078373, "o", "Network 3b5be259_default Created\r\n"] -[0.078495, "o", "Container 3b5be259-nats-1 Creating\r\n"] -[0.101773, "o", "Container 3b5be259-nats-1 Created\r\n"] -[0.102669, "o", "Container 3b5be259-nats-1 Starting\r\n"] -[0.369531, "o", "Container 3b5be259-nats-1 Started\r\n"] -[2.776306, "o", "received message: \"hello 10\"\r\n"] -[2.791549, "o", "received message: \"hello 22\"\r\n"] -[2.829131, "o", "received message: \"hello 23\"\r\nreceived message: \"hello 0\"\r\nreceived message: \"hello 21\"\r\n"] -[2.845571, "o", "received message: \"hello 18\"\r\n"] -[2.867133, "o", "received message: \"hello 24\"\r\n"] -[2.931861, "o", "received message: \"hello 17\"\r\n"] -[2.932847, "o", "received message: \"hello 1\"\r\n"] -[2.938397, "o", "received message: \"hello 4\"\r\n"] -[3.016501, "o", "received message: \"hello 5\"\r\n"] -[3.025847, "o", "received message: \"hello 27\"\r\n"] -[3.043112, "o", "received message: \"hello 33\"\r\n"] -[3.048124, "o", "received message: \"hello 8\"\r\n"] -[3.059293, "o", "received message: \"hello 15\"\r\n"] -[3.067381, "o", "received message: \"hello 29\"\r\n"] -[3.06843, "o", "received message: \"hello 3\"\r\n"] -[3.072733, "o", "received message: \"hello 2\"\r\n"] -[3.078945, "o", "received message: \"hello 37\"\r\n"] -[3.082993, "o", "received message: \"hello 40\"\r\n"] -[3.084097, "o", "received message: \"hello 16\"\r\n"] -[3.090351, "o", "received message: \"hello 25\"\r\nreceived message: \"hello 32\"\r\n"] -[3.110686, "o", "received message: \"hello 13\"\r\nreceived message: \"hello 31\"\r\n"] -[3.153044, "o", "received message: \"hello 6\"\r\n"] -[3.154304, "o", "received message: \"hello 39\"\r\n"] -[3.157444, "o", "received message: \"hello 19\"\r\n"] -[3.161841, "o", "received message: \"hello 7\"\r\n"] -[3.162748, "o", "received message: \"hello 44\"\r\n"] -[3.195642, "o", "received message: \"hello 45\"\r\n"] -[3.196583, "o", "received message: \"hello 26\"\r\n"] -[3.199713, "o", "received message: \"hello 14\"\r\n"] -[3.204981, "o", "received message: \"hello 46\""] -[3.205145, "o", "\r\n"] -[3.205996, "o", "received message: \"hello 11\"\r\n"] -[3.212184, "o", "received message: \"hello 35\"\r\n"] -[3.24337, "o", "received message: \"hello 20\"\r\n"] -[3.247519, "o", "received message: \"hello 9\"\r\n"] -[3.25175, "o", "received message: \"hello 12\"\r\n"] -[3.256566, "o", "received message: \"hello 34\"\r\n"] -[3.263667, "o", "received message: \"hello 28\"\r\n"] -[3.277147, "o", "received message: \"hello 38\"\r\n"] -[3.280539, "o", "received message: \"hello 30\"\r\n"] -[3.393184, "o", "received message: \"hello 42\"\r\n"] -[3.417349, "o", "received message: \"hello 49\"\r\n"] -[3.428497, "o", "received message: \"hello 41\"\r\n"] -[3.456917, "o", "received message: \"hello 36\"\r\n"] -[3.495134, "o", "received message: \"hello 47\"\r\n"] -[3.498343, "o", "received message: \"hello 43\"\r\n"] -[3.577856, "o", "received message: \"hello 48\"\r\n"] diff --git a/examples/messaging/concurrent/rust/output.txt b/examples/messaging/concurrent/rust/output.txt deleted file mode 100644 index 276e597a..00000000 --- a/examples/messaging/concurrent/rust/output.txt +++ /dev/null @@ -1,56 +0,0 @@ -Network 3b5be259_default Creating -Network 3b5be259_default Created -Container 3b5be259-nats-1 Creating -Container 3b5be259-nats-1 Created -Container 3b5be259-nats-1 Starting -Container 3b5be259-nats-1 Started -received message: "hello 10" -received message: "hello 22" -received message: "hello 23" -received message: "hello 0" -received message: "hello 21" -received message: "hello 18" -received message: "hello 24" -received message: "hello 17" -received message: "hello 1" -received message: "hello 4" -received message: "hello 5" -received message: "hello 27" -received message: "hello 33" -received message: "hello 8" -received message: "hello 15" -received message: "hello 29" -received message: "hello 3" -received message: "hello 2" -received message: "hello 37" -received message: "hello 40" -received message: "hello 16" -received message: "hello 25" -received message: "hello 32" -received message: "hello 13" -received message: "hello 31" -received message: "hello 6" -received message: "hello 39" -received message: "hello 19" -received message: "hello 7" -received message: "hello 44" -received message: "hello 45" -received message: "hello 26" -received message: "hello 14" -received message: "hello 46" -received message: "hello 11" -received message: "hello 35" -received message: "hello 20" -received message: "hello 9" -received message: "hello 12" -received message: "hello 34" -received message: "hello 28" -received message: "hello 38" -received message: "hello 30" -received message: "hello 42" -received message: "hello 49" -received message: "hello 41" -received message: "hello 36" -received message: "hello 47" -received message: "hello 43" -received message: "hello 48" diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.cast b/examples/messaging/iterating-multiple-subscriptions/rust/output.cast deleted file mode 100644 index 608e3010..00000000 --- a/examples/messaging/iterating-multiple-subscriptions/rust/output.cast +++ /dev/null @@ -1,346 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1661778228, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: messaging/multiple-subjects-subscription/rust"} -[1.209414, "o", "Network 0f2977e4_default Creating\r\n"] -[1.255127, "o", "Network 0f2977e4_default Created\r\nContainer 0f2977e4-nats-1 Creating\r\n"] -[1.283137, "o", "Container 0f2977e4-nats-1 Created"] -[1.283307, "o", "\r\n"] -[1.284414, "o", "Container 0f2977e4-nats-1 Starting\r\n"] -[1.633016, "o", "Container 0f2977e4-nats-1 Started"] -[1.633182, "o", "\r\n"] -[1.969314, "o", "received message on subject cars.0 with paylaod car number 0\r\n"] -[1.969811, "o", "received message on subject cars.1 with paylaod car number 1"] -[1.970017, "o", "\r\n"] -[1.970344, "o", "received message on subject cars.2 with paylaod car number 2"] -[1.970523, "o", "\r\n"] -[1.97081, "o", "received message on subject cars.3 with paylaod car number 3"] -[1.970969, "o", "\r\n"] -[1.971278, "o", "received message on subject cars.4 with paylaod car number 4"] -[1.971426, "o", "\r\n"] -[1.972831, "o", "received message on subject ships.0 with paylaod ship number 0"] -[1.973007, "o", "\r\n"] -[1.973391, "o", "received message on subject cars.5 with paylaod car number 5\r\nreceived message on subject ships.1 with paylaod ship number 1\r\nreceived message on subject cars.6 with paylaod car number 6\r\nreceived message on subject ships.2 with paylaod ship number 2\r\nreceived message on subject cars.7 with paylaod car number 7\r\nreceived message on subject ships.3 with paylaod ship number 3\r\nreceived message on subject cars.8 with paylaod car number 8\r\nreceived message on subject ships.4 with paylaod ship number 4\r\nreceived message on subject cars.9 with paylaod car number 9\r\nreceived message on subject ships.5 with paylaod ship number 5\r\nreceived message on subject cars.10 with paylaod car number 10\r\nreceived message on subject ships.6 with paylaod ship number 6\r\nreceived message on subject cars.11 with paylaod car number 11\r\nreceived message on subject ships.7 with paylaod ship number 7\r\nreceived message on subject cars.12 with paylaod car number 12\r\nreceived message on subject cars.13 with paylaod car number 13\r\nreceived m"] -[1.973419, "o", "essage on subject cars.14 with paylaod car number 14\r\nreceived message on subject cars.15 with paylaod car number 15\r\nreceived message on subject cars.16 with paylaod car number 16"] -[1.974675, "o", "\r\nreceived message on subject cars.17 with paylaod car number 17\r\nreceived message on subject cars.18 with paylaod car number 18\r\nreceived message on subject cars.19 with paylaod car number 19\r\nreceived message on subject cars.20 with paylaod car number 20\r\nreceived message on subject cars.21 with paylaod car number 21\r\nreceived message on subject cars.22 with paylaod car number 22\r\nreceived message on subject cars.23 with paylaod car number 23\r\nreceived message on subject cars.24 with paylaod car number 24\r\nreceived message on subject cars.25 with paylaod car number 25\r\nreceived message on subject cars.26 with paylaod car number 26\r\nreceived message on subject cars.27 with paylaod car number 27"] -[1.97557, "o", "\r\nreceived message on subject cars.28 with paylaod car number 28\r\nreceived message on subject cars.29 with paylaod car number 29\r\nreceived message on subject cars.30 with paylaod car number 30\r\nreceived message on subject cars.31 with paylaod car number 31\r\nreceived message on subject cars.32 with paylaod car number 32\r\nreceived message on subject cars.33 with paylaod car number 33\r\nreceived message on subject cars.34 with paylaod car number 34\r\nreceived message on subject cars.35 with paylaod car number 35\r\nreceived message on subject cars.36 with paylaod car number 36\r\nreceived message on subject cars.37 with paylaod car number 37\r\n"] -[1.975799, "o", "received message on subject cars.38 with paylaod car number 38"] -[1.97655, "o", "\r\nreceived message on subject cars.39 with paylaod car number 39\r\nreceived message on subject cars.40 with paylaod car number 40\r\nreceived message on subject cars.41 with paylaod car number 41\r\nreceived message on subject cars.42 with paylaod car number 42\r\nreceived message on subject cars.43 with paylaod car number 43\r\nreceived message on subject cars.44 with paylaod car number 44\r\nreceived message on subject cars.45 with paylaod car number 45\r\nreceived message on subject cars.46 with paylaod car number 46"] -[1.976888, "o", "\r\nreceived message on subject cars.47 with paylaod car number 47\r\nreceived message on subject cars.48 with paylaod car number 48\r\nreceived message on subject cars.49 with paylaod car number 49\r\nreceived message on subject cars.50 with paylaod car number 50\r\nreceived message on subject cars.51 with paylaod car number 51\r\nreceived message on subject cars.52 with paylaod car number 52\r\nreceived message on subject cars.53 with paylaod car number 53\r\nreceived message on subject cars.54 with paylaod car number 54\r\nreceived message on subject cars.55 with paylaod car number 55\r\nreceived message on subject cars.56 with paylaod car number 56\r\nreceived message on subject cars.57 with paylaod car number 57\r\nreceived message on subject cars.58 with paylaod car number 58\r\nreceived message on subject cars.59 with paylaod car number 59\r\nreceived message on subject cars.60 with paylaod car number 60\r\nreceived message on subject cars.61 with paylaod car number 61\r\nreceived message on subject cars.62 with paylaod car number 62"] -[1.976913, "o", "\r\nreceived message on subject cars.63 with paylaod car number 63\r\nreceived message on subject cars.64 with paylaod car number 64"] -[1.97861, "o", "\r\nreceived message on subject cars.65 with paylaod car number 65\r\nreceived message on subject cars.66 with paylaod car number 66\r\nreceived message on subject cars.67 with paylaod car number 67\r\nreceived message on subject cars.68 with paylaod car number 68\r\nreceived message on subject cars.69 with paylaod car number 69\r\nreceived message on subject cars.70 with paylaod car number 70\r\nreceived message on subject cars.71 with paylaod car number 71\r\nreceived message on subject cars.72 with paylaod car number 72\r\nreceived message on subject cars.73 with paylaod car number 73\r\nreceived message on subject cars.74 with paylaod car number 74\r\nreceived message on subject cars.75 with paylaod car number 75\r\nreceived message on subject cars.76 with paylaod car number 76\r\nreceived message on subject cars.77 with paylaod car number 77\r\nreceived message on subject cars.78 with paylaod car number 78\r\nreceived message on subject cars.79 with paylaod car number 79\r\nreceived message on subject cars.80 with paylaod car number 80"] -[1.978799, "o", "\r\nreceived message on subject cars.81 with paylaod car number 81\r\nreceived message on subject cars.82 with paylaod car number 82\r\nreceived message on subject cars.83 with paylaod car number 83\r\nreceived message on subject cars.84 with paylaod car number 84\r\nreceived message on subject cars.85 with paylaod car number 85\r\nreceived message on subject cars.86 with paylaod car number 86\r\nreceived message on subject cars.87 with paylaod car number 87\r\nreceived message on subject cars.88 with paylaod car number 88"] -[1.978902, "o", "\r\n"] -[1.978952, "o", "received message on subject cars.89 with paylaod car number 89"] -[1.978997, "o", "\r\n"] -[1.979036, "o", "received message on subject cars.90 with paylaod car number 90"] -[1.979078, "o", "\r\n"] -[1.979117, "o", "received message on subject cars.91 with paylaod car number 91"] -[1.979157, "o", "\r\n"] -[1.979192, "o", "received message on subject cars.92 with paylaod car number 92"] -[1.979231, "o", "\r\n"] -[1.97927, "o", "received message on subject cars.93 with paylaod car number 93"] -[1.979304, "o", "\r\n"] -[1.979343, "o", "received message on subject cars.94 with pa"] -[1.979382, "o", "ylaod car number 94"] -[1.979436, "o", "\r\n"] -[1.979482, "o", "received message on subject cars.95 with paylaod car number 95"] -[1.97952, "o", "\r\n"] -[1.97956, "o", "received message on subject cars.96 with paylaod car number 96"] -[1.979599, "o", "\r\n"] -[1.979645, "o", "received message on subject cars.97 with paylaod car number 97"] -[1.979699, "o", "\r\n"] -[1.979766, "o", "received message on subject cars.98 with paylaod car number 98"] -[1.979812, "o", "\r\n"] -[1.980309, "o", "received message on subject cars.99 with paylaod car number 99"] -[1.980384, "o", "\r\n"] -[2.06883, "o", "received message on subject ships.8 with paylaod ship number 8"] -[2.068954, "o", "\r\n"] -[2.06901, "o", "received message on subject ships.9 with paylaod ship number 9"] -[2.069048, "o", "\r\n"] -[2.069083, "o", "received message on subject ships.10 with paylaod ship number 10"] -[2.06912, "o", "\r\n"] -[2.069173, "o", "received message on subject ships.11 with paylaod ship number 11"] -[2.06921, "o", "\r\n"] -[2.069244, "o", "received message on subject ships.12 with paylaod ship number 12"] -[2.069278, "o", "\r\n"] -[2.069321, "o", "received message on subject ships.13 with paylaod ship number 13"] -[2.06936, "o", "\r\n"] -[2.069393, "o", "received message on subject ships.14 with paylaod ship number 14"] -[2.069427, "o", "\r\n"] -[2.069461, "o", "received message on subject ships.15 with paylaod ship number 15"] -[2.069493, "o", "\r\n"] -[2.069527, "o", "received message on subject ships.16 with paylaod ship number 16"] -[2.06956, "o", "\r\n"] -[2.069593, "o", "received message on subject ships.17 with paylaod ship number 17"] -[2.069626, "o", "\r\n"] -[2.069659, "o", "received message on subject ships.18 with paylaod ship number 18"] -[2.069693, "o", "\r\n"] -[2.069728, "o", "received message on subject ships.19 with paylaod ship number 19"] -[2.069762, "o", "\r\n"] -[2.069795, "o", "received message on subject ships.20 with paylaod ship number 20"] -[2.069877, "o", "\r\n"] -[2.069913, "o", "received message on subject ships.21 with paylaod ship number 21"] -[2.06995, "o", "\r\n"] -[2.069989, "o", "received message on subject ships.22 with paylaod ship number 22"] -[2.070023, "o", "\r\n"] -[2.070056, "o", "received message on subject ships.23 with paylaod ship number 23"] -[2.070089, "o", "\r\n"] -[2.070122, "o", "received message on subject ships.24 with paylaod ship number 24"] -[2.070156, "o", "\r\n"] -[2.07019, "o", "received message on subject ships.25 with paylaod ship number 25"] -[2.070223, "o", "\r\n"] -[2.070256, "o", "received message on subject ships.26 with paylaod ship number 26"] -[2.070289, "o", "\r\n"] -[2.070322, "o", "received message on subject planes.0 with paylaod plane number 0"] -[2.070355, "o", "\r\n"] -[2.070388, "o", "received message on subject ships.27 with paylaod ship number 27"] -[2.070421, "o", "\r\n"] -[2.070454, "o", "received message on subject ships.28 with paylaod ship number 28"] -[2.070487, "o", "\r\n"] -[2.07052, "o", "received message on subject ships.29 with paylaod ship number 29"] -[2.070553, "o", "\r\n"] -[2.070586, "o", "received message on subject planes.1 with paylaod plane number 1"] -[2.070618, "o", "\r\n"] -[2.070651, "o", "received message on subject ships.30 with paylaod ship number 30"] -[2.070684, "o", "\r\n"] -[2.070717, "o", "received message on subject planes.2 with paylaod plane number 2"] -[2.07075, "o", "\r\n"] -[2.070782, "o", "received message on subject ships.31 with paylaod ship number 31"] -[2.070814, "o", "\r\n"] -[2.070847, "o", "received message on subject planes.3 with paylaod plane number 3"] -[2.070881, "o", "\r\n"] -[2.071309, "o", "received message on subject ships.32 with paylaod ship number 32"] -[2.071394, "o", "\r\n"] -[2.071454, "o", "received message on subject planes.4 with paylaod plane number 4"] -[2.071515, "o", "\r\n"] -[2.071565, "o", "received message on subject ships.33 with paylaod ship number 33"] -[2.071622, "o", "\r\n"] -[2.071675, "o", "received message on subject planes.5 with paylaod plane number 5"] -[2.07173, "o", "\r\n"] -[2.071787, "o", "received message on subject ships.34 with paylaod ship number 34"] -[2.071835, "o", "\r\n"] -[2.071909, "o", "received message on subject planes.6 with paylaod plane number 6"] -[2.071959, "o", "\r\n"] -[2.072376, "o", "received message on subject ships.35 with paylaod ship number 35"] -[2.072459, "o", "\r\n"] -[2.076041, "o", "received message on subject planes.7 with paylaod plane number 7"] -[2.076308, "o", "\r\n"] -[2.076484, "o", "received message on subject ships.36 with paylaod ship number 36"] -[2.076632, "o", "\r\n"] -[2.07675, "o", "received message on subject planes.8 with paylaod plane number 8"] -[2.076878, "o", "\r\n"] -[2.076997, "o", "received message on subject ships.37 with paylaod ship number 37"] -[2.077125, "o", "\r\n"] -[2.077244, "o", "received message on subject planes.9 with paylaod plane number 9"] -[2.07741, "o", "\r\n"] -[2.077555, "o", "received message on subject ships.38 with paylaod ship number 38"] -[2.07767, "o", "\r\n"] -[2.07778, "o", "received message on subject planes.10 with paylaod plane number 10"] -[2.077909, "o", "\r\n"] -[2.078017, "o", "received message on subject ships.39 with paylaod ship number 39"] -[2.078146, "o", "\r\n"] -[2.078275, "o", "received message on subject planes.11 with paylaod plane number 11"] -[2.078399, "o", "\r\n"] -[2.078575, "o", "received message on subject ships.40 with paylaod ship number 40"] -[2.078712, "o", "\r\n"] -[2.078836, "o", "received message on subject planes.12 with paylaod plane number 12"] -[2.078956, "o", "\r\n"] -[2.079087, "o", "received message on subject ships.41 with paylaod ship number 41"] -[2.079241, "o", "\r\n"] -[2.079369, "o", "received message on subject planes.13 with paylaod plane number 13"] -[2.07954, "o", "\r\n"] -[2.079693, "o", "received message on subject ships.42 with paylaod ship number 42"] -[2.079821, "o", "\r\n"] -[2.07996, "o", "received message on subject planes.14 with paylaod plane number 14"] -[2.080307, "o", "\r\n"] -[2.080468, "o", "received message on subject ships.43 with paylaod ship number 43"] -[2.08065, "o", "\r\n"] -[2.080758, "o", "received message on subject planes.15 with paylaod plane number 15"] -[2.080856, "o", "\r\n"] -[2.080978, "o", "received message on subject ships.44 with paylaod ship number 44"] -[2.0811, "o", "\r\n"] -[2.081417, "o", "received message on subject planes.16 with paylaod plane number 16"] -[2.081819, "o", "\r\n"] -[2.082031, "o", "received message on subject ships.45 with paylaod ship number 45"] -[2.082234, "o", "\r\n"] -[2.082571, "o", "received message on subject planes.17 with paylaod plane number 17"] -[2.082928, "o", "\r\n"] -[2.083098, "o", "received message on subject ships.46 with paylaod ship number 46"] -[2.083303, "o", "\r\n"] -[2.083637, "o", "received message on subject planes.18 with paylaod plane number 18"] -[2.083968, "o", "\r\n"] -[2.084121, "o", "received message on subject ships.47 with paylaod ship number 47"] -[2.084268, "o", "\r\n"] -[2.084412, "o", "received message on subject planes.19 with paylaod plane number 19"] -[2.084547, "o", "\r\n"] -[2.084688, "o", "received message on subject ships.48 with paylaod ship number 48"] -[2.085036, "o", "\r\n"] -[2.08516, "o", "received message on subject planes.20 with paylaod plane number 20"] -[2.085256, "o", "\r\n"] -[2.08535, "o", "received message on subject ships.49 with paylaod ship number 49"] -[2.085628, "o", "\r\n"] -[2.085824, "o", "received message on subject planes.21 with paylaod plane number 21"] -[2.08591, "o", "\r\n"] -[2.08601, "o", "received message on subject ships.50 with paylaod ship number 50"] -[2.086078, "o", "\r\n"] -[2.086122, "o", "received message on subject planes.22 with paylaod plane number 22"] -[2.086313, "o", "\r\n"] -[2.086368, "o", "receive"] -[2.086414, "o", "d message on subject ships.51 with paylaod ship number 51"] -[2.086458, "o", "\r\n"] -[2.086515, "o", "received message on subject planes.23 with paylaod plane number 23"] -[2.08656, "o", "\r\n"] -[2.086603, "o", "received message on subject ships.52 with paylaod ship number 52"] -[2.086674, "o", "\r\n"] -[2.086736, "o", "received message on subject planes.24 with paylaod plane number 24"] -[2.086795, "o", "\r\n"] -[2.086843, "o", "received message on subject ships.53 with paylaod ship number 53"] -[2.086909, "o", "\r\n"] -[2.08697, "o", "received message on subject planes.25 with paylaod plane number 25"] -[2.087014, "o", "\r\n"] -[2.087104, "o", "received message on subject ships.54 with paylaod ship number 54"] -[2.087147, "o", "\r\n"] -[2.087208, "o", "received message on subject planes.26 with paylaod plane number 26"] -[2.087253, "o", "\r\n"] -[2.087295, "o", "received message on subject ships.55 with paylaod ship number 55"] -[2.087336, "o", "\r\n"] -[2.087378, "o", "received message on subject planes.27 with paylaod plane number 27"] -[2.087419, "o", "\r\n"] -[2.087461, "o", "received message on subject ships.56 with paylaod ship number 56"] -[2.087502, "o", "\r\n"] -[2.087544, "o", "received message on subject planes.28 with paylaod plane number 28"] -[2.087586, "o", "\r\n"] -[2.087627, "o", "received message on subject ships.57 with paylaod ship number 57"] -[2.087682, "o", "\r\n"] -[2.087729, "o", "received message on subject planes.29 with paylaod plane number 29"] -[2.087771, "o", "\r\n"] -[2.087819, "o", "received message on subject ships.58 with paylaod ship number 58"] -[2.087873, "o", "\r\n"] -[2.087948, "o", "received message on subject planes.30 with paylaod plane number 30"] -[2.087991, "o", "\r\n"] -[2.088033, "o", "received message on subject ships.59 with paylaod ship number 59"] -[2.088074, "o", "\r\n"] -[2.08822, "o", "received message on subject planes.31 with paylaod plane number 31"] -[2.08842, "o", "\r\n"] -[2.088532, "o", "received message on subject ships.60 with paylaod ship number 60"] -[2.088621, "o", "\r\n"] -[2.088731, "o", "received message on subject planes.32 with paylaod plane number 32"] -[2.08882, "o", "\r\n"] -[2.088909, "o", "received message on subject ships.61 with paylaod ship number 61"] -[2.088998, "o", "\r\n"] -[2.089087, "o", "received message on subject planes.33 with paylaod plane number 33"] -[2.089176, "o", "\r\n"] -[2.089315, "o", "received message on subject ships.62 with paylaod ship number 62"] -[2.089432, "o", "\r\n"] -[2.089496, "o", "received message on subject planes.34 with paylaod plane number 34"] -[2.089557, "o", "\r\n"] -[2.089628, "o", "received message on subject ships.63 with paylaod ship number 63"] -[2.089675, "o", "\r\n"] -[2.089733, "o", "received message on subject planes.35 with paylaod plane number 35"] -[2.089779, "o", "\r\n"] -[2.089821, "o", "received message on subject ships.64 with paylaod ship number 64"] -[2.090325, "o", "\r\n"] -[2.09041, "o", "received message on subject planes.36 with paylaod plane number 36"] -[2.090455, "o", "\r\n"] -[2.0905, "o", "received message on subject ships.65 with paylaod ship number 65"] -[2.090546, "o", "\r\n"] -[2.090597, "o", "received message on subject planes.37 with paylaod plane number 37"] -[2.090641, "o", "\r\n"] -[2.090683, "o", "received message on subject ships.66 with paylaod ship number 66"] -[2.091125, "o", "\r\n"] -[2.091239, "o", "received m"] -[2.091326, "o", "essage on subject planes.38 with paylaod plane number 38"] -[2.091387, "o", "\r\n"] -[2.091446, "o", "received message on subject ships.67 with paylaod ship number 67"] -[2.091546, "o", "\r\n"] -[2.0916, "o", "received message on subject planes.39 with paylaod plane number 39"] -[2.091644, "o", "\r\n"] -[2.091687, "o", "received message on subject ships.68 with paylaod ship number 68"] -[2.09173, "o", "\r\n"] -[2.091773, "o", "received message on subject planes.40 with paylaod plane number 40"] -[2.091815, "o", "\r\n"] -[2.091857, "o", "received message on subject ships.69 with paylaod ship number 69"] -[2.091945, "o", "\r\n"] -[2.092002, "o", "received message on subject planes.41 with paylaod plane number 41"] -[2.092055, "o", "\r\n"] -[2.092102, "o", "received message on subject ships.70 with paylaod ship number 70"] -[2.092144, "o", "\r\n"] -[2.092187, "o", "received message on subject planes.42 with paylaod plane number 42"] -[2.092295, "o", "\r\n"] -[2.092345, "o", "received message on subject ships.71 with paylaod ship number 71"] -[2.092387, "o", "\r\n"] -[2.09243, "o", "received message on subject planes.43 with paylaod plane number 43"] -[2.092471, "o", "\r\n"] -[2.09252, "o", "received message on subject ships.72 with paylaod ship number 72"] -[2.092571, "o", "\r\n"] -[2.092675, "o", "received message on subject planes.44 with paylaod plane number 44"] -[2.092721, "o", "\r\n"] -[2.092762, "o", "received message on subject ships.73 with paylaod ship number 73"] -[2.092804, "o", "\r\n"] -[2.092846, "o", "received message on subject planes.45 with paylaod plane number 45"] -[2.092938, "o", "\r\n"] -[2.093019, "o", "received message on subject ships.74 with paylaod ship number 74"] -[2.093063, "o", "\r\n"] -[2.093106, "o", "received message on subject planes.46 with paylaod plane number 46"] -[2.093148, "o", "\r\n"] -[2.09319, "o", "received message on subject ships.75 with paylaod ship number 75"] -[2.093232, "o", "\r\n"] -[2.093275, "o", "received message on subject planes.47 with paylaod plane number 47"] -[2.093317, "o", "\r\n"] -[2.093366, "o", "received message on subject ships.76 with paylaod ship number 76"] -[2.093418, "o", "\r\n"] -[2.093465, "o", "received message on subject planes.48 with paylaod plane number 48"] -[2.093737, "o", "\r\n"] -[2.09379, "o", "received message on subject ships.77 with paylaod ship number 77"] -[2.093833, "o", "\r\n"] -[2.093876, "o", "received message on subject planes.49 with paylaod plane number 49"] -[2.093917, "o", "\r\n"] -[2.093959, "o", "received message on subject ships.78 with paylaod ship number 78"] -[2.094001, "o", "\r\n"] -[2.094049, "o", "received message on subject planes.50 with paylaod plane number 50"] -[2.094101, "o", "\r\n"] -[2.094168, "o", "received message on subject ships.79 with paylaod ship number 79"] -[2.094212, "o", "\r\n"] -[2.09427, "o", "received message on subject planes.51 with paylaod plane number 51"] -[2.094317, "o", "\r\n"] -[2.094362, "o", "received message on subject ships.80 with paylaod ship number 80"] -[2.094404, "o", "\r\n"] -[2.094446, "o", "received message on subject planes.52 with paylaod plane number 52"] -[2.094489, "o", "\r\n"] -[2.094531, "o", "received message on subject ships.81 with paylaod ship number 81"] -[2.094575, "o", "\r\n"] -[2.094621, "o", "received message on subject planes.53 with paylaod plane number 53"] -[2.094664, "o", "\r\n"] -[2.094712, "o", "received me"] -[2.094811, "o", "ssage on subject ships.82 with paylaod ship number 82"] -[2.094872, "o", "\r\n"] -[2.09492, "o", "received message on subject planes.54 with paylaod plane number 54"] -[2.094963, "o", "\r\n"] -[2.095005, "o", "received message on subject ships.83 with paylaod ship number 83"] -[2.095047, "o", "\r\n"] -[2.095089, "o", "received message on subject planes.55 with paylaod plane number 55"] -[2.09513, "o", "\r\n"] -[2.095172, "o", "received message on subject ships.84 with paylaod ship number 84"] -[2.095213, "o", "\r\n"] -[2.095272, "o", "received message on subject planes.56 with paylaod plane number 56"] -[2.095318, "o", "\r\n"] -[2.095362, "o", "received message on subject ships.85 with paylaod ship number 85"] -[2.095403, "o", "\r\n"] -[2.095446, "o", "received message on subject planes.57 with paylaod plane number 57"] -[2.095488, "o", "\r\n"] -[2.095536, "o", "received message on subject ships.86 with paylaod ship number 86"] -[2.095587, "o", "\r\n"] -[2.095634, "o", "received message on subject planes.58 with paylaod plane number 58"] -[2.095676, "o", "\r\n"] -[2.095718, "o", "received message on subject ships.87 with paylaod ship number 87"] -[2.095759, "o", "\r\n"] -[2.095802, "o", "received message on subject planes.59 with paylaod plane number 59"] -[2.095879, "o", "\r\n"] -[2.095954, "o", "received message on subject ships.88 with paylaod ship number 88"] -[2.095998, "o", "\r\n"] -[2.096081, "o", "received message on subject planes.60 with paylaod plane number 60\r\nreceived message on subject ships.89 with paylaod ship number 89\r\nreceived message on subject planes.61 with paylaod plane number 61\r\n"] -[2.096223, "o", "received message on subject ships.90 with paylaod ship number 90\r\nreceived message on subject planes.62 with paylaod plane number 62\r\nreceived message on subject ships.91 with paylaod ship number 91\r\nreceived message on subject planes.63 with paylaod plane number 63\r\nreceived message on subject ships.92 with paylaod ship number 92"] -[2.096303, "o", "\r\nreceived message on subject planes.64 with paylaod plane number 64\r\nreceived message on subject ships.93 with paylaod ship number 93\r\nreceived message on subject planes.65 with paylaod plane number 65\r\nreceived message on subject ships.94 with paylaod ship number 94\r\nreceived message on subject planes.66 with paylaod plane number 66\r\nreceived message on subject ships.95 with paylaod ship number 95\r\nreceived message on subject planes.67 with paylaod plane number 67\r\nreceived message on subject ships.96 with paylaod ship number 96"] -[2.096373, "o", "\r\nreceived message on subject planes.68 with paylaod plane number 68\r\nreceived message on subject ships.97 with paylaod ship number 97\r\nreceived message on subject planes.69 with paylaod plane number 69\r\nreceived message on subject ships.98 with paylaod ship number 98\r\nreceived message on subject planes.70 with paylaod plane number 70\r\n"] -[2.096466, "o", "received message on subject ships.99 with paylaod ship number 99\r\nreceived message on subject planes.71 with paylaod plane number 71\r\nreceived message on subject planes.72 with paylaod plane number 72\r\nreceived message on subject planes.73 with paylaod plane number 73\r\nreceived message on subject planes.74 with paylaod plane number 74\r\nreceived message on subject planes.75 with paylaod plane number 75\r\nreceived message on subject planes.76 with paylaod plane number 76\r\n"] -[2.09655, "o", "received message on subject planes.77 with paylaod plane number 77\r\nreceived message on subject planes.78 with paylaod plane number 78\r\nreceived message on subject planes.79 with paylaod plane number 79\r\nreceived message on subject planes.80 with paylaod plane number 80\r\nreceived message on subject planes.81 with paylaod plane number 81\r\nreceived message on subject planes.82 with paylaod plane number 82\r\nreceived message on subject planes.83 with paylaod plane number 83\r\nreceived message on subject planes.84 with paylaod plane number 84\r\nreceived message on subject planes.85 with paylaod plane number 85\r\nreceived message on subject planes.86 with paylaod plane number 86\r\n"] -[2.096624, "o", "received message on subject planes.87 with paylaod plane number 87\r\nreceived message on subject planes.88 with paylaod plane number 88\r\nreceived message on subject planes.89 with paylaod plane number 89\r\nreceived message on subject planes.90 with paylaod plane number 90\r\nreceived message on subject planes.91 with paylaod plane number 91\r\nreceived message on subject planes.92 with paylaod plane number 92\r\nreceived message on subject planes.93 with paylaod plane number 93\r\nreceived message on subject planes.94 with paylaod plane number 94"] -[2.096712, "o", "\r\nreceived message on subject planes.95 with paylaod plane number 95\r\nreceived message on subject planes.96 with paylaod plane number 96\r\nreceived message on subject planes.97 with paylaod plane number 97\r\nreceived message on subject planes.98 with paylaod plane number 98\r\nreceived message on subject planes.99 with paylaod plane number 99\r\n"] diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.txt b/examples/messaging/iterating-multiple-subscriptions/rust/output.txt deleted file mode 100644 index 6a201195..00000000 --- a/examples/messaging/iterating-multiple-subscriptions/rust/output.txt +++ /dev/null @@ -1,306 +0,0 @@ -Network 0f2977e4_default Creating -Network 0f2977e4_default Created -Container 0f2977e4-nats-1 Creating -Container 0f2977e4-nats-1 Created -Container 0f2977e4-nats-1 Starting -Container 0f2977e4-nats-1 Started -received message on subject cars.0 with paylaod car number 0 -received message on subject cars.1 with paylaod car number 1 -received message on subject cars.2 with paylaod car number 2 -received message on subject cars.3 with paylaod car number 3 -received message on subject cars.4 with paylaod car number 4 -received message on subject ships.0 with paylaod ship number 0 -received message on subject cars.5 with paylaod car number 5 -received message on subject ships.1 with paylaod ship number 1 -received message on subject cars.6 with paylaod car number 6 -received message on subject ships.2 with paylaod ship number 2 -received message on subject cars.7 with paylaod car number 7 -received message on subject ships.3 with paylaod ship number 3 -received message on subject cars.8 with paylaod car number 8 -received message on subject ships.4 with paylaod ship number 4 -received message on subject cars.9 with paylaod car number 9 -received message on subject ships.5 with paylaod ship number 5 -received message on subject cars.10 with paylaod car number 10 -received message on subject ships.6 with paylaod ship number 6 -received message on subject cars.11 with paylaod car number 11 -received message on subject ships.7 with paylaod ship number 7 -received message on subject cars.12 with paylaod car number 12 -received message on subject cars.13 with paylaod car number 13 -received message on subject cars.14 with paylaod car number 14 -received message on subject cars.15 with paylaod car number 15 -received message on subject cars.16 with paylaod car number 16 -received message on subject cars.17 with paylaod car number 17 -received message on subject cars.18 with paylaod car number 18 -received message on subject cars.19 with paylaod car number 19 -received message on subject cars.20 with paylaod car number 20 -received message on subject cars.21 with paylaod car number 21 -received message on subject cars.22 with paylaod car number 22 -received message on subject cars.23 with paylaod car number 23 -received message on subject cars.24 with paylaod car number 24 -received message on subject cars.25 with paylaod car number 25 -received message on subject cars.26 with paylaod car number 26 -received message on subject cars.27 with paylaod car number 27 -received message on subject cars.28 with paylaod car number 28 -received message on subject cars.29 with paylaod car number 29 -received message on subject cars.30 with paylaod car number 30 -received message on subject cars.31 with paylaod car number 31 -received message on subject cars.32 with paylaod car number 32 -received message on subject cars.33 with paylaod car number 33 -received message on subject cars.34 with paylaod car number 34 -received message on subject cars.35 with paylaod car number 35 -received message on subject cars.36 with paylaod car number 36 -received message on subject cars.37 with paylaod car number 37 -received message on subject cars.38 with paylaod car number 38 -received message on subject cars.39 with paylaod car number 39 -received message on subject cars.40 with paylaod car number 40 -received message on subject cars.41 with paylaod car number 41 -received message on subject cars.42 with paylaod car number 42 -received message on subject cars.43 with paylaod car number 43 -received message on subject cars.44 with paylaod car number 44 -received message on subject cars.45 with paylaod car number 45 -received message on subject cars.46 with paylaod car number 46 -received message on subject cars.47 with paylaod car number 47 -received message on subject cars.48 with paylaod car number 48 -received message on subject cars.49 with paylaod car number 49 -received message on subject cars.50 with paylaod car number 50 -received message on subject cars.51 with paylaod car number 51 -received message on subject cars.52 with paylaod car number 52 -received message on subject cars.53 with paylaod car number 53 -received message on subject cars.54 with paylaod car number 54 -received message on subject cars.55 with paylaod car number 55 -received message on subject cars.56 with paylaod car number 56 -received message on subject cars.57 with paylaod car number 57 -received message on subject cars.58 with paylaod car number 58 -received message on subject cars.59 with paylaod car number 59 -received message on subject cars.60 with paylaod car number 60 -received message on subject cars.61 with paylaod car number 61 -received message on subject cars.62 with paylaod car number 62 -received message on subject cars.63 with paylaod car number 63 -received message on subject cars.64 with paylaod car number 64 -received message on subject cars.65 with paylaod car number 65 -received message on subject cars.66 with paylaod car number 66 -received message on subject cars.67 with paylaod car number 67 -received message on subject cars.68 with paylaod car number 68 -received message on subject cars.69 with paylaod car number 69 -received message on subject cars.70 with paylaod car number 70 -received message on subject cars.71 with paylaod car number 71 -received message on subject cars.72 with paylaod car number 72 -received message on subject cars.73 with paylaod car number 73 -received message on subject cars.74 with paylaod car number 74 -received message on subject cars.75 with paylaod car number 75 -received message on subject cars.76 with paylaod car number 76 -received message on subject cars.77 with paylaod car number 77 -received message on subject cars.78 with paylaod car number 78 -received message on subject cars.79 with paylaod car number 79 -received message on subject cars.80 with paylaod car number 80 -received message on subject cars.81 with paylaod car number 81 -received message on subject cars.82 with paylaod car number 82 -received message on subject cars.83 with paylaod car number 83 -received message on subject cars.84 with paylaod car number 84 -received message on subject cars.85 with paylaod car number 85 -received message on subject cars.86 with paylaod car number 86 -received message on subject cars.87 with paylaod car number 87 -received message on subject cars.88 with paylaod car number 88 -received message on subject cars.89 with paylaod car number 89 -received message on subject cars.90 with paylaod car number 90 -received message on subject cars.91 with paylaod car number 91 -received message on subject cars.92 with paylaod car number 92 -received message on subject cars.93 with paylaod car number 93 -received message on subject cars.94 with paylaod car number 94 -received message on subject cars.95 with paylaod car number 95 -received message on subject cars.96 with paylaod car number 96 -received message on subject cars.97 with paylaod car number 97 -received message on subject cars.98 with paylaod car number 98 -received message on subject cars.99 with paylaod car number 99 -received message on subject ships.8 with paylaod ship number 8 -received message on subject ships.9 with paylaod ship number 9 -received message on subject ships.10 with paylaod ship number 10 -received message on subject ships.11 with paylaod ship number 11 -received message on subject ships.12 with paylaod ship number 12 -received message on subject ships.13 with paylaod ship number 13 -received message on subject ships.14 with paylaod ship number 14 -received message on subject ships.15 with paylaod ship number 15 -received message on subject ships.16 with paylaod ship number 16 -received message on subject ships.17 with paylaod ship number 17 -received message on subject ships.18 with paylaod ship number 18 -received message on subject ships.19 with paylaod ship number 19 -received message on subject ships.20 with paylaod ship number 20 -received message on subject ships.21 with paylaod ship number 21 -received message on subject ships.22 with paylaod ship number 22 -received message on subject ships.23 with paylaod ship number 23 -received message on subject ships.24 with paylaod ship number 24 -received message on subject ships.25 with paylaod ship number 25 -received message on subject ships.26 with paylaod ship number 26 -received message on subject planes.0 with paylaod plane number 0 -received message on subject ships.27 with paylaod ship number 27 -received message on subject ships.28 with paylaod ship number 28 -received message on subject ships.29 with paylaod ship number 29 -received message on subject planes.1 with paylaod plane number 1 -received message on subject ships.30 with paylaod ship number 30 -received message on subject planes.2 with paylaod plane number 2 -received message on subject ships.31 with paylaod ship number 31 -received message on subject planes.3 with paylaod plane number 3 -received message on subject ships.32 with paylaod ship number 32 -received message on subject planes.4 with paylaod plane number 4 -received message on subject ships.33 with paylaod ship number 33 -received message on subject planes.5 with paylaod plane number 5 -received message on subject ships.34 with paylaod ship number 34 -received message on subject planes.6 with paylaod plane number 6 -received message on subject ships.35 with paylaod ship number 35 -received message on subject planes.7 with paylaod plane number 7 -received message on subject ships.36 with paylaod ship number 36 -received message on subject planes.8 with paylaod plane number 8 -received message on subject ships.37 with paylaod ship number 37 -received message on subject planes.9 with paylaod plane number 9 -received message on subject ships.38 with paylaod ship number 38 -received message on subject planes.10 with paylaod plane number 10 -received message on subject ships.39 with paylaod ship number 39 -received message on subject planes.11 with paylaod plane number 11 -received message on subject ships.40 with paylaod ship number 40 -received message on subject planes.12 with paylaod plane number 12 -received message on subject ships.41 with paylaod ship number 41 -received message on subject planes.13 with paylaod plane number 13 -received message on subject ships.42 with paylaod ship number 42 -received message on subject planes.14 with paylaod plane number 14 -received message on subject ships.43 with paylaod ship number 43 -received message on subject planes.15 with paylaod plane number 15 -received message on subject ships.44 with paylaod ship number 44 -received message on subject planes.16 with paylaod plane number 16 -received message on subject ships.45 with paylaod ship number 45 -received message on subject planes.17 with paylaod plane number 17 -received message on subject ships.46 with paylaod ship number 46 -received message on subject planes.18 with paylaod plane number 18 -received message on subject ships.47 with paylaod ship number 47 -received message on subject planes.19 with paylaod plane number 19 -received message on subject ships.48 with paylaod ship number 48 -received message on subject planes.20 with paylaod plane number 20 -received message on subject ships.49 with paylaod ship number 49 -received message on subject planes.21 with paylaod plane number 21 -received message on subject ships.50 with paylaod ship number 50 -received message on subject planes.22 with paylaod plane number 22 -received message on subject ships.51 with paylaod ship number 51 -received message on subject planes.23 with paylaod plane number 23 -received message on subject ships.52 with paylaod ship number 52 -received message on subject planes.24 with paylaod plane number 24 -received message on subject ships.53 with paylaod ship number 53 -received message on subject planes.25 with paylaod plane number 25 -received message on subject ships.54 with paylaod ship number 54 -received message on subject planes.26 with paylaod plane number 26 -received message on subject ships.55 with paylaod ship number 55 -received message on subject planes.27 with paylaod plane number 27 -received message on subject ships.56 with paylaod ship number 56 -received message on subject planes.28 with paylaod plane number 28 -received message on subject ships.57 with paylaod ship number 57 -received message on subject planes.29 with paylaod plane number 29 -received message on subject ships.58 with paylaod ship number 58 -received message on subject planes.30 with paylaod plane number 30 -received message on subject ships.59 with paylaod ship number 59 -received message on subject planes.31 with paylaod plane number 31 -received message on subject ships.60 with paylaod ship number 60 -received message on subject planes.32 with paylaod plane number 32 -received message on subject ships.61 with paylaod ship number 61 -received message on subject planes.33 with paylaod plane number 33 -received message on subject ships.62 with paylaod ship number 62 -received message on subject planes.34 with paylaod plane number 34 -received message on subject ships.63 with paylaod ship number 63 -received message on subject planes.35 with paylaod plane number 35 -received message on subject ships.64 with paylaod ship number 64 -received message on subject planes.36 with paylaod plane number 36 -received message on subject ships.65 with paylaod ship number 65 -received message on subject planes.37 with paylaod plane number 37 -received message on subject ships.66 with paylaod ship number 66 -received message on subject planes.38 with paylaod plane number 38 -received message on subject ships.67 with paylaod ship number 67 -received message on subject planes.39 with paylaod plane number 39 -received message on subject ships.68 with paylaod ship number 68 -received message on subject planes.40 with paylaod plane number 40 -received message on subject ships.69 with paylaod ship number 69 -received message on subject planes.41 with paylaod plane number 41 -received message on subject ships.70 with paylaod ship number 70 -received message on subject planes.42 with paylaod plane number 42 -received message on subject ships.71 with paylaod ship number 71 -received message on subject planes.43 with paylaod plane number 43 -received message on subject ships.72 with paylaod ship number 72 -received message on subject planes.44 with paylaod plane number 44 -received message on subject ships.73 with paylaod ship number 73 -received message on subject planes.45 with paylaod plane number 45 -received message on subject ships.74 with paylaod ship number 74 -received message on subject planes.46 with paylaod plane number 46 -received message on subject ships.75 with paylaod ship number 75 -received message on subject planes.47 with paylaod plane number 47 -received message on subject ships.76 with paylaod ship number 76 -received message on subject planes.48 with paylaod plane number 48 -received message on subject ships.77 with paylaod ship number 77 -received message on subject planes.49 with paylaod plane number 49 -received message on subject ships.78 with paylaod ship number 78 -received message on subject planes.50 with paylaod plane number 50 -received message on subject ships.79 with paylaod ship number 79 -received message on subject planes.51 with paylaod plane number 51 -received message on subject ships.80 with paylaod ship number 80 -received message on subject planes.52 with paylaod plane number 52 -received message on subject ships.81 with paylaod ship number 81 -received message on subject planes.53 with paylaod plane number 53 -received message on subject ships.82 with paylaod ship number 82 -received message on subject planes.54 with paylaod plane number 54 -received message on subject ships.83 with paylaod ship number 83 -received message on subject planes.55 with paylaod plane number 55 -received message on subject ships.84 with paylaod ship number 84 -received message on subject planes.56 with paylaod plane number 56 -received message on subject ships.85 with paylaod ship number 85 -received message on subject planes.57 with paylaod plane number 57 -received message on subject ships.86 with paylaod ship number 86 -received message on subject planes.58 with paylaod plane number 58 -received message on subject ships.87 with paylaod ship number 87 -received message on subject planes.59 with paylaod plane number 59 -received message on subject ships.88 with paylaod ship number 88 -received message on subject planes.60 with paylaod plane number 60 -received message on subject ships.89 with paylaod ship number 89 -received message on subject planes.61 with paylaod plane number 61 -received message on subject ships.90 with paylaod ship number 90 -received message on subject planes.62 with paylaod plane number 62 -received message on subject ships.91 with paylaod ship number 91 -received message on subject planes.63 with paylaod plane number 63 -received message on subject ships.92 with paylaod ship number 92 -received message on subject planes.64 with paylaod plane number 64 -received message on subject ships.93 with paylaod ship number 93 -received message on subject planes.65 with paylaod plane number 65 -received message on subject ships.94 with paylaod ship number 94 -received message on subject planes.66 with paylaod plane number 66 -received message on subject ships.95 with paylaod ship number 95 -received message on subject planes.67 with paylaod plane number 67 -received message on subject ships.96 with paylaod ship number 96 -received message on subject planes.68 with paylaod plane number 68 -received message on subject ships.97 with paylaod ship number 97 -received message on subject planes.69 with paylaod plane number 69 -received message on subject ships.98 with paylaod ship number 98 -received message on subject planes.70 with paylaod plane number 70 -received message on subject ships.99 with paylaod ship number 99 -received message on subject planes.71 with paylaod plane number 71 -received message on subject planes.72 with paylaod plane number 72 -received message on subject planes.73 with paylaod plane number 73 -received message on subject planes.74 with paylaod plane number 74 -received message on subject planes.75 with paylaod plane number 75 -received message on subject planes.76 with paylaod plane number 76 -received message on subject planes.77 with paylaod plane number 77 -received message on subject planes.78 with paylaod plane number 78 -received message on subject planes.79 with paylaod plane number 79 -received message on subject planes.80 with paylaod plane number 80 -received message on subject planes.81 with paylaod plane number 81 -received message on subject planes.82 with paylaod plane number 82 -received message on subject planes.83 with paylaod plane number 83 -received message on subject planes.84 with paylaod plane number 84 -received message on subject planes.85 with paylaod plane number 85 -received message on subject planes.86 with paylaod plane number 86 -received message on subject planes.87 with paylaod plane number 87 -received message on subject planes.88 with paylaod plane number 88 -received message on subject planes.89 with paylaod plane number 89 -received message on subject planes.90 with paylaod plane number 90 -received message on subject planes.91 with paylaod plane number 91 -received message on subject planes.92 with paylaod plane number 92 -received message on subject planes.93 with paylaod plane number 93 -received message on subject planes.94 with paylaod plane number 94 -received message on subject planes.95 with paylaod plane number 95 -received message on subject planes.96 with paylaod plane number 96 -received message on subject planes.97 with paylaod plane number 97 -received message on subject planes.98 with paylaod plane number 98 -received message on subject planes.99 with paylaod plane number 99 diff --git a/examples/messaging/json/rust/output.cast b/examples/messaging/json/rust/output.cast deleted file mode 100644 index 8469faad..00000000 --- a/examples/messaging/json/rust/output.cast +++ /dev/null @@ -1,8 +0,0 @@ -{"version": 2, "width": 102, "height": 26, "timestamp": 1658266568, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/json/rust"} -[0.054928, "o", "Network e5cea0e3_default Creating\r\n"] -[0.08016, "o", "Network e5cea0e3_default Created\r\n"] -[0.080276, "o", "Container e5cea0e3-nats-1 Creating\r\n"] -[0.138586, "o", "Container e5cea0e3-nats-1 Created\r\n"] -[0.139428, "o", "Container e5cea0e3-nats-1 Starting\r\n"] -[0.406429, "o", "Container e5cea0e3-nats-1 Started\r\n"] -[2.758019, "o", "received valid JSON payload: foo=\"bar\" bar=27\r\nreceived invalid JSON payload: b\"not json\"\r\n"] diff --git a/examples/messaging/json/rust/output.txt b/examples/messaging/json/rust/output.txt deleted file mode 100644 index 5e2312a8..00000000 --- a/examples/messaging/json/rust/output.txt +++ /dev/null @@ -1,8 +0,0 @@ -Network e5cea0e3_default Creating -Network e5cea0e3_default Created -Container e5cea0e3-nats-1 Creating -Container e5cea0e3-nats-1 Created -Container e5cea0e3-nats-1 Starting -Container e5cea0e3-nats-1 Started -received valid JSON payload: foo="bar" bar=27 -received invalid JSON payload: b"not json" diff --git a/examples/messaging/pub-sub/cli/output.cast b/examples/messaging/pub-sub/cli/output.cast deleted file mode 100644 index 3c05b62c..00000000 --- a/examples/messaging/pub-sub/cli/output.cast +++ /dev/null @@ -1,17 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146113, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/cli"} -[0.107092, "o", "Network e113dd2b_default Creating\r\n"] -[0.154452, "o", "Network e113dd2b_default Created\r\n"] -[0.154849, "o", "Container e113dd2b-nats-1 Creating\r\n"] -[0.205891, "o", "Container e113dd2b-nats-1 Created\r\n"] -[0.207439, "o", "Container e113dd2b-nats-1 Starting\r\n"] -[0.688089, "o", "Container e113dd2b-nats-1 Started\r\n"] -[1.086354, "o", " _ _ \r\n"] -[1.086549, "o", " _ __ __ _| |_ ___ | |__ _____ __\r\n| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /\r\n| | | | (_| | |_\\__ \\_____| |_) | (_) > < \r\n|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\\r\n \r\n"] -[1.086643, "o", "nats-box v0.12.0\r\n"] -[1.141277, "o", "12:08:34 Published 5 bytes to \"greet.joe\"\r\n"] -[1.194357, "o", "12:08:34 Subscribing on greet.*\r\n"] -[1.697109, "o", "12:08:34 Published 5 bytes to \"greet.joe\"\r\n[#1] Received on \"greet.joe\"\r\nhello\r\n\r\n"] -[1.743123, "o", "[#2] Received on \"greet.pam\"\r\nhello\r\n\r\n"] -[1.743329, "o", "12:08:34 Published 5 bytes to \"greet.pam\"\r\n"] -[1.795211, "o", "[#3] Received on \"greet.bob\"\r\nhello\r\n\r\n12:08:34 Published 5 bytes to \"greet.bob\"\r\n"] -[1.843171, "o", "12:08:35 Published 5 bytes to \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/cli/output.txt b/examples/messaging/pub-sub/cli/output.txt deleted file mode 100644 index 57b568a0..00000000 --- a/examples/messaging/pub-sub/cli/output.txt +++ /dev/null @@ -1,28 +0,0 @@ -Network e113dd2b_default Creating -Network e113dd2b_default Created -Container e113dd2b-nats-1 Creating -Container e113dd2b-nats-1 Created -Container e113dd2b-nats-1 Starting -Container e113dd2b-nats-1 Started - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -12:08:34 Published 5 bytes to "greet.joe" -12:08:34 Subscribing on greet.* -12:08:34 Published 5 bytes to "greet.joe" -[#1] Received on "greet.joe" -hello - -[#2] Received on "greet.pam" -hello - -12:08:34 Published 5 bytes to "greet.pam" -[#3] Received on "greet.bob" -hello - -12:08:34 Published 5 bytes to "greet.bob" -12:08:35 Published 5 bytes to "greet.bob" diff --git a/examples/messaging/pub-sub/deno/output.cast b/examples/messaging/pub-sub/deno/output.cast deleted file mode 100644 index 280ab2b2..00000000 --- a/examples/messaging/pub-sub/deno/output.cast +++ /dev/null @@ -1,9 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146121, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/deno"} -[0.114955, "o", "Network f621f53b_default Creating\r\n"] -[0.166789, "o", "Network f621f53b_default Created\r\n"] -[0.167009, "o", "Container f621f53b-nats-1 Creating\r\n"] -[0.192776, "o", "Container f621f53b-nats-1 Created\r\n"] -[0.194762, "o", "Container f621f53b-nats-1 Starting\r\n"] -[0.687948, "o", "Container f621f53b-nats-1 Started\r\n"] -[1.408384, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\n"] -[1.408598, "o", "hello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/deno/output.txt b/examples/messaging/pub-sub/deno/output.txt deleted file mode 100644 index f423454f..00000000 --- a/examples/messaging/pub-sub/deno/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network f621f53b_default Creating -Network f621f53b_default Created -Container f621f53b-nats-1 Creating -Container f621f53b-nats-1 Created -Container f621f53b-nats-1 Starting -Container f621f53b-nats-1 Started -hello on subject greet.joe -hello on subject greet.pam -hello on subject greet.sue diff --git a/examples/messaging/pub-sub/go/output.cast b/examples/messaging/pub-sub/go/output.cast deleted file mode 100644 index 8c477dbf..00000000 --- a/examples/messaging/pub-sub/go/output.cast +++ /dev/null @@ -1,10 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658147199, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/go"} -[0.115008, "o", "Network 6b32c814_default Creating\r\n"] -[0.167239, "o", "Network 6b32c814_default Created\r\n"] -[0.167484, "o", "Container 6b32c814-nats-1 Creating\r\n"] -[0.21991, "o", "Container 6b32c814-nats-1 Created\r\n"] -[0.221783, "o", "Container 6b32c814-nats-1 Starting\r\n"] -[0.629825, "o", "Container 6b32c814-nats-1 Started\r\n"] -[1.060066, "o", "subscribed after a publish...\r\nmsg is nil? true\r\n"] -[1.060329, "o", "msg data: \"hello\" on subject \"greet.joe\"\r\nmsg data: \"hello\" on subject \"greet.pam\"\r\n"] -[1.060569, "o", "msg data: \"hello\" on subject \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/go/output.txt b/examples/messaging/pub-sub/go/output.txt deleted file mode 100644 index 1830f2e1..00000000 --- a/examples/messaging/pub-sub/go/output.txt +++ /dev/null @@ -1,11 +0,0 @@ -Network 6b32c814_default Creating -Network 6b32c814_default Created -Container 6b32c814-nats-1 Creating -Container 6b32c814-nats-1 Created -Container 6b32c814-nats-1 Starting -Container 6b32c814-nats-1 Started -subscribed after a publish... -msg is nil? true -msg data: "hello" on subject "greet.joe" -msg data: "hello" on subject "greet.pam" -msg data: "hello" on subject "greet.bob" diff --git a/examples/messaging/pub-sub/java/output.cast b/examples/messaging/pub-sub/java/output.cast deleted file mode 100644 index 199d56f1..00000000 --- a/examples/messaging/pub-sub/java/output.cast +++ /dev/null @@ -1,10 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1658865659, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: messaging/pub-sub/java"} -[0.990265, "o", "Network ac43372d_default Creating\r\n"] -[1.032348, "o", "Network ac43372d_default Created\r\n"] -[1.032744, "o", "Container ac43372d-nats-1 Creating\r\n"] -[1.055221, "o", "Container ac43372d-nats-1 Created\r\n"] -[1.056085, "o", "Container ac43372d-nats-1 Starting\r\n"] -[1.382546, "o", "Container ac43372d-nats-1 Started\r\n"] -[1.899468, "o", "hello"] -[1.899652, "o", " on subject greet.bob\r\n"] -[1.900072, "o", "hello on subject greet.sue\r\nhello on subject greet.pam\r\n"] diff --git a/examples/messaging/pub-sub/java/output.txt b/examples/messaging/pub-sub/java/output.txt deleted file mode 100644 index 284ed41b..00000000 --- a/examples/messaging/pub-sub/java/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network ac43372d_default Creating -Network ac43372d_default Created -Container ac43372d-nats-1 Creating -Container ac43372d-nats-1 Created -Container ac43372d-nats-1 Starting -Container ac43372d-nats-1 Started -hello on subject greet.bob -hello on subject greet.sue -hello on subject greet.pam diff --git a/examples/messaging/pub-sub/node/output.cast b/examples/messaging/pub-sub/node/output.cast deleted file mode 100644 index 88762f01..00000000 --- a/examples/messaging/pub-sub/node/output.cast +++ /dev/null @@ -1,9 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1658834278, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: messaging/pub-sub/node"} -[7.5999, "o", "Network 6a820af9_default Creating\r\n"] -[7.646884, "o", "Network 6a820af9_default Created\r\nContainer 6a820af9-nats-1 Creating\r\n"] -[7.67066, "o", "Container 6a820af9-nats-1 Created\r\n"] -[7.671627, "o", "Container 6a820af9-nats-1 Starting\r\n"] -[8.283859, "o", "Container 6a820af9-nats-1 Started\r\n"] -[8.759723, "o", "hello on subject greet.joe\r\n"] -[8.759949, "o", "hello on subject greet.pam\r\n"] -[8.76046, "o", "hello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/node/output.txt b/examples/messaging/pub-sub/node/output.txt deleted file mode 100644 index 76a96c27..00000000 --- a/examples/messaging/pub-sub/node/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network 6a820af9_default Creating -Network 6a820af9_default Created -Container 6a820af9-nats-1 Creating -Container 6a820af9-nats-1 Created -Container 6a820af9-nats-1 Starting -Container 6a820af9-nats-1 Started -hello on subject greet.joe -hello on subject greet.pam -hello on subject greet.sue diff --git a/examples/messaging/pub-sub/python/output.cast b/examples/messaging/pub-sub/python/output.cast deleted file mode 100644 index 993d45d7..00000000 --- a/examples/messaging/pub-sub/python/output.cast +++ /dev/null @@ -1,8 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146128, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/python"} -[0.103946, "o", "Network 4cc20542_default Creating\r\n"] -[0.149841, "o", "Network 4cc20542_default Created\r\n"] -[0.150095, "o", "Container 4cc20542-nats-1 Creating\r\n"] -[0.202558, "o", "Container 4cc20542-nats-1 Created\r\n"] -[0.204232, "o", "Container 4cc20542-nats-1 Starting\r\n"] -[0.608887, "o", "Container 4cc20542-nats-1 Started\r\n"] -[1.302849, "o", "b'hello' on subject greet.joe\r\nb'hello' on subject greet.pam\r\nb'hello' on subject greet.bob\r\n"] diff --git a/examples/messaging/pub-sub/python/output.txt b/examples/messaging/pub-sub/python/output.txt deleted file mode 100644 index ed4ee908..00000000 --- a/examples/messaging/pub-sub/python/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network 4cc20542_default Creating -Network 4cc20542_default Created -Container 4cc20542-nats-1 Creating -Container 4cc20542-nats-1 Created -Container 4cc20542-nats-1 Starting -Container 4cc20542-nats-1 Started -b'hello' on subject greet.joe -b'hello' on subject greet.pam -b'hello' on subject greet.bob diff --git a/examples/messaging/pub-sub/rust/output.cast b/examples/messaging/pub-sub/rust/output.cast deleted file mode 100644 index bbf9b2d1..00000000 --- a/examples/messaging/pub-sub/rust/output.cast +++ /dev/null @@ -1,8 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146225, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/rust"} -[0.106763, "o", "Network 5408da7b_default Creating\r\n"] -[0.159014, "o", "Network 5408da7b_default Created\r\n"] -[0.159217, "o", "Container 5408da7b-nats-1 Creating\r\n"] -[0.239051, "o", "Container 5408da7b-nats-1 Created\r\n"] -[0.240925, "o", "Container 5408da7b-nats-1 Starting\r\n"] -[0.65642, "o", "Container 5408da7b-nats-1 Started\r\n"] -[3.585825, "o", "Ok(\"hello\") received on \"greet.sue\"\r\nOk(\"hello\") received on \"greet.bob\"\r\nOk(\"hello\") received on \"greet.pam\"\r\n"] diff --git a/examples/messaging/pub-sub/rust/output.txt b/examples/messaging/pub-sub/rust/output.txt deleted file mode 100644 index 89d5a577..00000000 --- a/examples/messaging/pub-sub/rust/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network 5408da7b_default Creating -Network 5408da7b_default Created -Container 5408da7b-nats-1 Creating -Container 5408da7b-nats-1 Created -Container 5408da7b-nats-1 Starting -Container 5408da7b-nats-1 Started -Ok("hello") received on "greet.sue" -Ok("hello") received on "greet.bob" -Ok("hello") received on "greet.pam" diff --git a/examples/messaging/request-reply/go/output.cast b/examples/messaging/request-reply/go/output.cast deleted file mode 100644 index e18ed53d..00000000 --- a/examples/messaging/request-reply/go/output.cast +++ /dev/null @@ -1,11 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658147207, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/go"} -[0.104981, "o", "Network f540e0ef_default Creating\r\n"] -[0.152981, "o", "Network f540e0ef_default Created\r\n"] -[0.153333, "o", "Container f540e0ef-nats-1 Creating\r\n"] -[0.179301, "o", "Container f540e0ef-nats-1 Created\r\n"] -[0.181051, "o", "Container f540e0ef-nats-1 Starting\r\n"] -[0.594254, "o", "Container f540e0ef-nats-1 Started\r\n"] -[1.002967, "o", "hello, joe\r\n"] -[1.003253, "o", "hello, sue\r\n"] -[1.003908, "o", "hello, bob\r\n"] -[1.004309, "o", "nats: no responders available for request\r\n"] diff --git a/examples/messaging/request-reply/go/output.txt b/examples/messaging/request-reply/go/output.txt deleted file mode 100644 index 7ee051c0..00000000 --- a/examples/messaging/request-reply/go/output.txt +++ /dev/null @@ -1,10 +0,0 @@ -Network f540e0ef_default Creating -Network f540e0ef_default Created -Container f540e0ef-nats-1 Creating -Container f540e0ef-nats-1 Created -Container f540e0ef-nats-1 Starting -Container f540e0ef-nats-1 Started -hello, joe -hello, sue -hello, bob -nats: no responders available for request diff --git a/examples/messaging/request-reply/python/output.cast b/examples/messaging/request-reply/python/output.cast deleted file mode 100644 index 67aff8a5..00000000 --- a/examples/messaging/request-reply/python/output.cast +++ /dev/null @@ -1,8 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146233, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/python"} -[0.110061, "o", "Network d1f7dc69_default Creating\r\n"] -[0.159651, "o", "Network d1f7dc69_default Created\r\n"] -[0.15989, "o", "Container d1f7dc69-nats-1 Creating\r\n"] -[0.18436, "o", "Container d1f7dc69-nats-1 Created\r\n"] -[0.186231, "o", "Container d1f7dc69-nats-1 Starting\r\n"] -[0.617383, "o", "Container d1f7dc69-nats-1 Started\r\n"] -[1.195277, "o", "b'hello, joe'\r\nb'hello, sue'\r\nb'hello, bob'\r\nno responders\r\n"] diff --git a/examples/messaging/request-reply/python/output.txt b/examples/messaging/request-reply/python/output.txt deleted file mode 100644 index 1dd53b70..00000000 --- a/examples/messaging/request-reply/python/output.txt +++ /dev/null @@ -1,10 +0,0 @@ -Network d1f7dc69_default Creating -Network d1f7dc69_default Created -Container d1f7dc69-nats-1 Creating -Container d1f7dc69-nats-1 Created -Container d1f7dc69-nats-1 Starting -Container d1f7dc69-nats-1 Started -b'hello, joe' -b'hello, sue' -b'hello, bob' -no responders diff --git a/examples/messaging/request-reply/rust/output.cast b/examples/messaging/request-reply/rust/output.cast deleted file mode 100644 index 4c482af4..00000000 --- a/examples/messaging/request-reply/rust/output.cast +++ /dev/null @@ -1,10 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146330, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/rust"} -[0.147344, "o", "Network 00b5d1e6_default Creating\r\n"] -[0.197685, "o", "Network 00b5d1e6_default Created\r\n"] -[0.197916, "o", "Container 00b5d1e6-nats-1 Creating\r\n"] -[0.242596, "o", "Container 00b5d1e6-nats-1 Created\r\n"] -[0.244145, "o", "Container 00b5d1e6-nats-1 Starting\r\n"] -[0.662615, "o", "Container 00b5d1e6-nats-1 Started\r\n"] -[3.505963, "o", "got a response: \"hello, sue\"\r\n"] -[3.606014, "o", "got a response: \"hello, john\"\r\n"] -[3.707199, "o", "got a response: \"hello, bob\"\r\n"] diff --git a/examples/messaging/request-reply/rust/output.txt b/examples/messaging/request-reply/rust/output.txt deleted file mode 100644 index 2e777836..00000000 --- a/examples/messaging/request-reply/rust/output.txt +++ /dev/null @@ -1,9 +0,0 @@ -Network 00b5d1e6_default Creating -Network 00b5d1e6_default Created -Container 00b5d1e6-nats-1 Creating -Container 00b5d1e6-nats-1 Created -Container 00b5d1e6-nats-1 Starting -Container 00b5d1e6-nats-1 Started -got a response: "hello, sue" -got a response: "hello, john" -got a response: "hello, bob" diff --git a/examples/topologies/leafnode-jwt/cli/output.cast b/examples/topologies/leafnode-jwt/cli/output.cast deleted file mode 100644 index 43d26a61..00000000 --- a/examples/topologies/leafnode-jwt/cli/output.cast +++ /dev/null @@ -1,44 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146337, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/leafnode-jwt/cli"} -[0.110884, "o", "Network 65af27f1_default Creating\r\n"] -[0.169801, "o", "Network 65af27f1_default Created\r\n"] -[0.692149, "o", " _ _ \r\n _ __ __ _| |_ ___ | |__ _____ __\r\n| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /\r\n| | | | (_| | |_\\__ \\_____| |_) | (_) > < \r\n|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\\r\n \r\nnats-box v0.12.0\r\n"] -[0.692407, "o", "+ NATS_MAIN_URL=nats://0.0.0.0:4222\r\n+ NATS_LEAF_URL=nats://0.0.0.0:4223\r\n+ nsc add operator --generate-signing-key --sys --name local\r\n"] -[0.711763, "o", "[ OK ] generated and stored operator key \"OBA4MEJE33O7FM2IHCHSPDK362OP3EQ7U54UFM6UB3VIMWBPZMNPUC7N\"\r\n[ OK ] added operator \"local\"\r\n[ OK ] When running your own nats-server, make sure they run at least version 2.2.0\r\n[ OK ] created operator signing key: OBGXY46O6M7D5MPR75SLTK5AWN5P2R34SZFAYWWIEURNDIREIULAD22S\r\n[ OK ] created system_account: name:SYS id:ADMPNQC7QE2LFABYBGEA7AEN37O2T5Z26GQPAVNB4P43RGF3KDAGFYIW\r\n[ OK ] created system account user: name:sys id:UAOJIINY45JT5JLI7FYWRX5HEBBFXVOVOIVTKM5MFH2T2VSAFLH4DJSZ\r\n[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds`\r\n"] -[0.712796, "o", "+ nsc edit operator --require-signing-keys --account-jwt-server-url nats://0.0.0.0:4222\r\n"] -[0.727299, "o", "[ OK ] strict signing key usage set to: true\r\n[ OK ] set account jwt server url to \"nats://0.0.0.0:4222\"\r\n[ OK ] edited operator \"local\"\r\n"] -[0.728007, "o", "+ nsc add account APP\r\n"] -[0.740735, "o", "[ OK ] generated and stored account key \"ADBFUJSUHBMTN67HZJD327RCTLRGIYKSTWAZIUXS5U2H3CDGW5FCG7T7\"\r\n[ OK ] added account \"APP\"\r\n"] -[0.741359, "o", "+ nsc edit account APP --sk generate\r\n"] -[0.754834, "o", "[ OK ] added signing key \"AB65VFZBW4RN34LQCHICB3BTGQ6YVDAC653CAP2S4OIWHEUU7KQ444MI\"\r\n[ OK ] edited account \"APP\"\r\n"] -[0.755604, "o", "+ nsc add user --account APP user\r\n"] -[0.771721, "o", "[ OK ] generated and stored user key \"UDEMHMTMMGCNTKAK5T532WGAMEDHBFF77CPDRSTHYV7ZIDMY2Y6HQN3E\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/user.creds`\r\n[ OK ] added user \"user\" to account \"APP\"\r\n"] -[0.773962, "o", "+ nsc env\r\n"] -[0.781932, "o", "+----------------------------------------------------------------------------------------------------------+\r\n| NSC Environment |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| Setting | Set | Effective Value |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| $NSC_CWD_ONLY | No | If set, default operator/account from cwd only |\r\n| $NSC_NO_GIT_IGNORE | No | If set, no .gitignore files written |\r\n| $NKEYS_PATH | Yes | /nsc/nkeys |\r\n| $NSC_HOME | No | /nsc/.config/nats/nsc |\r\n| $NATS_CA | No | If se"] -[0.782088, "o", "t, root CAs in the referenced file will be used for nats connections |\r\n| | | If not set, will default to the system trust store |\r\n| $NATS_KEY | No | If set, the tls key in the referenced file will be used for nats connections |\r\n| $NATS_CERT | No | If set, the tls cert in the referenced file will be used for nats connections |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| From CWD | | No |\r\n| Default Stores Dir | | /nsc/nats/nsc/stores |\r\n| Current Store Dir | | /nsc/nats/nsc/stores |\r\n| Current Operator | | local |\r\n| Current Account | | APP "] -[0.782166, "o", " |\r\n| Root CAs to trust | | Default: System Trust Store |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n\r\n"] -[0.782984, "o", "+ nats context save main-user --server nats://0.0.0.0:4222 --nsc nsc://local/APP/user\r\n"] -[0.838411, "o", "NATS Configuration Context \"main-user\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/user.creds (OK)\r\n NSC Lookup: nsc://local/APP/user\r\n Path: /nsc/.config/nats/context/main-user.json\r\n\r\n"] -[0.839701, "o", "+ nats context save main-sys --server nats://0.0.0.0:4222 --nsc nsc://local/SYS/sys\r\n"] -[0.893201, "o", "NATS Configuration Context \"main-sys\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Credentials: /nsc/nkeys/creds/local/SYS/sys.creds (OK)\r\n NSC Lookup: nsc://local/SYS/sys\r\n Path: /nsc/.config/nats/context/main-sys.json\r\n\r\n"] -[0.894667, "o", "+ nats context save leaf-user --server nats://0.0.0.0:4223\r\n"] -[0.936941, "o", "NATS Configuration Context \"leaf-user\"\r\n\r\n Server URLs: nats://0.0.0.0:4223\r\n Path: /nsc/.config/nats/context/leaf-user.json\r\n\r\n"] -[0.938079, "o", "+ nsc generate config --nats-resolver --sys-account SYS\r\n"] -[0.947518, "o", "Creating the main server conf...\r\n+ echo 'Creating the main server conf...'\r\n+ cat\r\n"] -[0.948287, "o", "+ echo 'Creating the leaf node conf...'\r\nCreating the leaf node conf...\r\n"] -[0.948498, "o", "+ cat\r\n"] -[0.949172, "o", "+ MAIN_PID=99\r\n+ sleep 1\r\n"] -[0.949291, "o", "+ nats-server -c main.conf\r\n"] -[1.950311, "o", "Pushing the account JWT...\r\n+ echo 'Pushing the account JWT...'\r\n+ nsc push -a APP\r\n"] -[2.972032, "o", "[ OK ] push to nats-server \"nats://0.0.0.0:4222\" using system account \"SYS\":\r\n [ OK ] push APP to nats-server with nats account resolver:\r\n [ OK ] pushed \"APP\" to nats-server NB6YKJ4ZAT3MYWMHMY2UYRSX6DXPUHPOJQOAHPJ4ZW2PN2BHIMS7ID4T: jwt updated\r\n [ OK ] pushed to a total of 1 nats-server\r\n"] -[2.973009, "o", "+ LEAF_PID=115\r\n+ sleep 1\r\n+ "] -[2.973242, "o", "nats-server"] -[2.973404, "o", " -c leaf.conf\r\n"] -[3.97433, "o", "+ SERVICE_PID=125\r\n+ sleep 1\r\n+ nats --context main-user reply greet"] -[3.974407, "o", " hello\r\n"] -[4.045026, "o", "12:12:21 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] -[4.975343, "o", "+ nats --context leaf-user request greet \r\n"] -[5.028638, "o", "12:12:22 Sending request on \"greet\"\r\n"] -[5.029232, "o", "\r\n\r\n12:12:22 [#0] Received on subject \"greet\":\r\n"] -[5.029668, "o", "12:12:22 Received with rtt 861.64µs\r\n"] -[5.029817, "o", "hello\r\n\r\n"] -[5.031228, "o", "+ kill 125\r\n+ kill 115\r\n+ kill 99\r\n"] diff --git a/examples/topologies/leafnode-jwt/cli/output.txt b/examples/topologies/leafnode-jwt/cli/output.txt deleted file mode 100644 index 6186acc0..00000000 --- a/examples/topologies/leafnode-jwt/cli/output.txt +++ /dev/null @@ -1,113 +0,0 @@ -Network 65af27f1_default Creating -Network 65af27f1_default Created - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -+ NATS_MAIN_URL=nats://0.0.0.0:4222 -+ NATS_LEAF_URL=nats://0.0.0.0:4223 -+ nsc add operator --generate-signing-key --sys --name local -[ OK ] generated and stored operator key "OBA4MEJE33O7FM2IHCHSPDK362OP3EQ7U54UFM6UB3VIMWBPZMNPUC7N" -[ OK ] added operator "local" -[ OK ] When running your own nats-server, make sure they run at least version 2.2.0 -[ OK ] created operator signing key: OBGXY46O6M7D5MPR75SLTK5AWN5P2R34SZFAYWWIEURNDIREIULAD22S -[ OK ] created system_account: name:SYS id:ADMPNQC7QE2LFABYBGEA7AEN37O2T5Z26GQPAVNB4P43RGF3KDAGFYIW -[ OK ] created system account user: name:sys id:UAOJIINY45JT5JLI7FYWRX5HEBBFXVOVOIVTKM5MFH2T2VSAFLH4DJSZ -[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds` -+ nsc edit operator --require-signing-keys --account-jwt-server-url nats://0.0.0.0:4222 -[ OK ] strict signing key usage set to: true -[ OK ] set account jwt server url to "nats://0.0.0.0:4222" -[ OK ] edited operator "local" -+ nsc add account APP -[ OK ] generated and stored account key "ADBFUJSUHBMTN67HZJD327RCTLRGIYKSTWAZIUXS5U2H3CDGW5FCG7T7" -[ OK ] added account "APP" -+ nsc edit account APP --sk generate -[ OK ] added signing key "AB65VFZBW4RN34LQCHICB3BTGQ6YVDAC653CAP2S4OIWHEUU7KQ444MI" -[ OK ] edited account "APP" -+ nsc add user --account APP user -[ OK ] generated and stored user key "UDEMHMTMMGCNTKAK5T532WGAMEDHBFF77CPDRSTHYV7ZIDMY2Y6HQN3E" -[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/user.creds` -[ OK ] added user "user" to account "APP" -+ nsc env -+----------------------------------------------------------------------------------------------------------+ -| NSC Environment | -+--------------------+-----+-------------------------------------------------------------------------------+ -| Setting | Set | Effective Value | -+--------------------+-----+-------------------------------------------------------------------------------+ -| $NSC_CWD_ONLY | No | If set, default operator/account from cwd only | -| $NSC_NO_GIT_IGNORE | No | If set, no .gitignore files written | -| $NKEYS_PATH | Yes | /nsc/nkeys | -| $NSC_HOME | No | /nsc/.config/nats/nsc | -| $NATS_CA | No | If set, root CAs in the referenced file will be used for nats connections | -| | | If not set, will default to the system trust store | -| $NATS_KEY | No | If set, the tls key in the referenced file will be used for nats connections | -| $NATS_CERT | No | If set, the tls cert in the referenced file will be used for nats connections | -+--------------------+-----+-------------------------------------------------------------------------------+ -| From CWD | | No | -| Default Stores Dir | | /nsc/nats/nsc/stores | -| Current Store Dir | | /nsc/nats/nsc/stores | -| Current Operator | | local | -| Current Account | | APP | -| Root CAs to trust | | Default: System Trust Store | -+--------------------+-----+-------------------------------------------------------------------------------+ - -+ nats context save main-user --server nats://0.0.0.0:4222 --nsc nsc://local/APP/user -NATS Configuration Context "main-user" - - Server URLs: nats://0.0.0.0:4222 - Credentials: /nsc/nkeys/creds/local/APP/user.creds (OK) - NSC Lookup: nsc://local/APP/user - Path: /nsc/.config/nats/context/main-user.json - -+ nats context save main-sys --server nats://0.0.0.0:4222 --nsc nsc://local/SYS/sys -NATS Configuration Context "main-sys" - - Server URLs: nats://0.0.0.0:4222 - Credentials: /nsc/nkeys/creds/local/SYS/sys.creds (OK) - NSC Lookup: nsc://local/SYS/sys - Path: /nsc/.config/nats/context/main-sys.json - -+ nats context save leaf-user --server nats://0.0.0.0:4223 -NATS Configuration Context "leaf-user" - - Server URLs: nats://0.0.0.0:4223 - Path: /nsc/.config/nats/context/leaf-user.json - -+ nsc generate config --nats-resolver --sys-account SYS -Creating the main server conf... -+ echo 'Creating the main server conf...' -+ cat -+ echo 'Creating the leaf node conf...' -Creating the leaf node conf... -+ cat -+ MAIN_PID=99 -+ sleep 1 -+ nats-server -c main.conf -Pushing the account JWT... -+ echo 'Pushing the account JWT...' -+ nsc push -a APP -[ OK ] push to nats-server "nats://0.0.0.0:4222" using system account "SYS": - [ OK ] push APP to nats-server with nats account resolver: - [ OK ] pushed "APP" to nats-server NB6YKJ4ZAT3MYWMHMY2UYRSX6DXPUHPOJQOAHPJ4ZW2PN2BHIMS7ID4T: jwt updated - [ OK ] pushed to a total of 1 nats-server -+ LEAF_PID=115 -+ sleep 1 -+ nats-server -c leaf.conf -+ SERVICE_PID=125 -+ sleep 1 -+ nats --context main-user reply greet hello -12:12:21 Listening on "greet" in group "NATS-RPLY-22" -+ nats --context leaf-user request greet -12:12:22 Sending request on "greet" - - -12:12:22 [#0] Received on subject "greet": -12:12:22 Received with rtt 861.64µs -hello - -+ kill 125 -+ kill 115 -+ kill 99 diff --git a/examples/topologies/simple-leafnode/cli/output.cast b/examples/topologies/simple-leafnode/cli/output.cast deleted file mode 100644 index 076df92f..00000000 --- a/examples/topologies/simple-leafnode/cli/output.cast +++ /dev/null @@ -1,42 +0,0 @@ -{"version": 2, "width": 86, "height": 24, "timestamp": 1658146344, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/simple-leafnode/cli"} -[0.101651, "o", "Network 048d641d_default Creating\r\n"] -[0.148599, "o", "Network 048d641d_default Created\r\n"] -[0.590294, "o", " _ _ \r\n"] -[0.590571, "o", " _ __ __ _| |_ ___ | |__ _____ __\r\n| '_ \\ / _` | __/ __|_____| '_ \\ / _ \\ \\/ /\r\n| | | | (_| | |_\\__ \\_____| |_) | (_) > < \r\n|_| |_|\\__,_|\\__|___/ |_.__/ \\___/_/\\_\\\r\n \r\nnats-box v0.12.0\r\n"] -[0.591649, "o", "+ NATS_MAIN_URL=nats://0.0.0.0:4222\r\n+ NATS_LEAF_URL=nats://0.0.0.0:4223\r\n+ nats context save main --server nats://0.0.0.0:4222\r\n"] -[0.637566, "o", "NATS Configuration Context \"main\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Path: /nsc/.config/nats/context/main.json\r\n\r\n"] -[0.638766, "o", "+ nats context save leaf --server nats://0.0.0.0:4223\r\n"] -[0.682331, "o", "NATS Configuration Context \"leaf\"\r\n\r\n Server URLs: nats://0.0.0.0:4223\r\n Path: /nsc/.config/nats/context/leaf.json\r\n\r\n"] -[0.68352, "o", "+ echo 'Creating the main server conf...'\r\nCreating the main server conf...\r\n"] -[0.683704, "o", "+ cat\r\n"] -[0.684628, "o", "+ echo 'Creating the leaf node conf...'\r\nCreating the leaf node conf...\r\n"] -[0.684754, "o", "+ cat\r\n"] -[0.685445, "o", "+ MAIN_PID=34\r\n+ sleep 1\r\n"] -[0.685619, "o", "+ nats-server -c main.conf\r\n"] -[1.68688, "o", "+ LEAF_PID=44\r\n+ sleep 1\r\n+ nats-server -c leaf.conf\r\n"] -[2.687856, "o", "+ SERVICE_PID=54\r\n+ sleep 1\r\n"] -[2.688101, "o", "+ nats --context main reply greet 'hello from main'\r\n"] -[2.735961, "o", "12:12:26 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] -[3.688869, "o", "+ nats --context leaf request greet \r\n"] -[3.750624, "o", "12:12:27 Sending request on \"greet\"\r\n"] -[3.751149, "o", "\r\n\r\n12:12:27 [#0] Received on subject \"greet\":\r\n"] -[3.751646, "o", "12:12:27 Received with rtt 732.112µs\r\nhello from main\r\n\r\n"] -[3.753001, "o", "+ SERVICE2_PID=76\r\n+ nats --context leaf request greet \r\n+ nats --context leaf reply greet 'hello from leaf'\r\n"] -[3.816942, "o", "12:12:27 Sending request on \"greet\"\r\n"] -[3.820524, "o", "12:12:27 [#1] Received on subject \"greet\":"] -[3.821213, "o", "\r\n\r\n\r\n"] -[3.821573, "o", "12:12:27 Received with rtt 3.891391ms\r\nhello from main\r\n\r\n"] -[3.821839, "o", "12:12:27 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] -[3.822777, "o", "+ nats --context leaf request greet \r\n"] -[3.878876, "o", "12:12:28 Sending request on \"greet\"\r\n"] -[3.879312, "o", "12:12:28 [#0] Received on subject \"greet\":\r\n\r\n\r\n"] -[3.879813, "o", "12:12:28 Received with rtt 591.02µs\r\nhello from leaf\r\n\r\n"] -[3.881395, "o", "+ nats --context leaf request greet \r\n"] -[3.929019, "o", "12:12:28 Sending request on \"greet\"\r\n"] -[3.9294, "o", "\r\n\r\n12:12:28 [#1] Received on subject \"greet\":\r\n"] -[3.929636, "o", "12:12:28 Received with rtt 492.585µs\r\nhello from leaf\r\n\r\n"] -[3.931055, "o", "+ kill 76\r\n+ nats --context leaf request greet \r\n"] -[3.977309, "o", "12:12:28 Sending request on \"greet\"\r\n"] -[3.977824, "o", "\r\n\r\n12:12:28 [#2] Received on subject \"greet\":\r\n"] -[3.978301, "o", "12:12:28 Received with rtt 631.337µs\r\nhello from main\r\n\r\n"] -[3.979401, "o", "+ kill 54\r\n+ kill 44\r\n+ kill 34\r\n"] diff --git a/examples/topologies/simple-leafnode/cli/output.txt b/examples/topologies/simple-leafnode/cli/output.txt deleted file mode 100644 index e890432b..00000000 --- a/examples/topologies/simple-leafnode/cli/output.txt +++ /dev/null @@ -1,86 +0,0 @@ -Network 048d641d_default Creating -Network 048d641d_default Created - _ _ - _ __ __ _| |_ ___ | |__ _____ __ -| '_ \ / _` | __/ __|_____| '_ \ / _ \ \/ / -| | | | (_| | |_\__ \_____| |_) | (_) > < -|_| |_|\__,_|\__|___/ |_.__/ \___/_/\_\ - -nats-box v0.12.0 -+ NATS_MAIN_URL=nats://0.0.0.0:4222 -+ NATS_LEAF_URL=nats://0.0.0.0:4223 -+ nats context save main --server nats://0.0.0.0:4222 -NATS Configuration Context "main" - - Server URLs: nats://0.0.0.0:4222 - Path: /nsc/.config/nats/context/main.json - -+ nats context save leaf --server nats://0.0.0.0:4223 -NATS Configuration Context "leaf" - - Server URLs: nats://0.0.0.0:4223 - Path: /nsc/.config/nats/context/leaf.json - -+ echo 'Creating the main server conf...' -Creating the main server conf... -+ cat -+ echo 'Creating the leaf node conf...' -Creating the leaf node conf... -+ cat -+ MAIN_PID=34 -+ sleep 1 -+ nats-server -c main.conf -+ LEAF_PID=44 -+ sleep 1 -+ nats-server -c leaf.conf -+ SERVICE_PID=54 -+ sleep 1 -+ nats --context main reply greet 'hello from main' -12:12:26 Listening on "greet" in group "NATS-RPLY-22" -+ nats --context leaf request greet -12:12:27 Sending request on "greet" - - -12:12:27 [#0] Received on subject "greet": -12:12:27 Received with rtt 732.112µs -hello from main - -+ SERVICE2_PID=76 -+ nats --context leaf request greet -+ nats --context leaf reply greet 'hello from leaf' -12:12:27 Sending request on "greet" -12:12:27 [#1] Received on subject "greet": - - -12:12:27 Received with rtt 3.891391ms -hello from main - -12:12:27 Listening on "greet" in group "NATS-RPLY-22" -+ nats --context leaf request greet -12:12:28 Sending request on "greet" -12:12:28 [#0] Received on subject "greet": - - -12:12:28 Received with rtt 591.02µs -hello from leaf - -+ nats --context leaf request greet -12:12:28 Sending request on "greet" - - -12:12:28 [#1] Received on subject "greet": -12:12:28 Received with rtt 492.585µs -hello from leaf - -+ kill 76 -+ nats --context leaf request greet -12:12:28 Sending request on "greet" - - -12:12:28 [#2] Received on subject "greet": -12:12:28 Received with rtt 631.337µs -hello from main - -+ kill 54 -+ kill 44 -+ kill 34 diff --git a/examples/topologies/supercluster-arbiter/cli/output.cast b/examples/topologies/supercluster-arbiter/cli/output.cast deleted file mode 100644 index d2dbc328..00000000 --- a/examples/topologies/supercluster-arbiter/cli/output.cast +++ /dev/null @@ -1,20 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1664228206, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: topologies/supercluster-arbiter/cli"} -[0.518148, "o", "Network 3b88712f_default Creating\r\n"] -[0.561759, "o", "Network 3b88712f_default Created\r\n"] -[0.853144, "o", "Starting the servers...\r\n"] -[4.218908, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Server Overview │\r\n├──────────┬────────────┬───────────┬─────────┬─────┬───────┬──────┬────────┬─────┬────────┬─────┬──────┬────────┬─────┤\r\n│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │\r\n├──────"] -[4.219336, "o", "────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤\r\n│ east-az1 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 1 │ 145 │ 2 │ 2 │ 16 MiB │ 2.0 │ 0 │ 3.04s │ 2ms │\r\n│ east-az2 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 145 │ 2 │ 2 │ 14 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │\r\n│ east-az3 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 145 │ 2 │ 2 │ 11 MiB │ 1.0 │ 0 │ 3.04s │ 2ms │\r\n│ arbiter │ arbiter │ 0.0.0.0 │ 2.9.0 │ no │ 0 │ 44 │ 0 │ 2 │ 12 MiB │ 1.0 │ 0 │ 3.05s │ 2ms │\r\n│ west-az1 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ "] -[4.219369, "o", "153 │ 2 │ 2 │ 14 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │\r\n│ west-az2 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 153 │ 2 │ 2 │ 13 MiB │ 1.0 │ 0 │ 3.05s │ 2ms │\r\n│ west-az3 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 153 │ 2 │ 2 │ 13 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │\r\n├──────────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤\r\n│ │ 3 Clusters │ 7 Servers │ │ 6 │ 1 │ 938 │ │ │ 93 MiB │ │ 0 │ │ │\r\n╰──────────┴────────────┴───────────┴──────"] -[4.2194, "o", "───┴─────┴───────┴──────┴────────┴─────┴────────┴─────┴──────┴────────┴─────╯\r\n\r\n╭────────────────────────────────────────────────────────────────────────────╮\r\n│ Cluster Overview │\r\n├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤\r\n│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │\r\n├─────────┼────────────┼───────────────────┼───"] -[4.219419, "o", "────────────────┼─────────────┤\r\n│ arbiter │ 1 │ 2 │ 6 │ 0 │\r\n│ west │ 3 │ 6 │ 4 │ 0 │\r\n│ east │ 3 │ 6 │ 4 │ 1 │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ │ 7 │ 14 │ 14 │ 1 │\r\n╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯\r\n"] -[4.578902, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ JetStream Summary │\r\n├───────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤\r\n│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │\r\n├───────────┼─────────┼─────────┼───────────┼──────────┼───────"] -[4.578953, "o", "┼────────┼──────┼─────────┼─────────┤\r\n│ arbiter │ arbiter │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ east-az1 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ east-az3 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ east-az2 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ west-az3 │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ west-az1 │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ west-az2* │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n├───────────┼─"] -[4.578965, "o", "────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤\r\n│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n╰───────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯\r\n\r\n╭─────────────────────────────────────────────────────╮\r\n│ RAFT Meta Group Information │\r\n├──────────┬────────┬─────────┬─────"] -[4.578979, "o", "───┬────────┬─────┤\r\n│ Name │ Leader │ Current │ Online │ Active │ Lag │\r\n├──────────┼────────┼─────────┼────────┼────────┼─────┤\r\n│ east-az1 │ │ true │ true │ 0.99s │ 0 │\r\n│ east-az2 │ │ true │ true │ 0.99s │ 0 │\r\n│ east-az3 │ │ true │ true │ 0.99s │ 0 │\r\n│ west-az1 │ │ true │ true │ 0.99s │ 0 │\r\n│ west-az2 │ yes │ true │ true │ 0.00s │ 0 │\r\n│ west-az3 │ │ true │ true │ 0.99s │ 0 │\r\n╰──────────┴────────┴─────────┴────────┴────────┴─────╯\r\n"] -[4.629113, "o", "Server information for west-az1 (NAQAJGQPFTTHDSEIGMGHR2MINRGDNXKWVZHZRTMIJUZLQQH4JFGY4PS4)\r\n\r\nProcess Details:\r\n\r\n Version: 2.9.0\r\n Git Commit: 517d9b3\r\n Go Version: go1.19.1\r\n Start Time: 2022-09-26 21:36:47.066513568 +0000 UTC\r\n Uptime: 3s\r\n\r\nConnection Details:\r\n\r\n Auth Required: true\r\n TLS Required: false\r\n Host: 0.0.0.0:4225\r\n Client URLs: 172.18.0.2:4225\r\n 172.18.0.2:4226\r\n 172.18.0.2:4227\r\n\r\nJetStream:\r\n\r\n Domain: \r\n Storage Directory: /tmp/nats/jetstream\r\n Max Memory: 5.1 GiB\r\n Max File: 23 GiB\r\n Active Acconts: 1\r\n Memory In Use: 0 B\r\n File In Use: 0 B\r\n API Requests: 0\r\n API Errors: 0\r\n\r\nLimits:\r\n\r\n Max Conn: 65536\r\n Max Subs: 0\r\n Max Payload: 1.0 MiB\r\n TLS Timeout: 2s\r\n Write Deadline: 10s\r\n\r\nStatistics:\r\n\r\n CPU Cores: 2 0.00%\r\n Memory: 14 MiB\r\n Connections: 0\r\n Subscriptions: 153\r\n Msgs: 95"] -[4.62916, "o", " in 101 out\r\n Bytes: 55 KiB in 57 KiB out\r\n Slow Consumers: 0\r\n\r\nCluster:\r\n\r\n Name: west\r\n Tags: az:1\r\n Host: 0.0.0.0:6225\r\n URLs: 127.0.0.1:6225\r\n 127.0.0.1:6226\r\n 127.0.0.1:6227\r\n\r\n"] -[4.971694, "o", "Stream ORDERS was created\r\n\r\nInformation for Stream ORDERS created 2022-09-26T21:36:50Z\r\n\r\nConfiguration:\r\n\r\n Subjects: orders.*\r\n Acknowledgements: true\r\n Retention: File - Limits\r\n Replicas: 3\r\n Discard Policy: Old\r\n"] -[4.971889, "o", " Duplicate Window: 2m0s\r\n Allows Msg Delete: true\r\n Allows Purge: true\r\n Allows Rollups: true\r\n Maximum Messages: unlimited\r\n Maximum Bytes: unlimited\r\n Maximum Age: unlimited\r\n Maximum Message Size: unlimited\r\n Maximum Consumers: unlimited\r\n Placement Cluster: west\r\n\r\n\r\nCluster Information:\r\n\r\n Name: west\r\n Leader: west-az3\r\n Replica: west-az1, current, seen 0.00s ago\r\n Replica: west-az2, current, seen 0.00s ago\r\n\r\nState:\r\n\r\n Messages: 0\r\n Bytes: 0 B\r\n FirstSeq: 0\r\n LastSeq: 0\r\n Active Consumers: 0\r\n"] -[5.016002, "o", "Obtaining Stream stats\r\n\r\n"] -[5.024397, "o", "╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Stream Report │\r\n├────────┬─────────┬────────────────┬───────────┬──────────┬───────┬──────┬─────────┬───────────────────────────────┤\r\n│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │\r\n├────────┼────────"] -[5.024429, "o", "─┼────────────────┼───────────┼──────────┼───────┼──────┼─────────┼───────────────────────────────┤\r\n│ ORDERS │ File │ cluster: west │ 0 │ 0 │ 0 B │ 0 │ 0 │ west-az1, west-az2, west-az3* │\r\n╰────────┴─────────┴────────────────┴───────────┴──────────┴───────┴──────┴─────────┴───────────────────────────────╯\r\n\r\n"] diff --git a/examples/topologies/supercluster-arbiter/cli/output.txt b/examples/topologies/supercluster-arbiter/cli/output.txt deleted file mode 100644 index 258f25df..00000000 --- a/examples/topologies/supercluster-arbiter/cli/output.txt +++ /dev/null @@ -1,163 +0,0 @@ -Network 3b88712f_default Creating -Network 3b88712f_default Created -Starting the servers... -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Server Overview │ -├──────────┬────────────┬───────────┬─────────┬─────┬───────┬──────┬────────┬─────┬────────┬─────┬──────┬────────┬─────┤ -│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │ -├──────────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤ -│ east-az1 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 1 │ 145 │ 2 │ 2 │ 16 MiB │ 2.0 │ 0 │ 3.04s │ 2ms │ -│ east-az2 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 145 │ 2 │ 2 │ 14 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │ -│ east-az3 │ east │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 145 │ 2 │ 2 │ 11 MiB │ 1.0 │ 0 │ 3.04s │ 2ms │ -│ arbiter │ arbiter │ 0.0.0.0 │ 2.9.0 │ no │ 0 │ 44 │ 0 │ 2 │ 12 MiB │ 1.0 │ 0 │ 3.05s │ 2ms │ -│ west-az1 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 153 │ 2 │ 2 │ 14 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │ -│ west-az2 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 153 │ 2 │ 2 │ 13 MiB │ 1.0 │ 0 │ 3.05s │ 2ms │ -│ west-az3 │ west │ 0.0.0.0 │ 2.9.0 │ yes │ 0 │ 153 │ 2 │ 2 │ 13 MiB │ 0.0 │ 0 │ 3.05s │ 2ms │ -├──────────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤ -│ │ 3 Clusters │ 7 Servers │ │ 6 │ 1 │ 938 │ │ │ 93 MiB │ │ 0 │ │ │ -╰──────────┴────────────┴───────────┴─────────┴─────┴───────┴──────┴────────┴─────┴────────┴─────┴──────┴────────┴─────╯ - -╭────────────────────────────────────────────────────────────────────────────╮ -│ Cluster Overview │ -├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤ -│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ arbiter │ 1 │ 2 │ 6 │ 0 │ -│ west │ 3 │ 6 │ 4 │ 0 │ -│ east │ 3 │ 6 │ 4 │ 1 │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ │ 7 │ 14 │ 14 │ 1 │ -╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯ -╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ JetStream Summary │ -├───────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤ -│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │ -├───────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ arbiter │ arbiter │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ east-az1 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ east-az3 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ east-az2 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ west-az3 │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ west-az1 │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ west-az2* │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -├───────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -╰───────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯ - -╭─────────────────────────────────────────────────────╮ -│ RAFT Meta Group Information │ -├──────────┬────────┬─────────┬────────┬────────┬─────┤ -│ Name │ Leader │ Current │ Online │ Active │ Lag │ -├──────────┼────────┼─────────┼────────┼────────┼─────┤ -│ east-az1 │ │ true │ true │ 0.99s │ 0 │ -│ east-az2 │ │ true │ true │ 0.99s │ 0 │ -│ east-az3 │ │ true │ true │ 0.99s │ 0 │ -│ west-az1 │ │ true │ true │ 0.99s │ 0 │ -│ west-az2 │ yes │ true │ true │ 0.00s │ 0 │ -│ west-az3 │ │ true │ true │ 0.99s │ 0 │ -╰──────────┴────────┴─────────┴────────┴────────┴─────╯ -Server information for west-az1 (NAQAJGQPFTTHDSEIGMGHR2MINRGDNXKWVZHZRTMIJUZLQQH4JFGY4PS4) - -Process Details: - - Version: 2.9.0 - Git Commit: 517d9b3 - Go Version: go1.19.1 - Start Time: 2022-09-26 21:36:47.066513568 +0000 UTC - Uptime: 3s - -Connection Details: - - Auth Required: true - TLS Required: false - Host: 0.0.0.0:4225 - Client URLs: 172.18.0.2:4225 - 172.18.0.2:4226 - 172.18.0.2:4227 - -JetStream: - - Domain: - Storage Directory: /tmp/nats/jetstream - Max Memory: 5.1 GiB - Max File: 23 GiB - Active Acconts: 1 - Memory In Use: 0 B - File In Use: 0 B - API Requests: 0 - API Errors: 0 - -Limits: - - Max Conn: 65536 - Max Subs: 0 - Max Payload: 1.0 MiB - TLS Timeout: 2s - Write Deadline: 10s - -Statistics: - - CPU Cores: 2 0.00% - Memory: 14 MiB - Connections: 0 - Subscriptions: 153 - Msgs: 95 in 101 out - Bytes: 55 KiB in 57 KiB out - Slow Consumers: 0 - -Cluster: - - Name: west - Tags: az:1 - Host: 0.0.0.0:6225 - URLs: 127.0.0.1:6225 - 127.0.0.1:6226 - 127.0.0.1:6227 - -Stream ORDERS was created - -Information for Stream ORDERS created 2022-09-26T21:36:50Z - -Configuration: - - Subjects: orders.* - Acknowledgements: true - Retention: File - Limits - Replicas: 3 - Discard Policy: Old - Duplicate Window: 2m0s - Allows Msg Delete: true - Allows Purge: true - Allows Rollups: true - Maximum Messages: unlimited - Maximum Bytes: unlimited - Maximum Age: unlimited - Maximum Message Size: unlimited - Maximum Consumers: unlimited - Placement Cluster: west - - -Cluster Information: - - Name: west - Leader: west-az3 - Replica: west-az1, current, seen 0.00s ago - Replica: west-az2, current, seen 0.00s ago - -State: - - Messages: 0 - Bytes: 0 B - FirstSeq: 0 - LastSeq: 0 - Active Consumers: 0 -Obtaining Stream stats - -╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Stream Report │ -├────────┬─────────┬────────────────┬───────────┬──────────┬───────┬──────┬─────────┬───────────────────────────────┤ -│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ -├────────┼─────────┼────────────────┼───────────┼──────────┼───────┼──────┼─────────┼───────────────────────────────┤ -│ ORDERS │ File │ cluster: west │ 0 │ 0 │ 0 B │ 0 │ 0 │ west-az1, west-az2, west-az3* │ -╰────────┴─────────┴────────────────┴───────────┴──────────┴───────┴──────┴─────────┴───────────────────────────────╯ - diff --git a/examples/topologies/supercluster-jetstream/cli/output.cast b/examples/topologies/supercluster-jetstream/cli/output.cast deleted file mode 100644 index 78bdd42a..00000000 --- a/examples/topologies/supercluster-jetstream/cli/output.cast +++ /dev/null @@ -1,18 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1664227950, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: topologies/supercluster-jetstream/cli"} -[1.372952, "o", "Network 0b6946a7_default Creating\r\n"] -[1.429178, "o", "Network 0b6946a7_default Created\r\n"] -[5.31404, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Server Overview │\r\n├──────┬────────────┬───────────┬─────────┬─────┬───────┬──────┬────────┬─────┬────────┬─────┬──────┬────────┬─────┤\r\n│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │\r\n├──────┼──────────"] -[5.314152, "o", "──┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤\r\n│ n1 │ east │ 0.0.0.0 │ 2.9.1 │ yes │ 1 │ 51 │ 0 │ 2 │ 12 MiB │ 1.0 │ 0 │ 3.22s │ 2ms │\r\n│ n2 │ central │ 0.0.0.0 │ 2.9.1 │ yes │ 0 │ 50 │ 0 │ 2 │ 11 MiB │ 0.0 │ 0 │ 3.21s │ 2ms │\r\n│ n3 │ west │ 0.0.0.0 │ 2.9.1 │ yes │ 0 │ 59 │ 0 │ 2 │ 10 MiB │ 1.0 │ 0 │ 3.22s │ 2ms │\r\n├──────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼"] -[5.314265, "o", "──────┼────────┼─────┤\r\n│ │ 3 Clusters │ 3 Servers │ │ 3 │ 1 │ 160 │ │ │ 33 MiB │ │ 0 │ │ │\r\n╰──────┴────────────┴───────────┴─────────┴─────┴───────┴──────┴────────┴─────┴────────┴─────┴──────┴────────┴─────╯\r\n\r\n╭────────────────────────────────────────────────────────────────────────────╮\r\n│ Cluster Overview │\r\n├─────────┬────────────┬───────────────────┬──"] -[5.314333, "o", "─────────────────┬─────────────┤\r\n│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ central │ 1 │ 2 │ 2 │ 0 │\r\n│ west │ 1 │ 2 │ 2 │ 0 │\r\n│ east │ 1 │ 2 │ 2 │ 1 │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ │ 3 │ 6 │ 6 │ 1 "] -[5.314382, "o", " │\r\n╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯\r\n"] -[5.680639, "o", "╭───────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ JetStream Summary │\r\n├────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤\r\n│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │\r\n├────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼─"] -[5.680713, "o", "─────┼─────────┼─────────┤\r\n│ n2 │ central │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ n1 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ n3* │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n├────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤\r\n│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n╰────────┴─────────┴─────────┴───────────┴──────────┴───"] -[5.680737, "o", "────┴────────┴──────┴─────────┴─────────╯\r\n\r\n╭─────────────────────────────────────────────────╮\r\n│ RAFT Meta Group Information │\r\n├──────┬────────┬─────────┬────────┬────────┬─────┤\r\n│ Name │ Leader │ Current │ Online │ Active │ Lag │\r\n├──────┼────────┼─────────┼────────┼────────┼─────┤\r\n│ n1 │ │ true │ true │ 0.57s │ 0 │\r\n│ n2 │ │ true │ true │ 0.57s │ 0 │\r\n│ n3 │ yes │ true │ true │ 0.00s │ 0 │\r\n╰──────┴────────┴─────────┴────────"] -[5.680755, "o", "┴────────┴─────╯\r\n"] -[5.737705, "o", "21:32:35 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] -[6.746214, "o", "21:32:36 Sending request on \"greet\""] -[6.746554, "o", "\r\n"] -[6.748426, "o", "21:32:36 [#0] Received on subject \"greet\":\r\n"] -[6.749106, "o", "\r\n\r\n"] -[6.74978, "o", "hello from east\r\n\r\n21:32:36 Received with rtt 1.642649ms\r\n"] diff --git a/examples/topologies/supercluster-jetstream/cli/output.txt b/examples/topologies/supercluster-jetstream/cli/output.txt deleted file mode 100644 index 0ba42a4f..00000000 --- a/examples/topologies/supercluster-jetstream/cli/output.txt +++ /dev/null @@ -1,54 +0,0 @@ -Network 0b6946a7_default Creating -Network 0b6946a7_default Created -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Server Overview │ -├──────┬────────────┬───────────┬─────────┬─────┬───────┬──────┬────────┬─────┬────────┬─────┬──────┬────────┬─────┤ -│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │ -├──────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤ -│ n1 │ east │ 0.0.0.0 │ 2.9.1 │ yes │ 1 │ 51 │ 0 │ 2 │ 12 MiB │ 1.0 │ 0 │ 3.22s │ 2ms │ -│ n2 │ central │ 0.0.0.0 │ 2.9.1 │ yes │ 0 │ 50 │ 0 │ 2 │ 11 MiB │ 0.0 │ 0 │ 3.21s │ 2ms │ -│ n3 │ west │ 0.0.0.0 │ 2.9.1 │ yes │ 0 │ 59 │ 0 │ 2 │ 10 MiB │ 1.0 │ 0 │ 3.22s │ 2ms │ -├──────┼────────────┼───────────┼─────────┼─────┼───────┼──────┼────────┼─────┼────────┼─────┼──────┼────────┼─────┤ -│ │ 3 Clusters │ 3 Servers │ │ 3 │ 1 │ 160 │ │ │ 33 MiB │ │ 0 │ │ │ -╰──────┴────────────┴───────────┴─────────┴─────┴───────┴──────┴────────┴─────┴────────┴─────┴──────┴────────┴─────╯ - -╭────────────────────────────────────────────────────────────────────────────╮ -│ Cluster Overview │ -├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤ -│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ central │ 1 │ 2 │ 2 │ 0 │ -│ west │ 1 │ 2 │ 2 │ 0 │ -│ east │ 1 │ 2 │ 2 │ 1 │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ │ 3 │ 6 │ 6 │ 1 │ -╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯ -╭───────────────────────────────────────────────────────────────────────────────────────────────╮ -│ JetStream Summary │ -├────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤ -│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │ -├────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ n2 │ central │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ n1 │ east │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ n3* │ west │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -├────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -╰────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯ - -╭─────────────────────────────────────────────────╮ -│ RAFT Meta Group Information │ -├──────┬────────┬─────────┬────────┬────────┬─────┤ -│ Name │ Leader │ Current │ Online │ Active │ Lag │ -├──────┼────────┼─────────┼────────┼────────┼─────┤ -│ n1 │ │ true │ true │ 0.57s │ 0 │ -│ n2 │ │ true │ true │ 0.57s │ 0 │ -│ n3 │ yes │ true │ true │ 0.00s │ 0 │ -╰──────┴────────┴─────────┴────────┴────────┴─────╯ -21:32:35 Listening on "greet" in group "NATS-RPLY-22" -21:32:36 Sending request on "greet" -21:32:36 [#0] Received on subject "greet": - - -hello from east - -21:32:36 Received with rtt 1.642649ms diff --git a/examples/topologies/supercluster/cli/output.cast b/examples/topologies/supercluster/cli/output.cast deleted file mode 100644 index 0949ba6f..00000000 --- a/examples/topologies/supercluster/cli/output.cast +++ /dev/null @@ -1,15 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1664227940, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: topologies/supercluster/cli"} -[1.592518, "o", "Network 4a184720_default Creating\r\n"] -[1.644638, "o", "Network 4a184720_default Created\r\n"] -[5.555724, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Server Overview │\r\n├──────┬────────────┬───────────┬─────────┬────┬───────┬──────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤\r\n│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │\r\n├──────┼──────────"] -[5.555945, "o", "──┼───────────┼─────────┼────┼───────┼──────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ n1 │ east │ 0.0.0.0 │ 2.9.1 │ no │ 1 │ 45 │ 0 │ 1 │ 11 MiB │ 0.0 │ 0 │ 3.23s │ 2ms │\r\n│ n2 │ west │ 0.0.0.0 │ 2.9.1 │ no │ 0 │ 44 │ 0 │ 1 │ 9.2 MiB │ 0.0 │ 0 │ 3.23s │ 2ms │\r\n├──────┼────────────┼───────────┼─────────┼────┼───────┼──────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ │ 2 Clusters │ 2 Servers │ │ 0 │ 1 │ 89 │ "] -[5.556024, "o", " │ │ 20 MiB │ │ 0 │ │ │\r\n╰──────┴────────────┴───────────┴─────────┴────┴───────┴──────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯\r\n\r\n"] -[5.55692, "o", "╭────────────────────────────────────────────────────────────────────────────╮\r\n│ Cluster Overview │\r\n├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤\r\n│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ west │ 1 │ 1 │ 1 │ 0 │\r\n│ east │ 1 │ 1 "] -[5.557068, "o", " │ 1 │ 1 │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ │ 2 │ 2 │ 2 │ 1 │\r\n╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯\r\n"] -[5.616236, "o", "21:32:25 Listening on \"greet\" in group \"NATS-RPLY-22\""] -[5.616486, "o", "\r\n"] -[6.619124, "o", "21:32:26 Sending request on \"greet\"\r\n"] -[6.621002, "o", "21:32:26 [#0] Received on subject \"greet\":\r\n"] -[6.621353, "o", "\r\n"] -[6.621821, "o", "\r\n"] -[6.622817, "o", "21:32:26 Received with rtt 2.624434ms\r\nhello from east\r\n\r\n"] diff --git a/examples/topologies/supercluster/cli/output.txt b/examples/topologies/supercluster/cli/output.txt deleted file mode 100644 index e0e05f50..00000000 --- a/examples/topologies/supercluster/cli/output.txt +++ /dev/null @@ -1,31 +0,0 @@ -Network 4a184720_default Creating -Network 4a184720_default Created -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Server Overview │ -├──────┬────────────┬───────────┬─────────┬────┬───────┬──────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤ -│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │ -├──────┼────────────┼───────────┼─────────┼────┼───────┼──────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ n1 │ east │ 0.0.0.0 │ 2.9.1 │ no │ 1 │ 45 │ 0 │ 1 │ 11 MiB │ 0.0 │ 0 │ 3.23s │ 2ms │ -│ n2 │ west │ 0.0.0.0 │ 2.9.1 │ no │ 0 │ 44 │ 0 │ 1 │ 9.2 MiB │ 0.0 │ 0 │ 3.23s │ 2ms │ -├──────┼────────────┼───────────┼─────────┼────┼───────┼──────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ │ 2 Clusters │ 2 Servers │ │ 0 │ 1 │ 89 │ │ │ 20 MiB │ │ 0 │ │ │ -╰──────┴────────────┴───────────┴─────────┴────┴───────┴──────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯ - -╭────────────────────────────────────────────────────────────────────────────╮ -│ Cluster Overview │ -├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤ -│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ west │ 1 │ 1 │ 1 │ 0 │ -│ east │ 1 │ 1 │ 1 │ 1 │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ │ 2 │ 2 │ 2 │ 1 │ -╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯ -21:32:25 Listening on "greet" in group "NATS-RPLY-22" -21:32:26 Sending request on "greet" -21:32:26 [#0] Received on subject "greet": - - -21:32:26 Received with rtt 2.624434ms -hello from east - diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.cast b/examples/use-cases/cross-region-streams-cluster/cli/output.cast deleted file mode 100644 index 6239f059..00000000 --- a/examples/use-cases/cross-region-streams-cluster/cli/output.cast +++ /dev/null @@ -1,35 +0,0 @@ -{"version": 2, "width": 0, "height": 0, "timestamp": 1661594357, "env": {"SHELL": null, "TERM": null}, "title": "NATS by Example: use-cases/cross-region-streams-cluster/cli"} -[1.279963, "o", "Network 1d3d8cca_default Creating\r\n"] -[1.337994, "o", "Network 1d3d8cca_default Created\r\n"] -[1.779198, "o", "Starting server rg1-az1"] -[1.77963, "o", "\r\n"] -[2.779846, "o", "Starting server rg1-az2"] -[2.780285, "o", "\r\n"] -[3.782091, "o", "Starting server rg1-az3\r\n"] -[4.783689, "o", "Starting server rg2-az1\r\n"] -[5.784443, "o", "Starting server rg2-az2\r\n"] -[6.786422, "o", "Starting server rg2-az3\r\n"] -[7.788553, "o", "Starting server rg3-az1\r\n"] -[8.790949, "o", "Starting server rg3-az2"] -[8.791458, "o", "\r\n"] -[9.792495, "o", "Starting server rg3-az3\r\n"] -[10.797682, "o", "Healthy?\r\n"] -[10.79875, "o", "{\"status\":\"ok\"}"] -[10.799718, "o", "\r\n"] -[11.167539, "o", "╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Server Overview │\r\n├─────────┬────────────┬───────────┬─────────────┬─────┬───────┬───────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤\r\n│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Up"] -[11.167597, "o", "time │ RTT │\r\n├─────────┼────────────┼───────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ rg1-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 1 │ 424 │ 8 │ 0 │ 15 MiB │ 0.0 │ 0 │ 9.07s │ 6ms │\r\n│ rg3-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 1.06s │ 7ms │\r\n│ rg2-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 6.07s │ 7ms │\r\n│ rg2-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 0.0 │ 0 │ 5.07s │ 7ms │\r\n"] -[11.167613, "o", "│ rg1-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 11 MiB │ 1.0 │ 0 │ 8.07s │ 7ms │\r\n│ rg1-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 7.07s │ 7ms │\r\n│ rg2-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 15 MiB │ 0.0 │ 0 │ 4.07s │ 7ms │\r\n│ rg3-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 1.0 │ 0 │ 2.06s │ 8ms │\r\n│ rg3-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 1.0 │ 0 │ 3.06s │ 8ms │\r\n├─────────┼────────────┼───────────┼─────────────┼─────┼───────┼───────┼────────"] -[11.167652, "o", "┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ │ 1 Clusters │ 9 Servers │ │ 9 │ 1 │ 3,816 │ │ │ 121 MiB │ │ 0 │ │ │\r\n╰─────────┴────────────┴───────────┴─────────────┴─────┴───────┴───────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯\r\n\r\n╭────────────────────────────────────────────────────────────────────────────╮\r\n│ Cluster Overview │\r\n├─────────"] -[11.16832, "o", "┬────────────┬───────────────────┬───────────────────┬─────────────┤\r\n│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ c1 │ 9 │ 0 │ 0 │ 1 │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ │ 9 │ 0 │ 0 │ 1 │\r\n╰─────────┴────────────"] -[11.168371, "o", "┴───────────────────┴───────────────────┴─────────────╯\r\n"] -[11.537097, "o", "╭─────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ JetStream Summary │\r\n├──────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤\r\n│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │\r\n├──────────┼─────────┼─────────┼───────────┼──────────┼───────┼───"] -[11.537273, "o", "─────┼──────┼─────────┼─────────┤\r\n│ rg1-az1* │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az1 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az3 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az1 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az3 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg1-az3 │ c1 │ 0 │ 0 │ 0 "] -[11.53762, "o", " │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg1-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n├──────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤\r\n│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n╰──────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯\r\n\r\n"] -[11.538807, "o", "╭────────────────────────────────────────────────────╮\r\n│ RAFT Meta Group Information │\r\n├─────────┬────────┬─────────┬────────┬────────┬─────┤\r\n│ Name │ Leader │ Current │ Online │ Active │ Lag │\r\n├─────────┼────────┼─────────┼────────┼────────┼─────┤\r\n│ rg1-az1 │ yes │ true │ true │ 0.00s │ 0 │\r\n│ rg1-az2 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg1-az3 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg2-az1 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg2-az2 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg2-az3 │ │ true │ true │ 0."] -[11.538936, "o", "33s │ 0 │\r\n│ rg3-az1 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg3-az2 │ │ true │ true │ 0.33s │ 0 │\r\n│ rg3-az3 │ │ true │ true │ 0.33s │ 0 │\r\n╰─────────┴────────┴─────────┴────────┴────────┴─────╯\r\n"] -[12.174314, "o", "Stream EVENTS was created\r\n\r\nInformation for Stream EVENTS created 2022-08-27T09:59:28Z\r\n\r\nConfiguration:\r\n\r\n Subjects: events.*\r\n Acknowledgements: true\r\n Retention: File - Limits\r\n Replicas: 3\r\n Discard Policy: Old\r\n Duplicate Window: 2m0s\r\n Allows Msg Delete: true\r\n Allows Purge: true\r\n Allows Rollups: true\r\n Maximum Messages: unlimited\r\n Maximum Bytes: unlimited\r\n Maximum Age: unlimited\r\n Maximum Message Size: unlimited\r\n Maximum Consumers: unlimited\r\n Placement Tags: xr:123\r\n\r\n\r\nCluster Information:\r\n\r\n Name: c1\r\n Leader: rg1-az1\r\n Replica: rg2-az2, current, seen 0.00s ago\r\n Replica: rg3-az3, current, seen 0.00s ago\r\n\r\nState:\r\n\r\n Messages: 0\r\n Bytes: 0 B\r\n FirstSeq: 0\r\n LastSeq: 0\r\n Active Consumers: 0\r\n"] -[12.862491, "o", "Stream ORDERS was created\r\n\r\nInformation for Stream ORDERS created 2022-08-27T09:59:29Z\r\n\r\nConfiguration:\r\n\r\n Subjects: orders.*\r\n Acknowledgements: true\r\n Retention: File - Limits\r\n Replicas: 3\r\n Discard Policy: Old\r\n Duplicate Window: 2m0s\r\n"] -[12.863105, "o", " Allows Msg Delete: true\r\n Allows Purge: true\r\n Allows Rollups: true\r\n Maximum Messages: unlimited\r\n Maximum Bytes: unlimited\r\n Maximum Age: unlimited\r\n Maximum Message Size: unlimited\r\n Maximum Consumers: unlimited\r\n Placement Tags: rg:2\r\n\r\n\r\nCluster Information:\r\n\r\n Name: c1\r\n Leader: rg2-az1\r\n Replica: rg2-az2, current, seen 0.00s ago\r\n Replica: rg2-az3, current, not seen\r\n\r\nState:\r\n\r\n Messages: 0\r\n Bytes: 0 B\r\n FirstSeq: 0\r\n LastSeq: 0\r\n Active Consumers: 0\r\n"] -[12.926952, "o", "Obtaining Stream stats\r\n\r\n"] -[12.935336, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Stream Report │\r\n├────────┬─────────┬──────────────┬───────────┬──────────┬───────┬──────┬─────────┬────────────────────────────┤\r\n│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │\r\n├────────┼─────────┼────────────"] -[12.935382, "o", "──┼───────────┼──────────┼───────┼──────┼─────────┼────────────────────────────┤\r\n│ EVENTS │ File │ tags: xr:123 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg1-az1*, rg2-az2, rg3-az3 │\r\n│ ORDERS │ File │ tags: rg:2 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg2-az1*, rg2-az2, rg2-az3 │\r\n╰────────┴─────────┴──────────────┴───────────┴──────────┴───────┴──────┴─────────┴────────────────────────────╯\r\n\r\n"] diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.txt b/examples/use-cases/cross-region-streams-cluster/cli/output.txt deleted file mode 100644 index d61cdb49..00000000 --- a/examples/use-cases/cross-region-streams-cluster/cli/output.txt +++ /dev/null @@ -1,158 +0,0 @@ -Network 1d3d8cca_default Creating -Network 1d3d8cca_default Created -Starting server rg1-az1 -Starting server rg1-az2 -Starting server rg1-az3 -Starting server rg2-az1 -Starting server rg2-az2 -Starting server rg2-az3 -Starting server rg3-az1 -Starting server rg3-az2 -Starting server rg3-az3 -Healthy? -{"status":"ok"} -╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Server Overview │ -├─────────┬────────────┬───────────┬─────────────┬─────┬───────┬───────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤ -│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │ -├─────────┼────────────┼───────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ rg1-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 1 │ 424 │ 8 │ 0 │ 15 MiB │ 0.0 │ 0 │ 9.07s │ 6ms │ -│ rg3-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 1.06s │ 7ms │ -│ rg2-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 6.07s │ 7ms │ -│ rg2-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 0.0 │ 0 │ 5.07s │ 7ms │ -│ rg1-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 11 MiB │ 1.0 │ 0 │ 8.07s │ 7ms │ -│ rg1-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 14 MiB │ 2.0 │ 0 │ 7.07s │ 7ms │ -│ rg2-az3 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 15 MiB │ 0.0 │ 0 │ 4.07s │ 7ms │ -│ rg3-az2 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 1.0 │ 0 │ 2.06s │ 8ms │ -│ rg3-az1 │ c1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 424 │ 8 │ 0 │ 12 MiB │ 1.0 │ 0 │ 3.06s │ 8ms │ -├─────────┼────────────┼───────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ │ 1 Clusters │ 9 Servers │ │ 9 │ 1 │ 3,816 │ │ │ 121 MiB │ │ 0 │ │ │ -╰─────────┴────────────┴───────────┴─────────────┴─────┴───────┴───────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯ - -╭────────────────────────────────────────────────────────────────────────────╮ -│ Cluster Overview │ -├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤ -│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ c1 │ 9 │ 0 │ 0 │ 1 │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ │ 9 │ 0 │ 0 │ 1 │ -╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯ -╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ JetStream Summary │ -├──────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤ -│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │ -├──────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ rg1-az1* │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az1 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az3 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az1 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az3 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg1-az3 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg1-az2 │ c1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -├──────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -╰──────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯ - -╭────────────────────────────────────────────────────╮ -│ RAFT Meta Group Information │ -├─────────┬────────┬─────────┬────────┬────────┬─────┤ -│ Name │ Leader │ Current │ Online │ Active │ Lag │ -├─────────┼────────┼─────────┼────────┼────────┼─────┤ -│ rg1-az1 │ yes │ true │ true │ 0.00s │ 0 │ -│ rg1-az2 │ │ true │ true │ 0.33s │ 0 │ -│ rg1-az3 │ │ true │ true │ 0.33s │ 0 │ -│ rg2-az1 │ │ true │ true │ 0.33s │ 0 │ -│ rg2-az2 │ │ true │ true │ 0.33s │ 0 │ -│ rg2-az3 │ │ true │ true │ 0.33s │ 0 │ -│ rg3-az1 │ │ true │ true │ 0.33s │ 0 │ -│ rg3-az2 │ │ true │ true │ 0.33s │ 0 │ -│ rg3-az3 │ │ true │ true │ 0.33s │ 0 │ -╰─────────┴────────┴─────────┴────────┴────────┴─────╯ -Stream EVENTS was created - -Information for Stream EVENTS created 2022-08-27T09:59:28Z - -Configuration: - - Subjects: events.* - Acknowledgements: true - Retention: File - Limits - Replicas: 3 - Discard Policy: Old - Duplicate Window: 2m0s - Allows Msg Delete: true - Allows Purge: true - Allows Rollups: true - Maximum Messages: unlimited - Maximum Bytes: unlimited - Maximum Age: unlimited - Maximum Message Size: unlimited - Maximum Consumers: unlimited - Placement Tags: xr:123 - - -Cluster Information: - - Name: c1 - Leader: rg1-az1 - Replica: rg2-az2, current, seen 0.00s ago - Replica: rg3-az3, current, seen 0.00s ago - -State: - - Messages: 0 - Bytes: 0 B - FirstSeq: 0 - LastSeq: 0 - Active Consumers: 0 -Stream ORDERS was created - -Information for Stream ORDERS created 2022-08-27T09:59:29Z - -Configuration: - - Subjects: orders.* - Acknowledgements: true - Retention: File - Limits - Replicas: 3 - Discard Policy: Old - Duplicate Window: 2m0s - Allows Msg Delete: true - Allows Purge: true - Allows Rollups: true - Maximum Messages: unlimited - Maximum Bytes: unlimited - Maximum Age: unlimited - Maximum Message Size: unlimited - Maximum Consumers: unlimited - Placement Tags: rg:2 - - -Cluster Information: - - Name: c1 - Leader: rg2-az1 - Replica: rg2-az2, current, seen 0.00s ago - Replica: rg2-az3, current, not seen - -State: - - Messages: 0 - Bytes: 0 B - FirstSeq: 0 - LastSeq: 0 - Active Consumers: 0 -Obtaining Stream stats - -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Stream Report │ -├────────┬─────────┬──────────────┬───────────┬──────────┬───────┬──────┬─────────┬────────────────────────────┤ -│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ -├────────┼─────────┼──────────────┼───────────┼──────────┼───────┼──────┼─────────┼────────────────────────────┤ -│ EVENTS │ File │ tags: xr:123 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg1-az1*, rg2-az2, rg3-az3 │ -│ ORDERS │ File │ tags: rg:2 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg2-az1*, rg2-az2, rg2-az3 │ -╰────────┴─────────┴──────────────┴───────────┴──────────┴───────┴──────┴─────────┴────────────────────────────╯ - diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.cast b/examples/use-cases/cross-region-streams-supercluster/cli/output.cast deleted file mode 100644 index c8a724cf..00000000 --- a/examples/use-cases/cross-region-streams-supercluster/cli/output.cast +++ /dev/null @@ -1,44 +0,0 @@ -{"version": 2, "width": 174, "height": 87, "timestamp": 1661784627, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-supercluster/cli"} -[0.562758, "o", "Network 75dd2e22_default Creating\r\n"] -[0.827705, "o", "Network 75dd2e22_default Created\r\n"] -[1.153344, "o", "Starting server rg1-az1-x\r\n"] -[2.154328, "o", "Starting server rg1-az1\r\n"] -[3.15582, "o", "Starting server rg1-az2\r\n"] -[4.157444, "o", "Starting server rg1-az3\r\n"] -[5.158746, "o", "Starting server rg2-az1\r\n"] -[6.159867, "o", "Starting server rg2-az2-x\r\n"] -[7.161191, "o", "Starting server rg2-az2\r\n"] -[8.16272, "o", "Starting server rg2-az3\r\n"] -[9.16357, "o", "Starting server rg3-az1\r\n"] -[10.164605, "o", "Starting server rg3-az2\r\n"] -[11.166012, "o", "Starting server rg3-az3-x\r\n"] -[12.167222, "o", "Starting server rg3-az3\r\n"] -[13.169768, "o", "Cluster 1 healthy?\r\n"] -[15.194509, "o", "{\"status\":\"ok\"}"] -[15.194893, "o", "\r\n"] -[15.194922, "o", "Cluster 2 healthy?\r\n"] -[15.200707, "o", "{\"status\":\"ok\"}"] -[15.201193, "o", "\r\nCluster 3 healthy?\r\n"] -[15.203473, "o", "{\"status\":\"ok\"}"] -[15.203788, "o", "\r\nCluster 4 healthy?\r\n"] -[15.205762, "o", "{\"status\":\"ok\"}"] -[15.206028, "o", "\r\n"] -[15.264514, "o", "Server information for rg2-az1 (NAK5EJMZ7JWSZV22HSITOTGMIZOL6JW47RIDPUX2XTJMSFP3YSN7E7DG)\r\n\r\nProcess Details:\r\n\r\n Version: 2.9.0-RC.11\r\n Git Commit: 97bba60b\r\n Go Version: go1.19\r\n Start Time: 2022-08-29 14:50:32.236121629 +0000 UTC\r\n Uptime: 10s\r\n\r\nConnection Details:\r\n\r\n Auth Required: true\r\n TLS Required: false\r\n Host: 0.0.0.0:4225\r\n Client URLs: 172.20.0.2:4225\r\n 172.20.0.2:4226\r\n 172.20.0.2:4227\r\n\r\nJetStream:\r\n\r\n Domain: \r\n Storage Directory: /tmp/nats/jetstream\r\n Max Memory: 23 GiB\r\n Max File: 258 GiB\r\n Active Acconts: 1\r\n Memory In Use: 0 B\r\n File In Use: 0 B\r\n API Requests: 0\r\n API Errors: 0\r\n\r\nLimits:\r\n\r\n Max Conn: 65536\r\n Max Subs: 0\r\n Max Payload: 1.0 MiB\r\n TLS Timeout: 2s\r\n Write Deadline: 10s\r\n\r\nStatistics:\r\n\r\n CPU Cores: 8 0.00%\r\n Memory: 16 MiB\r\n Connections: 0\r\n Subscriptions: 144\r\n Msg"] -[15.264636, "o", "s: 155 in 203 out\r\n Bytes: 150 KiB in 175 KiB out\r\n Slow Consumers: 0\r\n\r\nCluster:\r\n\r\n Name: rg2\r\n Tags: az:1\r\n Host: 0.0.0.0:6225\r\n URLs: 127.0.0.1:6225\r\n 127.0.0.1:6226\r\n 127.0.0.1:6227\r\n\r\nSuper Cluster:\r\n\r\n Name: rg2\r\n Host: 0.0.0.0:7225\r\n Clusters: rg1\r\n rg2\r\n rg3\r\n xr\r\n\r\n"] -[15.585343, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Server Overview │\r\n├───────────┬────────────┬────────────┬─────────────┬─────┬───────┬───────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤\r\n│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem "] -[15.58549, "o", " │ CPU │ Slow │ Uptime │ RTT │\r\n├───────────┼────────────┼────────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ rg1-az1 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 1 │ 154 │ 2 │ 3 │ 17 MiB │ 2.0 │ 0 │ 13.13s │ 1ms │\r\n│ rg1-az2 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 154 │ 2 │ 3 │ 17 MiB │ 1.0 │ 0 │ 12.12s │ 1ms │\r\n│ rg1-az1-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 14.11s │ 1ms │\r\n│ rg1-az3 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 154 │ 2 │ 3 │ 16 Mi"] -[15.585538, "o", "B │ 1.0 │ 0 │ 11.12s │ 1ms │\r\n│ rg3-az3-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 0.0 │ 0 │ 4.11s │ 1ms │\r\n│ rg2-az3 │ rg2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 1.0 │ 0 │ 7.12s │ 1ms │\r\n│ rg2-az1 │ rg2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 10.12s │ 1ms │\r\n│ rg3-az1 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 15 MiB │ 0.0 │ 0 │ 6.11s │ 1ms │\r\n│ rg3-az3 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 3.11s │ 1ms │\r\n│ rg2-az2-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 1.0 │ 0 │ 9.12s │ 1ms │\r\n│ rg2-az2 │ rg"] -[15.585565, "o", "2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 0.0 │ 0 │ 8.12s │ 1ms │\r\n│ rg3-az2 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 15 MiB │ 0.0 │ 0 │ 5.12s │ 1ms │\r\n├───────────┼────────────┼────────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤\r\n│ │ 4 Clusters │ 12 Servers │ │ 12 │ 1 │ 1,758 │ │ │ 195 MiB │ │ 0 │ │ │\r\n╰───────────┴────────────┴────────────┴─────────────┴─────┴"] -[15.585591, "o", "───────┴───────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯\r\n\r\n╭────────────────────────────────────────────────────────────────────────────╮\r\n│ Cluster Overview │\r\n├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤\r\n│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │\r\n├─────────┼────────────┼───────────────────┼───────────"] -[15.585616, "o", "────────┼─────────────┤\r\n│ xr │ 3 │ 9 │ 9 │ 0 │\r\n│ rg2 │ 3 │ 9 │ 9 │ 0 │\r\n│ rg3 │ 3 │ 9 │ 9 │ 0 │\r\n│ rg1 │ 3 │ 9 │ 9 │ 1 │\r\n├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤\r\n│ │ 12 │ 36 │ 36 │ 1 │\r\n╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯\r\n"] -[15.925421, "o", "╭──────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ JetStream Summary │\r\n├───────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤\r\n│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │\r\n├───────────┼─────────┼─────────┼───────────┼──────────┼───────"] -[15.925571, "o", "┼────────┼──────┼─────────┼─────────┤\r\n│ rg1-az1* │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg1-az3 │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg1-az2 │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az1 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az2 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az3 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az1 │ rg3 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az2 │ rg3 │ 0 │ 0 "] -[15.925588, "o", " │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az3 │ rg3 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg1-az1-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg3-az3-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n│ rg2-az2-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n├───────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤\r\n│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │\r\n╰──────"] -[15.925596, "o", "─────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯\r\n\r\n"] -[15.925673, "o", "╭──────────────────────────────────────────────────────╮\r\n│ RAFT Meta Group Information │\r\n├───────────┬────────┬─────────┬────────┬────────┬─────┤\r\n│ Name │ Leader │ Current │ Online │ Active │ Lag │\r\n├───────────┼────────┼─────────┼────────┼────────┼─────┤\r\n│ rg1-az1 │ yes │ true │ true │ 0.00s │ 0 │\r\n│ rg1-az1-x │ │ true │ true │ 0.58s │ 0 │\r\n│ rg1-az2 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg1-az3 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg2-az1 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg2-az2 │ "] -[15.925683, "o", " │ true │ true │ 0.58s │ 0 │\r\n│ rg2-az2-x │ │ true │ true │ 0.58s │ 0 │\r\n│ rg2-az3 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg3-az1 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg3-az2 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg3-az3 │ │ true │ true │ 0.58s │ 0 │\r\n│ rg3-az3-x │ │ true │ true │ 0.58s │ 0 │\r\n╰───────────┴────────┴─────────┴────────┴────────┴─────╯\r\n"] -[16.686886, "o", "Stream EVENTS was created\r\n\r\nInformation for Stream EVENTS created 2022-08-29T14:50:43Z\r\n\r\nConfiguration:\r\n\r\n Subjects: events.*\r\n Acknowledgements: true\r\n Retention: File - Limits\r\n Replicas: 3\r\n Discard Policy: Old\r\n Duplicate Window: 2m0s\r\n Allows Msg Delete: true\r\n Allows Purge: true\r\n Allows Rollups: true\r\n Maximum Messages: unlimited\r\n Maximum Bytes: unlimited\r\n Maximum Age: unlimited\r\n Maximum Message Size: unlimited\r\n Maximum Consumers: unlimited\r\n Placement Cluster: xr\r\n\r\n\r\nCluster Information:\r\n\r\n Name: xr\r\n Leader: rg3-az3-x\r\n Replica: rg1-az1-x, current, seen 0.00s ago\r\n Replica: rg2-az2-x, current, seen 0.00s ago\r\n\r\nState:\r\n\r\n Messages: 0\r\n Bytes: 0 B\r\n FirstSeq: 0\r\n LastSeq: 0\r\n Active Consumers: 0\r\n"] -[17.069691, "o", "Stream ORDERS was created\r\n\r\nInformation for Stream ORDERS created 2022-08-29T14:50:43Z\r\n\r\nConfiguration:\r\n\r\n Subjects: orders.*\r\n Acknowledgements: true\r\n Retention: File - Limits\r\n Replicas: 3\r\n Discard Policy: Old\r\n Duplicate Window: 2m0s\r\n Allows Msg Delete: true\r\n Allows Purge: true\r\n Allows Rollups: true\r\n Maximum Messages: unlimited\r\n Maximum Bytes: unlimited\r\n Maximum Age: unlimited\r\n Maximum Message Size: unlimited\r\n Maximum Consumers: unlimited\r\n Placement Cluster: rg2\r\n\r\n\r\nCluster Information:\r\n\r\n Name: rg2\r\n Leader: rg2-az3\r\n Replica: rg2-az1, current, seen 0.00s ago\r\n Replica: rg2-az2, outdated, seen 0.00s ago, 1 operation behind\r\n\r\nState:\r\n\r\n Messages: 0\r\n Bytes: 0 B\r\n FirstSeq: 0\r\n LastSeq: 0\r\n Active Consumers: 0\r\n"] -[17.088984, "o", "Obtaining Stream stats\r\n\r\n"] -[17.093397, "o", "╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\r\n│ Stream Report │\r\n├────────┬─────────┬───────────────┬───────────┬──────────┬───────┬──────┬─────────┬──────────────────────────────────┤\r\n│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │\r\n├────────┼───"] -[17.093602, "o", "──────┼───────────────┼───────────┼──────────┼───────┼──────┼─────────┼──────────────────────────────────┤\r\n│ EVENTS │ File │ cluster: xr │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg1-az1-x, rg2-az2-x, rg3-az3-x* │\r\n│ ORDERS │ File │ cluster: rg2 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg2-az1, rg2-az2, rg2-az3* │\r\n╰────────┴─────────┴───────────────┴───────────┴──────────┴───────┴──────┴─────────┴──────────────────────────────────╯\r\n\r\n"] diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.txt b/examples/use-cases/cross-region-streams-supercluster/cli/output.txt deleted file mode 100644 index 1508763b..00000000 --- a/examples/use-cases/cross-region-streams-supercluster/cli/output.txt +++ /dev/null @@ -1,246 +0,0 @@ -Network 75dd2e22_default Creating -Network 75dd2e22_default Created -Starting server rg1-az1-x -Starting server rg1-az1 -Starting server rg1-az2 -Starting server rg1-az3 -Starting server rg2-az1 -Starting server rg2-az2-x -Starting server rg2-az2 -Starting server rg2-az3 -Starting server rg3-az1 -Starting server rg3-az2 -Starting server rg3-az3-x -Starting server rg3-az3 -Cluster 1 healthy? -{"status":"ok"} -Cluster 2 healthy? -{"status":"ok"} -Cluster 3 healthy? -{"status":"ok"} -Cluster 4 healthy? -{"status":"ok"} -Server information for rg2-az1 (NAK5EJMZ7JWSZV22HSITOTGMIZOL6JW47RIDPUX2XTJMSFP3YSN7E7DG) - -Process Details: - - Version: 2.9.0-RC.11 - Git Commit: 97bba60b - Go Version: go1.19 - Start Time: 2022-08-29 14:50:32.236121629 +0000 UTC - Uptime: 10s - -Connection Details: - - Auth Required: true - TLS Required: false - Host: 0.0.0.0:4225 - Client URLs: 172.20.0.2:4225 - 172.20.0.2:4226 - 172.20.0.2:4227 - -JetStream: - - Domain: - Storage Directory: /tmp/nats/jetstream - Max Memory: 23 GiB - Max File: 258 GiB - Active Acconts: 1 - Memory In Use: 0 B - File In Use: 0 B - API Requests: 0 - API Errors: 0 - -Limits: - - Max Conn: 65536 - Max Subs: 0 - Max Payload: 1.0 MiB - TLS Timeout: 2s - Write Deadline: 10s - -Statistics: - - CPU Cores: 8 0.00% - Memory: 16 MiB - Connections: 0 - Subscriptions: 144 - Msgs: 155 in 203 out - Bytes: 150 KiB in 175 KiB out - Slow Consumers: 0 - -Cluster: - - Name: rg2 - Tags: az:1 - Host: 0.0.0.0:6225 - URLs: 127.0.0.1:6225 - 127.0.0.1:6226 - 127.0.0.1:6227 - -Super Cluster: - - Name: rg2 - Host: 0.0.0.0:7225 - Clusters: rg1 - rg2 - rg3 - xr - -╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Server Overview │ -├───────────┬────────────┬────────────┬─────────────┬─────┬───────┬───────┬────────┬─────┬─────────┬─────┬──────┬────────┬─────┤ -│ Name │ Cluster │ IP │ Version │ JS │ Conns │ Subs │ Routes │ GWs │ Mem │ CPU │ Slow │ Uptime │ RTT │ -├───────────┼────────────┼────────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ rg1-az1 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 1 │ 154 │ 2 │ 3 │ 17 MiB │ 2.0 │ 0 │ 13.13s │ 1ms │ -│ rg1-az2 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 154 │ 2 │ 3 │ 17 MiB │ 1.0 │ 0 │ 12.12s │ 1ms │ -│ rg1-az1-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 14.11s │ 1ms │ -│ rg1-az3 │ rg1 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 154 │ 2 │ 3 │ 16 MiB │ 1.0 │ 0 │ 11.12s │ 1ms │ -│ rg3-az3-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 0.0 │ 0 │ 4.11s │ 1ms │ -│ rg2-az3 │ rg2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 1.0 │ 0 │ 7.12s │ 1ms │ -│ rg2-az1 │ rg2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 10.12s │ 1ms │ -│ rg3-az1 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 15 MiB │ 0.0 │ 0 │ 6.11s │ 1ms │ -│ rg3-az3 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 16 MiB │ 0.0 │ 0 │ 3.11s │ 1ms │ -│ rg2-az2-x │ xr │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 1.0 │ 0 │ 9.12s │ 1ms │ -│ rg2-az2 │ rg2 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 17 MiB │ 0.0 │ 0 │ 8.12s │ 1ms │ -│ rg3-az2 │ rg3 │ 0.0.0.0 │ 2.9.0-RC.11 │ yes │ 0 │ 144 │ 2 │ 3 │ 15 MiB │ 0.0 │ 0 │ 5.12s │ 1ms │ -├───────────┼────────────┼────────────┼─────────────┼─────┼───────┼───────┼────────┼─────┼─────────┼─────┼──────┼────────┼─────┤ -│ │ 4 Clusters │ 12 Servers │ │ 12 │ 1 │ 1,758 │ │ │ 195 MiB │ │ 0 │ │ │ -╰───────────┴────────────┴────────────┴─────────────┴─────┴───────┴───────┴────────┴─────┴─────────┴─────┴──────┴────────┴─────╯ - -╭────────────────────────────────────────────────────────────────────────────╮ -│ Cluster Overview │ -├─────────┬────────────┬───────────────────┬───────────────────┬─────────────┤ -│ Cluster │ Node Count │ Outgoing Gateways │ Incoming Gateways │ Connections │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ xr │ 3 │ 9 │ 9 │ 0 │ -│ rg2 │ 3 │ 9 │ 9 │ 0 │ -│ rg3 │ 3 │ 9 │ 9 │ 0 │ -│ rg1 │ 3 │ 9 │ 9 │ 1 │ -├─────────┼────────────┼───────────────────┼───────────────────┼─────────────┤ -│ │ 12 │ 36 │ 36 │ 1 │ -╰─────────┴────────────┴───────────────────┴───────────────────┴─────────────╯ -╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ JetStream Summary │ -├───────────┬─────────┬─────────┬───────────┬──────────┬───────┬────────┬──────┬─────────┬─────────┤ -│ Server │ Cluster │ Streams │ Consumers │ Messages │ Bytes │ Memory │ File │ API Req │ API Err │ -├───────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ rg1-az1* │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg1-az3 │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg1-az2 │ rg1 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az1 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az2 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az3 │ rg2 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az1 │ rg3 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az2 │ rg3 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az3 │ rg3 │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg1-az1-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg3-az3-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -│ rg2-az2-x │ xr │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -├───────────┼─────────┼─────────┼───────────┼──────────┼───────┼────────┼──────┼─────────┼─────────┤ -│ │ │ 0 │ 0 │ 0 │ 0 B │ 0 B │ 0 B │ 0 │ 0 │ -╰───────────┴─────────┴─────────┴───────────┴──────────┴───────┴────────┴──────┴─────────┴─────────╯ - -╭──────────────────────────────────────────────────────╮ -│ RAFT Meta Group Information │ -├───────────┬────────┬─────────┬────────┬────────┬─────┤ -│ Name │ Leader │ Current │ Online │ Active │ Lag │ -├───────────┼────────┼─────────┼────────┼────────┼─────┤ -│ rg1-az1 │ yes │ true │ true │ 0.00s │ 0 │ -│ rg1-az1-x │ │ true │ true │ 0.58s │ 0 │ -│ rg1-az2 │ │ true │ true │ 0.58s │ 0 │ -│ rg1-az3 │ │ true │ true │ 0.58s │ 0 │ -│ rg2-az1 │ │ true │ true │ 0.58s │ 0 │ -│ rg2-az2 │ │ true │ true │ 0.58s │ 0 │ -│ rg2-az2-x │ │ true │ true │ 0.58s │ 0 │ -│ rg2-az3 │ │ true │ true │ 0.58s │ 0 │ -│ rg3-az1 │ │ true │ true │ 0.58s │ 0 │ -│ rg3-az2 │ │ true │ true │ 0.58s │ 0 │ -│ rg3-az3 │ │ true │ true │ 0.58s │ 0 │ -│ rg3-az3-x │ │ true │ true │ 0.58s │ 0 │ -╰───────────┴────────┴─────────┴────────┴────────┴─────╯ -Stream EVENTS was created - -Information for Stream EVENTS created 2022-08-29T14:50:43Z - -Configuration: - - Subjects: events.* - Acknowledgements: true - Retention: File - Limits - Replicas: 3 - Discard Policy: Old - Duplicate Window: 2m0s - Allows Msg Delete: true - Allows Purge: true - Allows Rollups: true - Maximum Messages: unlimited - Maximum Bytes: unlimited - Maximum Age: unlimited - Maximum Message Size: unlimited - Maximum Consumers: unlimited - Placement Cluster: xr - - -Cluster Information: - - Name: xr - Leader: rg3-az3-x - Replica: rg1-az1-x, current, seen 0.00s ago - Replica: rg2-az2-x, current, seen 0.00s ago - -State: - - Messages: 0 - Bytes: 0 B - FirstSeq: 0 - LastSeq: 0 - Active Consumers: 0 -Stream ORDERS was created - -Information for Stream ORDERS created 2022-08-29T14:50:43Z - -Configuration: - - Subjects: orders.* - Acknowledgements: true - Retention: File - Limits - Replicas: 3 - Discard Policy: Old - Duplicate Window: 2m0s - Allows Msg Delete: true - Allows Purge: true - Allows Rollups: true - Maximum Messages: unlimited - Maximum Bytes: unlimited - Maximum Age: unlimited - Maximum Message Size: unlimited - Maximum Consumers: unlimited - Placement Cluster: rg2 - - -Cluster Information: - - Name: rg2 - Leader: rg2-az3 - Replica: rg2-az1, current, seen 0.00s ago - Replica: rg2-az2, outdated, seen 0.00s ago, 1 operation behind - -State: - - Messages: 0 - Bytes: 0 B - FirstSeq: 0 - LastSeq: 0 - Active Consumers: 0 -Obtaining Stream stats - -╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ -│ Stream Report │ -├────────┬─────────┬───────────────┬───────────┬──────────┬───────┬──────┬─────────┬──────────────────────────────────┤ -│ Stream │ Storage │ Placement │ Consumers │ Messages │ Bytes │ Lost │ Deleted │ Replicas │ -├────────┼─────────┼───────────────┼───────────┼──────────┼───────┼──────┼─────────┼──────────────────────────────────┤ -│ EVENTS │ File │ cluster: xr │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg1-az1-x, rg2-az2-x, rg3-az3-x* │ -│ ORDERS │ File │ cluster: rg2 │ 0 │ 0 │ 0 B │ 0 │ 0 │ rg2-az1, rg2-az2, rg2-az3* │ -╰────────┴─────────┴───────────────┴───────────┴──────────┴───────┴──────┴─────────┴──────────────────────────────────╯ - From 3ebb92684bf13087bd71e273e098bc3bbc813672 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 08:45:19 -0500 Subject: [PATCH 04/11] Revert Python to non-slim Signed-off-by: Byron Ruth --- docker/python/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/python/Dockerfile b/docker/python/Dockerfile index 7eda60b3..54129ed8 100644 --- a/docker/python/Dockerfile +++ b/docker/python/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10.8-slim +FROM python:3.10.8 COPY requirements.txt ./ RUN pip install -r requirements.txt From ced5ae8cd857ee2ef36ab4ff0e71c163961f5ea6 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 10:22:48 -0500 Subject: [PATCH 05/11] Don't expose compose ports Signed-off-by: Byron Ruth --- docker/docker-compose.cluster.yaml | 10 ---------- docker/docker-compose.yaml | 3 --- 2 files changed, 13 deletions(-) diff --git a/docker/docker-compose.cluster.yaml b/docker/docker-compose.cluster.yaml index fd140536..29d86d0f 100644 --- a/docker/docker-compose.cluster.yaml +++ b/docker/docker-compose.cluster.yaml @@ -10,9 +10,6 @@ services: - "--routes=nats-route://nats1:6222,nats-route://nats2:6222,nats-route://nats3:6222" - "--http_port=8222" - "--js" - ports: - - "14222:4222" - - "18222:8222" nats2: image: docker.io/nats:2.9.8 @@ -24,9 +21,6 @@ services: - "--routes=nats-route://nats1:6222,nats-route://nats2:6222,nats-route://nats3:6222" - "--http_port=8222" - "--js" - ports: - - "24222:4222" - - "28222:8222" nats3: image: docker.io/nats:2.9.8 @@ -38,9 +32,6 @@ services: - "--routes=nats-route://nats1:6222,nats-route://nats2:6222,nats-route://nats3:6222" - "--http_port=8222" - "--js" - ports: - - "34222:4222" - - "38222:8222" app: image: ${IMAGE_TAG} @@ -50,4 +41,3 @@ services: - nats1 - nats2 - nats3 - diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index a08ccef6..2c3e173f 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -6,9 +6,6 @@ services: - "--debug" - "--http_port=8222" - "--js" - ports: - - "14222:4222" - - "18222:8222" app: image: ${IMAGE_TAG} From 5ffd80f1d857c8e73d8c30d7c16741e372649cb2 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 10:26:00 -0500 Subject: [PATCH 06/11] Update recordings Signed-off-by: Byron Ruth --- examples/auth/nkeys-jwts/go/output.cast | 16 + examples/auth/nkeys-jwts/go/output.txt | 72 +++++ .../auth/private-inbox-jwt/cli/output.cast | 8 + .../auth/private-inbox-jwt/cli/output.txt | 7 + examples/auth/private-inbox/cli/output.cast | 27 ++ examples/auth/private-inbox/cli/output.txt | 69 ++++ examples/auth/sys-account/cli/output.cast | 22 ++ examples/auth/sys-account/cli/output.txt | 31 ++ .../jetstream/interest-stream/go/output.cast | 21 ++ .../jetstream/interest-stream/go/output.txt | 98 ++++++ .../jetstream/limits-stream/deno/output.cast | 14 + .../jetstream/limits-stream/deno/output.txt | 48 +++ .../jetstream/limits-stream/go/output.cast | 19 ++ .../jetstream/limits-stream/go/output.txt | 83 +++++ .../jetstream/limits-stream/node/output.cast | 15 + .../jetstream/limits-stream/node/output.txt | 61 ++++ .../multi-stream-consumption/go/output.cast | 10 + .../multi-stream-consumption/go/output.txt | 14 + .../pull-consumer-limits/go/output.cast | 13 + .../pull-consumer-limits/go/output.txt | 16 + .../jetstream/pull-consumer/go/output.cast | 15 + .../jetstream/pull-consumer/go/output.txt | 14 + .../jetstream/pull-consumer/rust/output.cast | 9 + .../jetstream/pull-consumer/rust/output.txt | 16 + .../jetstream/push-consumer/go/output.cast | 18 ++ .../jetstream/push-consumer/go/output.txt | 31 ++ .../queue-push-consumer/go/output.cast | 13 + .../queue-push-consumer/go/output.txt | 20 ++ .../jetstream/workqueue-stream/go/output.cast | 18 ++ .../jetstream/workqueue-stream/go/output.txt | 48 +++ examples/kv/intro/go/output.cast | 8 + examples/kv/intro/go/output.txt | 7 + .../messaging/concurrent/rust/output.cast | 53 +++ examples/messaging/concurrent/rust/output.txt | 56 ++++ .../rust/output.cast | 66 ++++ .../rust/output.txt | 306 ++++++++++++++++++ examples/messaging/json/rust/output.cast | 8 + examples/messaging/json/rust/output.txt | 8 + examples/messaging/pub-sub/cli/output.cast | 15 + examples/messaging/pub-sub/cli/output.txt | 21 ++ examples/messaging/pub-sub/deno/output.cast | 8 + examples/messaging/pub-sub/deno/output.txt | 9 + examples/messaging/pub-sub/go/output.cast | 9 + examples/messaging/pub-sub/go/output.txt | 11 + examples/messaging/pub-sub/java/output.cast | 10 + examples/messaging/pub-sub/java/output.txt | 9 + examples/messaging/pub-sub/node/output.cast | 9 + examples/messaging/pub-sub/node/output.txt | 9 + examples/messaging/pub-sub/python/output.cast | 8 + examples/messaging/pub-sub/python/output.txt | 9 + examples/messaging/pub-sub/rust/output.cast | 8 + examples/messaging/pub-sub/rust/output.txt | 9 + .../messaging/request-reply/go/output.cast | 11 + .../messaging/request-reply/go/output.txt | 10 + .../request-reply/python/output.cast | 8 + .../messaging/request-reply/python/output.txt | 10 + .../messaging/request-reply/rust/output.cast | 10 + .../messaging/request-reply/rust/output.txt | 9 + .../topologies/leafnode-jwt/cli/output.cast | 8 + .../topologies/leafnode-jwt/cli/output.txt | 7 + .../simple-leafnode/cli/output.cast | 8 + .../topologies/simple-leafnode/cli/output.txt | 7 + .../supercluster-arbiter/cli/output.cast | 8 + .../supercluster-arbiter/cli/output.txt | 7 + .../supercluster-jetstream/cli/output.cast | 8 + .../supercluster-jetstream/cli/output.txt | 7 + .../cli/output.cast | 8 + .../cli/output.txt | 7 + .../cli/output.cast | 8 + .../cli/output.txt | 7 + 70 files changed, 1670 insertions(+) create mode 100644 examples/auth/nkeys-jwts/go/output.cast create mode 100644 examples/auth/nkeys-jwts/go/output.txt create mode 100644 examples/auth/private-inbox-jwt/cli/output.cast create mode 100644 examples/auth/private-inbox-jwt/cli/output.txt create mode 100644 examples/auth/private-inbox/cli/output.cast create mode 100644 examples/auth/private-inbox/cli/output.txt create mode 100644 examples/auth/sys-account/cli/output.cast create mode 100644 examples/auth/sys-account/cli/output.txt create mode 100644 examples/jetstream/interest-stream/go/output.cast create mode 100644 examples/jetstream/interest-stream/go/output.txt create mode 100644 examples/jetstream/limits-stream/deno/output.cast create mode 100644 examples/jetstream/limits-stream/deno/output.txt create mode 100644 examples/jetstream/limits-stream/go/output.cast create mode 100644 examples/jetstream/limits-stream/go/output.txt create mode 100644 examples/jetstream/limits-stream/node/output.cast create mode 100644 examples/jetstream/limits-stream/node/output.txt create mode 100644 examples/jetstream/multi-stream-consumption/go/output.cast create mode 100644 examples/jetstream/multi-stream-consumption/go/output.txt create mode 100644 examples/jetstream/pull-consumer-limits/go/output.cast create mode 100644 examples/jetstream/pull-consumer-limits/go/output.txt create mode 100644 examples/jetstream/pull-consumer/go/output.cast create mode 100644 examples/jetstream/pull-consumer/go/output.txt create mode 100644 examples/jetstream/pull-consumer/rust/output.cast create mode 100644 examples/jetstream/pull-consumer/rust/output.txt create mode 100644 examples/jetstream/push-consumer/go/output.cast create mode 100644 examples/jetstream/push-consumer/go/output.txt create mode 100644 examples/jetstream/queue-push-consumer/go/output.cast create mode 100644 examples/jetstream/queue-push-consumer/go/output.txt create mode 100644 examples/jetstream/workqueue-stream/go/output.cast create mode 100644 examples/jetstream/workqueue-stream/go/output.txt create mode 100644 examples/kv/intro/go/output.cast create mode 100644 examples/kv/intro/go/output.txt create mode 100644 examples/messaging/concurrent/rust/output.cast create mode 100644 examples/messaging/concurrent/rust/output.txt create mode 100644 examples/messaging/iterating-multiple-subscriptions/rust/output.cast create mode 100644 examples/messaging/iterating-multiple-subscriptions/rust/output.txt create mode 100644 examples/messaging/json/rust/output.cast create mode 100644 examples/messaging/json/rust/output.txt create mode 100644 examples/messaging/pub-sub/cli/output.cast create mode 100644 examples/messaging/pub-sub/cli/output.txt create mode 100644 examples/messaging/pub-sub/deno/output.cast create mode 100644 examples/messaging/pub-sub/deno/output.txt create mode 100644 examples/messaging/pub-sub/go/output.cast create mode 100644 examples/messaging/pub-sub/go/output.txt create mode 100644 examples/messaging/pub-sub/java/output.cast create mode 100644 examples/messaging/pub-sub/java/output.txt create mode 100644 examples/messaging/pub-sub/node/output.cast create mode 100644 examples/messaging/pub-sub/node/output.txt create mode 100644 examples/messaging/pub-sub/python/output.cast create mode 100644 examples/messaging/pub-sub/python/output.txt create mode 100644 examples/messaging/pub-sub/rust/output.cast create mode 100644 examples/messaging/pub-sub/rust/output.txt create mode 100644 examples/messaging/request-reply/go/output.cast create mode 100644 examples/messaging/request-reply/go/output.txt create mode 100644 examples/messaging/request-reply/python/output.cast create mode 100644 examples/messaging/request-reply/python/output.txt create mode 100644 examples/messaging/request-reply/rust/output.cast create mode 100644 examples/messaging/request-reply/rust/output.txt create mode 100644 examples/topologies/leafnode-jwt/cli/output.cast create mode 100644 examples/topologies/leafnode-jwt/cli/output.txt create mode 100644 examples/topologies/simple-leafnode/cli/output.cast create mode 100644 examples/topologies/simple-leafnode/cli/output.txt create mode 100644 examples/topologies/supercluster-arbiter/cli/output.cast create mode 100644 examples/topologies/supercluster-arbiter/cli/output.txt create mode 100644 examples/topologies/supercluster-jetstream/cli/output.cast create mode 100644 examples/topologies/supercluster-jetstream/cli/output.txt create mode 100644 examples/use-cases/cross-region-streams-cluster/cli/output.cast create mode 100644 examples/use-cases/cross-region-streams-cluster/cli/output.txt create mode 100644 examples/use-cases/cross-region-streams-supercluster/cli/output.cast create mode 100644 examples/use-cases/cross-region-streams-supercluster/cli/output.txt diff --git a/examples/auth/nkeys-jwts/go/output.cast b/examples/auth/nkeys-jwts/go/output.cast new file mode 100644 index 00000000..29fd2fef --- /dev/null +++ b/examples/auth/nkeys-jwts/go/output.cast @@ -0,0 +1,16 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648390, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/nkeys-jwts/go"} +[0.474115, "o", "Network 5270a0ff_default Creating\r\n"] +[0.497316, "o", "Network 5270a0ff_default Created\r\n"] +[0.497431, "o", "Container 5270a0ff-nats-1 Creating\r\n"] +[0.532403, "o", "Container 5270a0ff-nats-1 Created\r\n"] +[0.533123, "o", "Container 5270a0ff-nats-1 Starting\r\n"] +[0.817949, "o", "Container 5270a0ff-nats-1 Started\r\n"] +[1.113117, "o", "operator pubkey: OBJ33OXUI5DBDVBFKF4DZ64HT2BSIE7WSYOHN6ARCCCGXLQ3H6F2QUQ5\r\noperator seed: SOAIRQFVHUNELOV4BVLGJIOLOD5O3CPRWVEQTNCCFY4MMIWS52FXEJ7AO4\r\n\r\n"] +[1.113215, "o", "account pubkey: AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB\r\naccount seed: SAAHFLZSE4HQ7HINX677U7W47XHOWWGIV75NG5WYWZJTQMQR6B7Z7JIPVI\r\n"] +[1.11331, "o", "account claims: {\r\n \"name\": \"my-account\",\r\n \"sub\": \"AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB\",\r\n \"nats\": {\r\n \"limits\": {\r\n \"subs\": -1,\r\n \"data\": -1,\r\n \"payload\": -1,\r\n \"imports\": -1,\r\n \"exports\": -1,\r\n \"wildcards\": true,\r\n \"conn\": -1,\r\n \"leaf\": -1,\r\n \"mem_storage\": -1,\r\n \"disk_storage\": -1\r\n },\r\n \"default_permissions\": {\r\n \"pub\": {},\r\n \"sub\": {}\r\n }\r\n }\r\n}\r\n"] +[1.113441, "o", "account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJVNjJaQVlMQUZWV042SE1DTjVHMlI3STZMRTQ2SVZDS0NRWkpPRTZHUDJNTFBVWjRSUDRBIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJPQkozM09YVUk1REJEVkJGS0Y0RFo2NEhUMkJTSUU3V1NZT0hONkFSQ0NDR1hMUTNINkYyUVVRNSIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUE2RFpOVkNGRlhTN0E3WEoySFJENlJEVDYzVklVUk9CNFo3QjJWSkxNVUlFS0s1RlJURURNTkIiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.d1s151vH6VnO8JXDdqIFkRkcmiRCe0bAY7x4L10-3oaa5BJ6m12FejYUJjYzfU3EJ3MDZioKOlrUZ7GbI6o5Aw\r\n\r\n"] +[1.113517, "o", "user pubkey: UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW\r\nuser seed: SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY\r\n"] +[1.113629, "o", "userclaims: {\r\n \"name\": \"my-user\",\r\n \"sub\": \"UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW\","] +[1.11365, "o", "\r\n \"nats\": {\r\n \"pub\": {\r\n \"allow\": [\r\n \"foo.\\u003e\",\r\n \"bar.\\u003e\"\r\n ]\r\n },\r\n \"sub\": {\r\n \"allow\": [\r\n \"_INBOX.\\u003e\"\r\n ]\r\n },\r\n \"subs\": -1,\r\n \"data\": 1073741824,\r\n \"payload\": -1\r\n }\r\n}\r\nuser jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA\r\n"] +[1.11409, "o", "creds file: -----BEGIN NATS USER JWT-----\r\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA\r\n------END NATS USER JWT------\r\n\r\n************************* IMPORTANT *************************\r\nNKEY Seed printed below can be used to sign and prove identity.\r\nNKEYs are sensitive and should be treated as secrets.\r\n\r\n-----BEGIN USER NKEY SEED-----\r\nSUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY\r\n------END USER NKEY SEED----"] +[1.114153, "o", "--\r\n\r\n*************************************************************\r\n\r\n"] diff --git a/examples/auth/nkeys-jwts/go/output.txt b/examples/auth/nkeys-jwts/go/output.txt new file mode 100644 index 00000000..8915d7fb --- /dev/null +++ b/examples/auth/nkeys-jwts/go/output.txt @@ -0,0 +1,72 @@ +Network 5270a0ff_default Creating +Network 5270a0ff_default Created +Container 5270a0ff-nats-1 Creating +Container 5270a0ff-nats-1 Created +Container 5270a0ff-nats-1 Starting +Container 5270a0ff-nats-1 Started +operator pubkey: OBJ33OXUI5DBDVBFKF4DZ64HT2BSIE7WSYOHN6ARCCCGXLQ3H6F2QUQ5 +operator seed: SOAIRQFVHUNELOV4BVLGJIOLOD5O3CPRWVEQTNCCFY4MMIWS52FXEJ7AO4 + +account pubkey: AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB +account seed: SAAHFLZSE4HQ7HINX677U7W47XHOWWGIV75NG5WYWZJTQMQR6B7Z7JIPVI +account claims: { + "name": "my-account", + "sub": "AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB", + "nats": { + "limits": { + "subs": -1, + "data": -1, + "payload": -1, + "imports": -1, + "exports": -1, + "wildcards": true, + "conn": -1, + "leaf": -1, + "mem_storage": -1, + "disk_storage": -1 + }, + "default_permissions": { + "pub": {}, + "sub": {} + } + } +} +account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJVNjJaQVlMQUZWV042SE1DTjVHMlI3STZMRTQ2SVZDS0NRWkpPRTZHUDJNTFBVWjRSUDRBIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJPQkozM09YVUk1REJEVkJGS0Y0RFo2NEhUMkJTSUU3V1NZT0hONkFSQ0NDR1hMUTNINkYyUVVRNSIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUE2RFpOVkNGRlhTN0E3WEoySFJENlJEVDYzVklVUk9CNFo3QjJWSkxNVUlFS0s1RlJURURNTkIiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.d1s151vH6VnO8JXDdqIFkRkcmiRCe0bAY7x4L10-3oaa5BJ6m12FejYUJjYzfU3EJ3MDZioKOlrUZ7GbI6o5Aw + +user pubkey: UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW +user seed: SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY +userclaims: { + "name": "my-user", + "sub": "UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW", + "nats": { + "pub": { + "allow": [ + "foo.\u003e", + "bar.\u003e" + ] + }, + "sub": { + "allow": [ + "_INBOX.\u003e" + ] + }, + "subs": -1, + "data": 1073741824, + "payload": -1 + } +} +user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA +creds file: -----BEGIN NATS USER JWT----- +eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA +------END NATS USER JWT------ + +************************* IMPORTANT ************************* +NKEY Seed printed below can be used to sign and prove identity. +NKEYs are sensitive and should be treated as secrets. + +-----BEGIN USER NKEY SEED----- +SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY +------END USER NKEY SEED------ + +************************************************************* + diff --git a/examples/auth/private-inbox-jwt/cli/output.cast b/examples/auth/private-inbox-jwt/cli/output.cast new file mode 100644 index 00000000..3120fd42 --- /dev/null +++ b/examples/auth/private-inbox-jwt/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648447, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox-jwt/cli"} +[0.468902, "o", "Network fb4f8574_default Creating\r\n"] +[0.495692, "o", "Network fb4f8574_default Created\r\n"] +[0.495834, "o", "Container fb4f8574-nats-1 Creating\r\n"] +[0.511463, "o", "Container fb4f8574-nats-1 Created\r\n"] +[0.512162, "o", "Container fb4f8574-nats-1 Starting\r\n"] +[0.575074, "o", "Error response from daemon: driver failed programming external connectivity on endpoint fb4f8574-nats-1 (be49b1873f0fd8efe9b99918472b1c4e30a4446e2b5ef440d15b6e026143b7a0): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.750923, "o", "exit status 1\r\n"] diff --git a/examples/auth/private-inbox-jwt/cli/output.txt b/examples/auth/private-inbox-jwt/cli/output.txt new file mode 100644 index 00000000..86741049 --- /dev/null +++ b/examples/auth/private-inbox-jwt/cli/output.txt @@ -0,0 +1,7 @@ +Network fb4f8574_default Creating +Network fb4f8574_default Created +Container fb4f8574-nats-1 Creating +Container fb4f8574-nats-1 Created +Container fb4f8574-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint fb4f8574-nats-1 (be49b1873f0fd8efe9b99918472b1c4e30a4446e2b5ef440d15b6e026143b7a0): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/auth/private-inbox/cli/output.cast b/examples/auth/private-inbox/cli/output.cast new file mode 100644 index 00000000..2966590b --- /dev/null +++ b/examples/auth/private-inbox/cli/output.cast @@ -0,0 +1,27 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648399, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox/cli"} +[0.430078, "o", "Network 50bd8d7f_default Creating\r\n"] +[0.452791, "o", "Network 50bd8d7f_default Created\r\n"] +[0.452833, "o", "Container 50bd8d7f-nats-1 Creating\r\n"] +[0.46632, "o", "Container 50bd8d7f-nats-1 Created\r\n"] +[0.466986, "o", "Container 50bd8d7f-nats-1 Starting\r\n"] +[0.707376, "o", "Container 50bd8d7f-nats-1 Started\r\n"] +[0.993791, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: greeter\r\n Password: *********\r\n Token: greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.012478, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: joe\r\n Password: *********\r\n Token: joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.029616, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: pam\r\n Password: *********\r\n Token: pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.047052, "o", "15:13:20 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] +[1.551619, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] +[1.55181, "o", "15:13:20 [#0] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[1.552483, "o", "15:13:20 Received with rtt 766.809µs\r\nReply 6S8BvxAOOLTywE52XnhFkc\r\n\r\n"] +[1.572357, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] +[1.572525, "o", "15:13:20 [#1] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[1.572747, "o", "Reply 6S8BvxAOOLTywE52XnhFpu\r\n\r\n15:13:20 Received with rtt 220.193µs\r\n"] +[1.594877, "o", "15:13:20 Subscribing on _INBOX.> \r\n15:13:20 Sending request on \"services.greet\"\r\n"] +[1.595185, "o", "15:13:20 [#2] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[1.595978, "o", "15:13:20 Received with rtt 305.222µs\r\nReply 6S8BvxAOOLTywE52XnhFvC\r\n\r\n[#1] Received on \"_INBOX.MTz8iLk53DrfZ4VZyXXFNB.QodZPXpE\"\r\nReply 6S8BvxAOOLTywE52XnhFvC\r\n\r\n"] +[1.616973, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] +[1.617176, "o", "15:13:20 [#3] Received on subject \"services.greet\":\r\n"] +[1.617232, "o", "\r\n\r\n"] +[1.617294, "o", "Reply 6S8BvxAOOLTywE52XnhG0U\r\n\r\n15:13:20 Received with rtt 245.806µs\r\n"] +[1.618923, "o", "Reloading the server with new config...\r\n"] +[1.63926, "o", "15:13:20 Subscribing on _INBOX.> \r\n"] +[40.80038, "o", "^C"] diff --git a/examples/auth/private-inbox/cli/output.txt b/examples/auth/private-inbox/cli/output.txt new file mode 100644 index 00000000..ddae6f70 --- /dev/null +++ b/examples/auth/private-inbox/cli/output.txt @@ -0,0 +1,69 @@ +Network 50bd8d7f_default Creating +Network 50bd8d7f_default Created +Container 50bd8d7f-nats-1 Creating +Container 50bd8d7f-nats-1 Created +Container 50bd8d7f-nats-1 Starting +Container 50bd8d7f-nats-1 Started +NATS Configuration Context "greeter" + + Server URLs: nats://nats:4222 + Username: greeter + Password: ********* + Token: greeter + Path: /nsc/.config/nats/context/greeter.json + +WARNING: Shell environment overrides in place using NATS_URL +NATS Configuration Context "joe" + + Server URLs: nats://nats:4222 + Username: joe + Password: ********* + Token: joe + Path: /nsc/.config/nats/context/joe.json + +WARNING: Shell environment overrides in place using NATS_URL +NATS Configuration Context "pam" + + Server URLs: nats://nats:4222 + Username: pam + Password: ********* + Token: pam + Path: /nsc/.config/nats/context/pam.json + +WARNING: Shell environment overrides in place using NATS_URL +15:13:20 Listening on "services.greet" in group "NATS-RPLY-22" +15:13:20 Sending request on "services.greet" +15:13:20 [#0] Received on subject "services.greet": + + +15:13:20 Received with rtt 766.809µs +Reply 6S8BvxAOOLTywE52XnhFkc + +15:13:20 Sending request on "services.greet" +15:13:20 [#1] Received on subject "services.greet": + + +Reply 6S8BvxAOOLTywE52XnhFpu + +15:13:20 Received with rtt 220.193µs +15:13:20 Subscribing on _INBOX.> +15:13:20 Sending request on "services.greet" +15:13:20 [#2] Received on subject "services.greet": + + +15:13:20 Received with rtt 305.222µs +Reply 6S8BvxAOOLTywE52XnhFvC + +[#1] Received on "_INBOX.MTz8iLk53DrfZ4VZyXXFNB.QodZPXpE" +Reply 6S8BvxAOOLTywE52XnhFvC + +15:13:20 Sending request on "services.greet" +15:13:20 [#3] Received on subject "services.greet": + + +Reply 6S8BvxAOOLTywE52XnhG0U + +15:13:20 Received with rtt 245.806µs +Reloading the server with new config... +15:13:20 Subscribing on _INBOX.> +^C \ No newline at end of file diff --git a/examples/auth/sys-account/cli/output.cast b/examples/auth/sys-account/cli/output.cast new file mode 100644 index 00000000..cfca864b --- /dev/null +++ b/examples/auth/sys-account/cli/output.cast @@ -0,0 +1,22 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648394, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/sys-account/cli"} +[0.451011, "o", "Network 4146a2bc_default Creating\r\n"] +[0.473303, "o", "Network 4146a2bc_default Created\r\n"] +[0.473625, "o", "Container 4146a2bc-nats-1 Creating\r\n"] +[0.487053, "o", "Container 4146a2bc-nats-1 Created\r\n"] +[0.4877, "o", "Container 4146a2bc-nats-1 Starting\r\n"] +[0.721312, "o", "Container 4146a2bc-nats-1 Started\r\n"] +[0.98135, "o", "+ touch server.conf\r\n"] +[0.982277, "o", "+ SERVER_PID=8\r\n+ sleep 0.5\r\n+ nats-server -c server.conf -l log.txt\r\n"] +[1.483611, "o", "+ nats server info\r\n"] +[1.529901, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.530964, "o", "+ cat\r\n"] +[1.532322, "o", "+ nats-server --signal reload=8\r\n"] +[1.536219, "o", "+ nats context save sys --user sys --password pass\r\n"] +[1.554532, "o", "NATS Configuration Context \"sys\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: sys\r\n Password: *********\r\n Token: sys\r\n Path: /nsc/.config/nats/context/sys.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.555523, "o", "+ nats --context sys server info\r\n"] +[1.573719, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.574719, "o", "+ cat\r\n"] +[1.575333, "o", "+ nats-server --signal reload=8\r\n"] +[1.577542, "o", "+ nats --context sys server info\r\n"] +[1.59599, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.597019, "o", "+ kill 8\r\n"] diff --git a/examples/auth/sys-account/cli/output.txt b/examples/auth/sys-account/cli/output.txt new file mode 100644 index 00000000..f5e25b16 --- /dev/null +++ b/examples/auth/sys-account/cli/output.txt @@ -0,0 +1,31 @@ +Network 4146a2bc_default Creating +Network 4146a2bc_default Created +Container 4146a2bc-nats-1 Creating +Container 4146a2bc-nats-1 Created +Container 4146a2bc-nats-1 Starting +Container 4146a2bc-nats-1 Started ++ touch server.conf ++ SERVER_PID=8 ++ sleep 0.5 ++ nats-server -c server.conf -l log.txt ++ nats server info +nats: error: no results received, ensure the account used has system privileges and appropriate permissions ++ cat ++ nats-server --signal reload=8 ++ nats context save sys --user sys --password pass +NATS Configuration Context "sys" + + Server URLs: nats://nats:4222 + Username: sys + Password: ********* + Token: sys + Path: /nsc/.config/nats/context/sys.json + +WARNING: Shell environment overrides in place using NATS_URL ++ nats --context sys server info +nats: error: no results received, ensure the account used has system privileges and appropriate permissions ++ cat ++ nats-server --signal reload=8 ++ nats --context sys server info +nats: error: no results received, ensure the account used has system privileges and appropriate permissions ++ kill 8 diff --git a/examples/jetstream/interest-stream/go/output.cast b/examples/jetstream/interest-stream/go/output.cast new file mode 100644 index 00000000..56a36c23 --- /dev/null +++ b/examples/jetstream/interest-stream/go/output.cast @@ -0,0 +1,21 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648199, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/interest-stream/go"} +[0.491222, "o", "Network 05d999d7_default Creating\r\n"] +[0.513646, "o", "Network 05d999d7_default Created\r\n"] +[0.513772, "o", "Container 05d999d7-nats-1 Creating\r\n"] +[0.552073, "o", "Container 05d999d7-nats-1 Created\r\n"] +[0.552737, "o", "Container 05d999d7-nats-1 Starting\r\n"] +[0.812068, "o", "Container 05d999d7-nats-1 Started\r\n"] +[1.069324, "o", "created the stream\r\n"] +[1.069586, "o", "published 3 messages\r\nlast message seq: 3\r\n# Stream info without any consumers\r\n"] +[1.069808, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T15:10:00.157481599Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:00.157481599Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.070692, "o", "\r\n# Stream info with one consumer\r\n"] +[1.070817, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T15:10:00.15848298Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T15:10:00.158557871Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] +[1.071352, "o", "\r\n# Stream info with one consumer and acked messages\r\n"] +[1.071483, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T15:10:00.158557871Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.072513, "o", "msg seqs 6 and 7"] +[1.0726, "o", "\r\n# Stream info with two consumers, but only one set of acked messages\r\n"] +[1.072745, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"2022-11-28T15:10:00.160147973Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T15:10:00.160227429Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] +[1.072946, "o", "\r\n# Stream info with two consumers having both acked\r\n"] +[1.073185, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 8,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T15:10:00.160227429Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.074046, "o", "\r\n# Stream info with three consumers with interest from two\r\n"] +[1.074216, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 9,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 8,\r\n \"last_ts\": \"2022-11-28T15:10:00.161690094Z\",\r\n \"consumer_count\": 3,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] diff --git a/examples/jetstream/interest-stream/go/output.txt b/examples/jetstream/interest-stream/go/output.txt new file mode 100644 index 00000000..8611d7f1 --- /dev/null +++ b/examples/jetstream/interest-stream/go/output.txt @@ -0,0 +1,98 @@ +Network 05d999d7_default Creating +Network 05d999d7_default Created +Container 05d999d7-nats-1 Creating +Container 05d999d7-nats-1 Created +Container 05d999d7-nats-1 Starting +Container 05d999d7-nats-1 Started +created the stream +published 3 messages +last message seq: 3 +# Stream info without any consumers +{ + "messages": 0, + "bytes": 0, + "first_seq": 4, + "first_ts": "2022-11-28T15:10:00.157481599Z", + "last_seq": 3, + "last_ts": "2022-11-28T15:10:00.157481599Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} + +# Stream info with one consumer +{ + "messages": 2, + "bytes": 100, + "first_seq": 4, + "first_ts": "2022-11-28T15:10:00.15848298Z", + "last_seq": 5, + "last_ts": "2022-11-28T15:10:00.158557871Z", + "consumer_count": 1, + "deleted": null, + "num_deleted": 0, + "num_subjects": 2, + "subjects": null +} + +# Stream info with one consumer and acked messages +{ + "messages": 0, + "bytes": 0, + "first_seq": 6, + "first_ts": "1970-01-01T00:00:00Z", + "last_seq": 5, + "last_ts": "2022-11-28T15:10:00.158557871Z", + "consumer_count": 1, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} +msg seqs 6 and 7 +# Stream info with two consumers, but only one set of acked messages +{ + "messages": 2, + "bytes": 100, + "first_seq": 6, + "first_ts": "2022-11-28T15:10:00.160147973Z", + "last_seq": 7, + "last_ts": "2022-11-28T15:10:00.160227429Z", + "consumer_count": 2, + "deleted": null, + "num_deleted": 0, + "num_subjects": 2, + "subjects": null +} + +# Stream info with two consumers having both acked +{ + "messages": 0, + "bytes": 0, + "first_seq": 8, + "first_ts": "1970-01-01T00:00:00Z", + "last_seq": 7, + "last_ts": "2022-11-28T15:10:00.160227429Z", + "consumer_count": 2, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} + +# Stream info with three consumers with interest from two +{ + "messages": 0, + "bytes": 0, + "first_seq": 9, + "first_ts": "1970-01-01T00:00:00Z", + "last_seq": 8, + "last_ts": "2022-11-28T15:10:00.161690094Z", + "consumer_count": 3, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} diff --git a/examples/jetstream/limits-stream/deno/output.cast b/examples/jetstream/limits-stream/deno/output.cast new file mode 100644 index 00000000..c91c88ee --- /dev/null +++ b/examples/jetstream/limits-stream/deno/output.cast @@ -0,0 +1,14 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648192, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/deno"} +[0.528534, "o", "Network c743e892_default Creating\r\n"] +[0.558535, "o", "Network c743e892_default Created\r\n"] +[0.558696, "o", "Container c743e892-nats-1 Creating\r\n"] +[0.575622, "o", "Container c743e892-nats-1 Created\r\n"] +[0.577321, "o", "Container c743e892-nats-1 Starting\r\n"] +[0.848032, "o", "Container c743e892-nats-1 Started\r\n"] +[1.186767, "o", "created the stream\r\n"] +[1.196157, "o", "published 6 messages\r\n"] +[1.197085, "o", "published another 6 messages\r\n"] +[1.200268, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: \"2022-11-28T15:09:53.282709674Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.203185, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: \"2022-11-28T15:09:53.285830909Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.206919, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: \"2022-11-28T15:09:53.291059747Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] +[2.213528, "o", "{\r\n messages: 0,\r\n bytes: 0,\r\n first_seq: 13,\r\n first_ts: \"1970-01-01T00:00:00Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n consumer_count: 0\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/deno/output.txt b/examples/jetstream/limits-stream/deno/output.txt new file mode 100644 index 00000000..17b3101c --- /dev/null +++ b/examples/jetstream/limits-stream/deno/output.txt @@ -0,0 +1,48 @@ +Network c743e892_default Creating +Network c743e892_default Created +Container c743e892-nats-1 Creating +Container c743e892-nats-1 Created +Container c743e892-nats-1 Starting +Container c743e892-nats-1 Started +created the stream +published 6 messages +published another 6 messages +{ + messages: 12, + bytes: 594, + first_seq: 1, + first_ts: "2022-11-28T15:09:53.282709674Z", + last_seq: 12, + last_ts: "2022-11-28T15:09:53.291122527Z", + num_subjects: 6, + consumer_count: 0 +} +{ + messages: 10, + bytes: 496, + first_seq: 3, + first_ts: "2022-11-28T15:09:53.285830909Z", + last_seq: 12, + last_ts: "2022-11-28T15:09:53.291122527Z", + num_subjects: 6, + consumer_count: 0 +} +{ + messages: 6, + bytes: 298, + first_seq: 7, + first_ts: "2022-11-28T15:09:53.291059747Z", + last_seq: 12, + last_ts: "2022-11-28T15:09:53.291122527Z", + num_subjects: 4, + consumer_count: 0 +} +{ + messages: 0, + bytes: 0, + first_seq: 13, + first_ts: "1970-01-01T00:00:00Z", + last_seq: 12, + last_ts: "2022-11-28T15:09:53.291122527Z", + consumer_count: 0 +} diff --git a/examples/jetstream/limits-stream/go/output.cast b/examples/jetstream/limits-stream/go/output.cast new file mode 100644 index 00000000..d191e667 --- /dev/null +++ b/examples/jetstream/limits-stream/go/output.cast @@ -0,0 +1,19 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648181, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/go"} +[0.506388, "o", "Network 62ad5d49_default Creating\r\n"] +[0.529553, "o", "Network 62ad5d49_default Created\r\n"] +[0.529669, "o", "Container 62ad5d49-nats-1 Creating\r\n"] +[0.547662, "o", "Container 62ad5d49-nats-1 Created\r\n"] +[0.548344, "o", "Container 62ad5d49-nats-1 Starting\r\n"] +[0.793481, "o", "Container 62ad5d49-nats-1 Started\r\n"] +[1.052442, "o", "created the stream\r\n"] +[1.05295, "o", "published 6 messages\r\n"] +[1.053045, "o", "published 6 messages\r\n"] +[1.053646, "o", "inspecting stream info\r\n{\r\n \"messages\": 12,\r\n \"bytes\": 594,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T15:09:42.133118312Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] +[1.053961, "o", "set max messages to 10\r\n"] +[1.05411, "o", "inspecting stream info\r\n{\r\n \"messages\": 10,\r\n \"bytes\": 496,\r\n \"first_seq\": 3,\r\n \"first_ts\": \"2022-11-28T15:09:42.133351107Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] +[1.054381, "o", "set max bytes to 300\r\n"] +[1.054554, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T15:09:42.133639938Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n"] +[1.054617, "o", " \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\n"] +[1.054868, "o", "set max age to one second\r\n"] +[1.055071, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T15:09:42.133639938Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\nsleeping one second...\r\n"] +[2.055944, "o", "inspecting stream info\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 13,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/go/output.txt b/examples/jetstream/limits-stream/go/output.txt new file mode 100644 index 00000000..ff5de2b1 --- /dev/null +++ b/examples/jetstream/limits-stream/go/output.txt @@ -0,0 +1,83 @@ +Network 62ad5d49_default Creating +Network 62ad5d49_default Created +Container 62ad5d49-nats-1 Creating +Container 62ad5d49-nats-1 Created +Container 62ad5d49-nats-1 Starting +Container 62ad5d49-nats-1 Started +created the stream +published 6 messages +published 6 messages +inspecting stream info +{ + "messages": 12, + "bytes": 594, + "first_seq": 1, + "first_ts": "2022-11-28T15:09:42.133118312Z", + "last_seq": 12, + "last_ts": "2022-11-28T15:09:42.133696589Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 6, + "subjects": null +} +set max messages to 10 +inspecting stream info +{ + "messages": 10, + "bytes": 496, + "first_seq": 3, + "first_ts": "2022-11-28T15:09:42.133351107Z", + "last_seq": 12, + "last_ts": "2022-11-28T15:09:42.133696589Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 6, + "subjects": null +} +set max bytes to 300 +inspecting stream info +{ + "messages": 6, + "bytes": 298, + "first_seq": 7, + "first_ts": "2022-11-28T15:09:42.133639938Z", + "last_seq": 12, + "last_ts": "2022-11-28T15:09:42.133696589Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 4, + "subjects": null +} +set max age to one second +inspecting stream info +{ + "messages": 6, + "bytes": 298, + "first_seq": 7, + "first_ts": "2022-11-28T15:09:42.133639938Z", + "last_seq": 12, + "last_ts": "2022-11-28T15:09:42.133696589Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 4, + "subjects": null +} +sleeping one second... +inspecting stream info +{ + "messages": 0, + "bytes": 0, + "first_seq": 13, + "first_ts": "1970-01-01T00:00:00Z", + "last_seq": 12, + "last_ts": "2022-11-28T15:09:42.133696589Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} diff --git a/examples/jetstream/limits-stream/node/output.cast b/examples/jetstream/limits-stream/node/output.cast new file mode 100644 index 00000000..f0813bb1 --- /dev/null +++ b/examples/jetstream/limits-stream/node/output.cast @@ -0,0 +1,15 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648185, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/node"} +[0.503967, "o", "Network c38b940e_default Creating\r\n"] +[0.527528, "o", "Network c38b940e_default Created\r\n"] +[0.527651, "o", "Container c38b940e-nats-1 Creating\r\n"] +[0.541664, "o", "Container c38b940e-nats-1 Created\r\n"] +[0.542406, "o", "Container c38b940e-nats-1 Starting\r\n"] +[0.803401, "o", "Container c38b940e-nats-1 Started\r\n"] +[1.244828, "o", "created the stream\r\n"] +[1.253934, "o", "published 6 messages\r\n"] +[1.256067, "o", "published another 6 messages\r\n"] +[1.25927, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: '2022-11-28T15:09:46.352771726Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.264229, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: '2022-11-28T15:09:46.355841761Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.268677, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: '2022-11-28T15:09:46.361837989Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] +[1.272621, "o", "/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187\r\n return new error_1.NatsError(description, `${code}`);\r\n ^\r\n\r\nNatsError: duplicates window can not be larger then max age\r\n at checkJsErrorCode (/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187:20)\r\n at StreamAPIImpl.parseJsResponse (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:89:55)\r\n at StreamAPIImpl. (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:71:25)\r\n at Generator.next ()\r\n at fulfilled (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:19:58)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {\r\n code: '500',\r\n chainedError: undefined,\r\n api_error: {\r\n code: 500,\r\n err_code: 10052,\r\n description: 'duplicates window can not be larger then max age'\r\n }\r\n}\r\n\r\nNode.js v19.1.0\r\n"] +[1.747013, "o", "exit status 1\r\n"] diff --git a/examples/jetstream/limits-stream/node/output.txt b/examples/jetstream/limits-stream/node/output.txt new file mode 100644 index 00000000..c6e74dcd --- /dev/null +++ b/examples/jetstream/limits-stream/node/output.txt @@ -0,0 +1,61 @@ +Network c38b940e_default Creating +Network c38b940e_default Created +Container c38b940e-nats-1 Creating +Container c38b940e-nats-1 Created +Container c38b940e-nats-1 Starting +Container c38b940e-nats-1 Started +created the stream +published 6 messages +published another 6 messages +{ + messages: 12, + bytes: 594, + first_seq: 1, + first_ts: '2022-11-28T15:09:46.352771726Z', + last_seq: 12, + last_ts: '2022-11-28T15:09:46.361869771Z', + num_subjects: 6, + consumer_count: 0 +} +{ + messages: 10, + bytes: 496, + first_seq: 3, + first_ts: '2022-11-28T15:09:46.355841761Z', + last_seq: 12, + last_ts: '2022-11-28T15:09:46.361869771Z', + num_subjects: 6, + consumer_count: 0 +} +{ + messages: 6, + bytes: 298, + first_seq: 7, + first_ts: '2022-11-28T15:09:46.361837989Z', + last_seq: 12, + last_ts: '2022-11-28T15:09:46.361869771Z', + num_subjects: 4, + consumer_count: 0 +} +/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187 + return new error_1.NatsError(description, `${code}`); + ^ + +NatsError: duplicates window can not be larger then max age + at checkJsErrorCode (/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187:20) + at StreamAPIImpl.parseJsResponse (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:89:55) + at StreamAPIImpl. (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:71:25) + at Generator.next () + at fulfilled (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:19:58) + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { + code: '500', + chainedError: undefined, + api_error: { + code: 500, + err_code: 10052, + description: 'duplicates window can not be larger then max age' + } +} + +Node.js v19.1.0 +exit status 1 diff --git a/examples/jetstream/multi-stream-consumption/go/output.cast b/examples/jetstream/multi-stream-consumption/go/output.cast new file mode 100644 index 00000000..96c2d7aa --- /dev/null +++ b/examples/jetstream/multi-stream-consumption/go/output.cast @@ -0,0 +1,10 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648348, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/multi-stream-consumption/go"} +[0.508356, "o", "Network 74876d33_default Creating\r\n"] +[0.531446, "o", "Network 74876d33_default Created\r\n"] +[0.531625, "o", "Container 74876d33-nats-1 Creating\r\n"] +[0.545237, "o", "Container 74876d33-nats-1 Created\r\n"] +[0.546439, "o", "Container 74876d33-nats-1 Starting\r\n"] +[0.799885, "o", "Container 74876d33-nats-1 Started\r\n"] +[1.054798, "o", "events.us.page_loaded\r\nevents.us.mouse_clicked\r\nevents.us.input_focused\r\nevents.eu.page_loaded\r\nevents.eu.input_focused\r\nevents.eu.mouse_clicked\r\n"] +[2.055588, "o", "eu: last delivered: 3, num pending: 0\r\n"] +[2.05574, "o", "us: last delivered: 3, num pending: 0\r\n"] diff --git a/examples/jetstream/multi-stream-consumption/go/output.txt b/examples/jetstream/multi-stream-consumption/go/output.txt new file mode 100644 index 00000000..ab0a4c95 --- /dev/null +++ b/examples/jetstream/multi-stream-consumption/go/output.txt @@ -0,0 +1,14 @@ +Network 74876d33_default Creating +Network 74876d33_default Created +Container 74876d33-nats-1 Creating +Container 74876d33-nats-1 Created +Container 74876d33-nats-1 Starting +Container 74876d33-nats-1 Started +events.us.page_loaded +events.us.mouse_clicked +events.us.input_focused +events.eu.page_loaded +events.eu.input_focused +events.eu.mouse_clicked +eu: last delivered: 3, num pending: 0 +us: last delivered: 3, num pending: 0 diff --git a/examples/jetstream/pull-consumer-limits/go/output.cast b/examples/jetstream/pull-consumer-limits/go/output.cast new file mode 100644 index 00000000..4918d5dc --- /dev/null +++ b/examples/jetstream/pull-consumer-limits/go/output.cast @@ -0,0 +1,13 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648323, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer-limits/go"} +[0.528205, "o", "Network 92b21fe7_default Creating\r\n"] +[0.551214, "o", "Network 92b21fe7_default Created\r\n"] +[0.551352, "o", "Container 92b21fe7-nats-1 Creating\r\n"] +[0.564371, "o", "Container 92b21fe7-nats-1 Created\r\n"] +[0.565033, "o", "Container 92b21fe7-nats-1 Starting\r\n"] +[0.81289, "o", "Container 92b21fe7-nats-1 Started\r\n"] +[1.072885, "o", "--- max in-flight messages (n=1) ---\r\n"] +[1.073445, "o", "requested 3, got 2\r\n"] +[2.073815, "o", "nats: timeout\r\n"] +[7.074649, "o", "requested 1, got 0\r\n"] +[7.076651, "o", "panic: runtime error: index out of range [0] with length 0\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n\t/opt/app/main.go:95 +0xd9e\r\n"] +[7.495375, "o", "exit status 2\r\n"] diff --git a/examples/jetstream/pull-consumer-limits/go/output.txt b/examples/jetstream/pull-consumer-limits/go/output.txt new file mode 100644 index 00000000..a08407d8 --- /dev/null +++ b/examples/jetstream/pull-consumer-limits/go/output.txt @@ -0,0 +1,16 @@ +Network 92b21fe7_default Creating +Network 92b21fe7_default Created +Container 92b21fe7-nats-1 Creating +Container 92b21fe7-nats-1 Created +Container 92b21fe7-nats-1 Starting +Container 92b21fe7-nats-1 Started +--- max in-flight messages (n=1) --- +requested 3, got 2 +nats: timeout +requested 1, got 0 +panic: runtime error: index out of range [0] with length 0 + +goroutine 1 [running]: +main.main() + /opt/app/main.go:95 +0xd9e +exit status 2 diff --git a/examples/jetstream/pull-consumer/go/output.cast b/examples/jetstream/pull-consumer/go/output.cast new file mode 100644 index 00000000..ec85096d --- /dev/null +++ b/examples/jetstream/pull-consumer/go/output.cast @@ -0,0 +1,15 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648214, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/go"} +[0.507087, "o", "Network 60ce4760_default Creating\r\n"] +[0.530424, "o", "Network 60ce4760_default Created\r\n"] +[0.530533, "o", "Container 60ce4760-nats-1 Creating\r\n"] +[0.566174, "o", "Container 60ce4760-nats-1 Created\r\n"] +[0.566824, "o", "Container 60ce4760-nats-1 Starting\r\n"] +[0.847107, "o", "Container 60ce4760-nats-1 Started\r\n"] +[1.123202, "o", "ephemeral name is \"IB4t47JU\"\r\n"] +[1.123361, "o", "got 2 messages\r\n"] +[1.123599, "o", "got 1 messages\r\n"] +[2.124778, "o", "timeout? true\r\n"] +[2.126228, "o", "received \"events.1\" from sub1\r\n"] +[2.126465, "o", "received \"events.2\" from sub1 (after reconnect)\r\n"] +[2.126808, "o", "received \"events.3\" from sub2\r\n"] +[3.126983, "o", "timeout on sub1? true\r\n"] diff --git a/examples/jetstream/pull-consumer/go/output.txt b/examples/jetstream/pull-consumer/go/output.txt new file mode 100644 index 00000000..b3f6d3db --- /dev/null +++ b/examples/jetstream/pull-consumer/go/output.txt @@ -0,0 +1,14 @@ +Network 60ce4760_default Creating +Network 60ce4760_default Created +Container 60ce4760-nats-1 Creating +Container 60ce4760-nats-1 Created +Container 60ce4760-nats-1 Starting +Container 60ce4760-nats-1 Started +ephemeral name is "IB4t47JU" +got 2 messages +got 1 messages +timeout? true +received "events.1" from sub1 +received "events.2" from sub1 (after reconnect) +received "events.3" from sub2 +timeout on sub1? true diff --git a/examples/jetstream/pull-consumer/rust/output.cast b/examples/jetstream/pull-consumer/rust/output.cast new file mode 100644 index 00000000..e8fc5e98 --- /dev/null +++ b/examples/jetstream/pull-consumer/rust/output.cast @@ -0,0 +1,9 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648317, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/rust"} +[0.530768, "o", "Network eaba061e_default Creating\r\n"] +[0.55348, "o", "Network eaba061e_default Created\r\n"] +[0.553597, "o", "Container eaba061e-nats-1 Creating\r\n"] +[0.594775, "o", "Container eaba061e-nats-1 Created\r\n"] +[0.595462, "o", "Container eaba061e-nats-1 Starting\r\n"] +[0.874147, "o", "Container eaba061e-nats-1 Started\r\n"] +[1.160427, "o", "got message on subject events.0 with payload \"data\"\r\ngot message on subject events.1 with payload \"data\"\r\ngot message on subject events.2 with payload \"data\"\r\ngot message on subject events.3 with payload \"data\"\r\ngot message on subject events.4 with payload \"data\"\r\ngot message on subject events.5 with payload \"data\"\r\n"] +[1.16056, "o", "got message on subject events.6 with payload \"data\"\r\ngot message on subject events.7 with payload \"data\"\r\ngot message on subject events.8 with payload \"data\"\r\ngot message on subject events.9 with payload \"data\"\r\n"] diff --git a/examples/jetstream/pull-consumer/rust/output.txt b/examples/jetstream/pull-consumer/rust/output.txt new file mode 100644 index 00000000..580477fb --- /dev/null +++ b/examples/jetstream/pull-consumer/rust/output.txt @@ -0,0 +1,16 @@ +Network eaba061e_default Creating +Network eaba061e_default Created +Container eaba061e-nats-1 Creating +Container eaba061e-nats-1 Created +Container eaba061e-nats-1 Starting +Container eaba061e-nats-1 Started +got message on subject events.0 with payload "data" +got message on subject events.1 with payload "data" +got message on subject events.2 with payload "data" +got message on subject events.3 with payload "data" +got message on subject events.4 with payload "data" +got message on subject events.5 with payload "data" +got message on subject events.6 with payload "data" +got message on subject events.7 with payload "data" +got message on subject events.8 with payload "data" +got message on subject events.9 with payload "data" diff --git a/examples/jetstream/push-consumer/go/output.cast b/examples/jetstream/push-consumer/go/output.cast new file mode 100644 index 00000000..cccd8cd3 --- /dev/null +++ b/examples/jetstream/push-consumer/go/output.cast @@ -0,0 +1,18 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648335, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/push-consumer/go"} +[0.499575, "o", "Network 31720370_default Creating\r\n"] +[0.521513, "o", "Network 31720370_default Created\r\n"] +[0.521554, "o", "Container 31720370-nats-1 Creating\r\n"] +[0.544924, "o", "Container 31720370-nats-1 Created\r\n"] +[0.54553, "o", "Container 31720370-nats-1 Starting\r\n"] +[0.807781, "o", "Container 31720370-nats-1 Started\r\n"] +[1.056035, "o", "# Ephemeral\r\n"] +[1.057071, "o", "ephemeral name is \"mpKRrfwC\"\r\n3 messages queued\r\n"] +[1.057296, "o", "6 messages queued\r\nreceived \"events.1\"\r\nreceived \"events.2\"\r\n4 messages queued\r\n"] +[1.057635, "o", "\r\n# Durable (Helper)\r\n"] +[1.0583, "o", "6 messages queued\r\n"] +[1.058634, "o", "nats: consumer not found\r\n\r\n# Durable (AddConsumer)\r\n"] +[1.059454, "o", "received \"events.1\"\r\n5 messages queued\r\n"] +[1.059598, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 6\r\nnum ack pending: 5\r\nnum redelivered: 0\r\n"] +[1.160174, "o", "received timeout? true\r\n"] +[2.061742, "o", "received \"events.2\" (delivery #2)\r\n"] +[2.062108, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 11\r\nnum ack pending: 4\r\nnum redelivered: 4\r\n"] diff --git a/examples/jetstream/push-consumer/go/output.txt b/examples/jetstream/push-consumer/go/output.txt new file mode 100644 index 00000000..cd1cb14c --- /dev/null +++ b/examples/jetstream/push-consumer/go/output.txt @@ -0,0 +1,31 @@ +Network 31720370_default Creating +Network 31720370_default Created +Container 31720370-nats-1 Creating +Container 31720370-nats-1 Created +Container 31720370-nats-1 Starting +Container 31720370-nats-1 Started +# Ephemeral +ephemeral name is "mpKRrfwC" +3 messages queued +6 messages queued +received "events.1" +received "events.2" +4 messages queued + +# Durable (Helper) +6 messages queued +nats: consumer not found + +# Durable (AddConsumer) +received "events.1" +5 messages queued +max stream sequence delivered: 6 +max consumer sequence delivered: 6 +num ack pending: 5 +num redelivered: 0 +received timeout? true +received "events.2" (delivery #2) +max stream sequence delivered: 6 +max consumer sequence delivered: 11 +num ack pending: 4 +num redelivered: 4 diff --git a/examples/jetstream/queue-push-consumer/go/output.cast b/examples/jetstream/queue-push-consumer/go/output.cast new file mode 100644 index 00000000..6e57050c --- /dev/null +++ b/examples/jetstream/queue-push-consumer/go/output.cast @@ -0,0 +1,13 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648342, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/queue-push-consumer/go"} +[0.523185, "o", "Network 9123e333_default Creating\r\n"] +[0.545313, "o", "Network 9123e333_default Created\r\n"] +[0.54543, "o", "Container 9123e333-nats-1 Creating\r\n"] +[0.590988, "o", "Container 9123e333-nats-1 Created\r\n"] +[0.591972, "o", "Container 9123e333-nats-1 Starting\r\n"] +[0.803285, "o", "Container 9123e333-nats-1 Started\r\n"] +[1.055165, "o", "# Durable (implicit)\r\n"] +[1.056263, "o", "deliver group: \"event-processor\"\r\n"] +[1.056541, "o", "deliver subject: \"_INBOX.3PK2fvr3Dj4vhWPrm6rs6w\"\r\n"] +[1.057227, "o", "sub1: received message \"events.1\"\r\nsub2: received message \"events.2\"\r\nsub3: received message \"events.4\"\r\n"] +[1.057598, "o", "\r\n# Durable (explicit)\r\n"] +[1.0583, "o", "sub3: received message \"events.2\"\r\nsub2: received message \"events.1\"\r\nsub3: received message \"events.3\"\r\nsub3: received message \"events.4\"\r\nsub3: received message \"events.5\"\r\nsub3: received message \"events.6\"\r\n"] diff --git a/examples/jetstream/queue-push-consumer/go/output.txt b/examples/jetstream/queue-push-consumer/go/output.txt new file mode 100644 index 00000000..340ccfe7 --- /dev/null +++ b/examples/jetstream/queue-push-consumer/go/output.txt @@ -0,0 +1,20 @@ +Network 9123e333_default Creating +Network 9123e333_default Created +Container 9123e333-nats-1 Creating +Container 9123e333-nats-1 Created +Container 9123e333-nats-1 Starting +Container 9123e333-nats-1 Started +# Durable (implicit) +deliver group: "event-processor" +deliver subject: "_INBOX.3PK2fvr3Dj4vhWPrm6rs6w" +sub1: received message "events.1" +sub2: received message "events.2" +sub3: received message "events.4" + +# Durable (explicit) +sub3: received message "events.2" +sub2: received message "events.1" +sub3: received message "events.3" +sub3: received message "events.4" +sub3: received message "events.5" +sub3: received message "events.6" diff --git a/examples/jetstream/workqueue-stream/go/output.cast b/examples/jetstream/workqueue-stream/go/output.cast new file mode 100644 index 00000000..9a456d7f --- /dev/null +++ b/examples/jetstream/workqueue-stream/go/output.cast @@ -0,0 +1,18 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648205, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/workqueue-stream/go"} +[0.574903, "o", "Network bcd33834_default Creating\r\n"] +[0.596538, "o", "Network bcd33834_default Created\r\n"] +[0.59666, "o", "Container bcd33834-nats-1 Creating\r\n"] +[0.609595, "o", "Container bcd33834-nats-1 Created\r\n"] +[0.610289, "o", "Container bcd33834-nats-1 Starting\r\n"] +[0.879603, "o", "Container bcd33834-nats-1 Started\r\n"] +[1.134583, "o", "created the stream\r\n"] +[1.135265, "o", "published 3 messages\r\n# Stream info without any consumers\r\n"] +[1.136007, "o", "{\r\n \"messages\": 3,\r\n \"bytes\": 157,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T15:10:06.222737599Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:06.223238038Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 3,\r\n \"subjects\": null\r\n}\r\n"] +[1.138876, "o", "\r\n# Stream info with one consumer\r\n"] +[1.139383, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:06.223238038Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.140271, "o", "\r\n# Create an overlapping consumer\r\nnats: multiple non-filtered consumers not allowed on workqueue stream\r\n"] +[1.141345, "o", "created the new consumer? true\r\n"] +[1.141534, "o", "\r\n# Create non-overlapping consumers\r\n"] +[1.143105, "o", "published 4 messages\r\n"] +[1.143192, "o", "us sub got: events.us.page_loaded\r\nus sub got: events.us.input_focused\r\n"] +[1.143444, "o", "eu sub got: events.eu.mouse_clicked\r\neu sub got: events.eu.page_loaded\r\n"] diff --git a/examples/jetstream/workqueue-stream/go/output.txt b/examples/jetstream/workqueue-stream/go/output.txt new file mode 100644 index 00000000..2dd808b9 --- /dev/null +++ b/examples/jetstream/workqueue-stream/go/output.txt @@ -0,0 +1,48 @@ +Network bcd33834_default Creating +Network bcd33834_default Created +Container bcd33834-nats-1 Creating +Container bcd33834-nats-1 Created +Container bcd33834-nats-1 Starting +Container bcd33834-nats-1 Started +created the stream +published 3 messages +# Stream info without any consumers +{ + "messages": 3, + "bytes": 157, + "first_seq": 1, + "first_ts": "2022-11-28T15:10:06.222737599Z", + "last_seq": 3, + "last_ts": "2022-11-28T15:10:06.223238038Z", + "consumer_count": 0, + "deleted": null, + "num_deleted": 0, + "num_subjects": 3, + "subjects": null +} + +# Stream info with one consumer +{ + "messages": 0, + "bytes": 0, + "first_seq": 4, + "first_ts": "1970-01-01T00:00:00Z", + "last_seq": 3, + "last_ts": "2022-11-28T15:10:06.223238038Z", + "consumer_count": 1, + "deleted": null, + "num_deleted": 0, + "num_subjects": 0, + "subjects": null +} + +# Create an overlapping consumer +nats: multiple non-filtered consumers not allowed on workqueue stream +created the new consumer? true + +# Create non-overlapping consumers +published 4 messages +us sub got: events.us.page_loaded +us sub got: events.us.input_focused +eu sub got: events.eu.mouse_clicked +eu sub got: events.eu.page_loaded diff --git a/examples/kv/intro/go/output.cast b/examples/kv/intro/go/output.cast new file mode 100644 index 00000000..0d2710be --- /dev/null +++ b/examples/kv/intro/go/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648517, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: kv/intro/go"} +[0.49216, "o", "Network 06f9aae1_default Creating\r\n"] +[0.516738, "o", "Network 06f9aae1_default Created\r\n"] +[0.516885, "o", "Container 06f9aae1-nats-1 Creating\r\n"] +[0.532376, "o", "Container 06f9aae1-nats-1 Created\r\n"] +[0.53324, "o", "Container 06f9aae1-nats-1 Starting\r\n"] +[0.601306, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 06f9aae1-nats-1 (0b1af6ca9e0ea9e08581a3bb99d97a132c9264246ea446bec193354a95a7e3bb): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.742696, "o", "exit status 1\r\n"] diff --git a/examples/kv/intro/go/output.txt b/examples/kv/intro/go/output.txt new file mode 100644 index 00000000..4f76751a --- /dev/null +++ b/examples/kv/intro/go/output.txt @@ -0,0 +1,7 @@ +Network 06f9aae1_default Creating +Network 06f9aae1_default Created +Container 06f9aae1-nats-1 Creating +Container 06f9aae1-nats-1 Created +Container 06f9aae1-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint 06f9aae1-nats-1 (0b1af6ca9e0ea9e08581a3bb99d97a132c9264246ea446bec193354a95a7e3bb): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/messaging/concurrent/rust/output.cast b/examples/messaging/concurrent/rust/output.cast new file mode 100644 index 00000000..fd0bcf6d --- /dev/null +++ b/examples/messaging/concurrent/rust/output.cast @@ -0,0 +1,53 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648075, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/concurrent/rust"} +[0.46255, "o", "Network 98a436c8_default Creating\r\n"] +[0.486128, "o", "Network 98a436c8_default Created\r\n"] +[0.486258, "o", "Container 98a436c8-nats-1 Creating\r\n"] +[0.509467, "o", "Container 98a436c8-nats-1 Created\r\n"] +[0.510105, "o", "Container 98a436c8-nats-1 Starting\r\n"] +[0.78346, "o", "Container 98a436c8-nats-1 Started\r\n"] +[1.054118, "o", "received message: \"hello 24\"\r\n"] +[1.104421, "o", "received message: \"hello 17\"\r\n"] +[1.116745, "o", "received message: \"hello 11\"\r\n"] +[1.120713, "o", "received message: \"hello 19\"\r\nreceived message: \"hello 23\"\r\n"] +[1.167502, "o", "received message: \"hello 12\"\r\n"] +[1.184941, "o", "received message: \"hello 30\"\r\n"] +[1.192092, "o", "received message: \"hello 2\"\r\n"] +[1.193122, "o", "received message: \"hello 28\"\r\n"] +[1.201448, "o", "received message: \"hello 25\"\r\n"] +[1.232, "o", "received message: \"hello 15\"\r\n"] +[1.249287, "o", "received message: \"hello 7\"\r\n"] +[1.254471, "o", "received message: \"hello 0\"\r\n"] +[1.266711, "o", "received message: \"hello 1\"\r\n"] +[1.289007, "o", "received message: \"hello 32\"\r\n"] +[1.291051, "o", "received message: \"hello 13\"\r\n"] +[1.29822, "o", "received message: \"hello 29\"\r\n"] +[1.302348, "o", "received message: \"hello 26\"\r\n"] +[1.312704, "o", "received message: \"hello 14\"\r\n"] +[1.338053, "o", "received message: \"hello 41\"\r\nreceived message: \"hello 37\"\r\n"] +[1.34405, "o", "received message: \"hello 5\"\r\n"] +[1.363925, "o", "received message: \"hello 35\"\r\n"] +[1.421371, "o", "received message: \"hello 31\"\r\n"] +[1.42757, "o", "received message: \"hello 16\"\r\n"] +[1.42865, "o", "received message: \"hello 10\"\r\n"] +[1.442654, "o", "received message: \"hello 9\"\r\n"] +[1.461826, "o", "received message: \"hello 20\"\r\nreceived message: \"hello 22\"\r\nreceived message: \"hello 33\"\r\n"] +[1.47791, "o", "received message: \"hello 3\"\r\n"] +[1.49017, "o", "received message: \"hello 39\"\r\n"] +[1.494316, "o", "received message: \"hello 27\"\r\n"] +[1.495398, "o", "received message: \"hello 4\"\r\n"] +[1.496494, "o", "received message: \"hello 47\"\r\n"] +[1.511795, "o", "received message: \"hello 6\"\r\n"] +[1.517872, "o", "received message: \"hello 34\"\r\n"] +[1.524071, "o", "received message: \"hello 21\"\r\n"] +[1.530286, "o", "received message: \"hello 18\"\r\n"] +[1.532423, "o", "received message: \"hello 8\"\r\n"] +[1.539616, "o", "received message: \"hello 40\"\r\n"] +[1.554075, "o", "received message: \"hello 46\"\r\n"] +[1.56211, "o", "received message: \"hello 44\"\r\n"] +[1.629714, "o", "received message: \"hello 38\"\r\n"] +[1.647115, "o", "received message: \"hello 48\"\r\n"] +[1.669057, "o", "received message: \"hello 49\"\r\n"] +[1.705625, "o", "received message: \"hello 36\"\r\n"] +[1.718497, "o", "received message: \"hello 45\"\r\n"] +[1.732563, "o", "received message: \"hello 42\"\r\n"] +[1.789155, "o", "received message: \"hello 43\"\r\n"] diff --git a/examples/messaging/concurrent/rust/output.txt b/examples/messaging/concurrent/rust/output.txt new file mode 100644 index 00000000..7a47fa00 --- /dev/null +++ b/examples/messaging/concurrent/rust/output.txt @@ -0,0 +1,56 @@ +Network 98a436c8_default Creating +Network 98a436c8_default Created +Container 98a436c8-nats-1 Creating +Container 98a436c8-nats-1 Created +Container 98a436c8-nats-1 Starting +Container 98a436c8-nats-1 Started +received message: "hello 24" +received message: "hello 17" +received message: "hello 11" +received message: "hello 19" +received message: "hello 23" +received message: "hello 12" +received message: "hello 30" +received message: "hello 2" +received message: "hello 28" +received message: "hello 25" +received message: "hello 15" +received message: "hello 7" +received message: "hello 0" +received message: "hello 1" +received message: "hello 32" +received message: "hello 13" +received message: "hello 29" +received message: "hello 26" +received message: "hello 14" +received message: "hello 41" +received message: "hello 37" +received message: "hello 5" +received message: "hello 35" +received message: "hello 31" +received message: "hello 16" +received message: "hello 10" +received message: "hello 9" +received message: "hello 20" +received message: "hello 22" +received message: "hello 33" +received message: "hello 3" +received message: "hello 39" +received message: "hello 27" +received message: "hello 4" +received message: "hello 47" +received message: "hello 6" +received message: "hello 34" +received message: "hello 21" +received message: "hello 18" +received message: "hello 8" +received message: "hello 40" +received message: "hello 46" +received message: "hello 44" +received message: "hello 38" +received message: "hello 48" +received message: "hello 49" +received message: "hello 36" +received message: "hello 45" +received message: "hello 42" +received message: "hello 43" diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.cast b/examples/messaging/iterating-multiple-subscriptions/rust/output.cast new file mode 100644 index 00000000..b17ffac0 --- /dev/null +++ b/examples/messaging/iterating-multiple-subscriptions/rust/output.cast @@ -0,0 +1,66 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648175, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/iterating-multiple-subscriptions/rust"} +[0.494015, "o", "Network f105c02d_default Creating\r\n"] +[0.517548, "o", "Network f105c02d_default Created\r\nContainer f105c02d-nats-1 Creating\r\n"] +[0.555753, "o", "Container f105c02d-nats-1 Created\r\n"] +[0.55634, "o", "Container f105c02d-nats-1 Starting\r\n"] +[0.778065, "o", "Container f105c02d-nats-1 Started\r\n"] +[1.06021, "o", "received message on subject cars.0 with paylaod car number 0\r\nreceived message on subject ships.0 with paylaod ship number 0\r\nreceived message on subject cars.1 with paylaod car number 1\r\nreceived message on subject ships.1 with paylaod ship number 1\r\nreceived message on subject cars.2 with paylaod car number 2\r\nreceived message on subject cars.3 with paylaod car number 3\r\nreceived message on subject ships.2 with paylaod ship number 2\r\nreceived message on subject cars.4 with paylaod car number 4\r\nreceived message on subject ships.3 with paylaod ship number 3\r\nreceived message on subject cars.5 with paylaod car number 5\r\nreceived message on subject cars.6 with paylaod car number 6\r\nreceived message on subject ships.4 with paylaod ship number 4\r\nreceived message on subject cars.7 with paylaod car number 7\r\nreceived message on subject planes.0 with paylaod plane number 0\r\nreceived message on subject cars.8 with paylaod car number 8\r\n"] +[1.060327, "o", "received message on subject ships.5 with paylaod ship number 5\r\nreceived message on subject cars.9 with paylaod car number 9\r\n"] +[1.060531, "o", "received message on subject ships.6 with paylaod ship number 6\r\nreceived message on subject planes.1 with paylaod plane number 1\r\nreceived message on subject cars.10 with paylaod car number 10\r\nreceived message on subject ships.7 with paylaod ship number 7\r\nreceived message on subject planes.2 with paylaod plane number 2\r\nreceived message on subject cars.11 with paylaod car number 11\r\nreceived message on subject ships.8 with paylaod ship number 8\r\nreceived message on subject cars.12 with paylaod car number 12\r\nreceived message on subject ships.9 with paylaod ship number 9\r\nreceived message on subject planes.3 with paylaod plane number 3\r\n"] +[1.060612, "o", "received message on subject planes.4 with paylaod plane number 4\r\nreceived message on subject cars.13 with paylaod car number 13\r\nreceived message on subject ships.10 with paylaod ship number 10\r\nreceived message on subject planes.5 with paylaod plane number 5\r\n"] +[1.060674, "o", "received message on subject cars.14 with paylaod car number 14\r\nreceived message on subject ships.11 with paylaod ship number 11\r\nreceived message on subject planes.6 with paylaod plane number 6\r\nreceived message on subject cars.15 with paylaod car number 15\r\nreceived message on subject ships.12 with paylaod ship number 12\r\nreceived message on subject planes.7 with paylaod plane number 7\r\n"] +[1.060761, "o", "received message on subject cars.16 with paylaod car number 16\r\nreceived message on subject ships.13 with paylaod ship number 13\r\nreceived message on subject planes.8 with paylaod plane number 8\r\nreceived message on subject cars.17 with paylaod car number 17\r\nreceived message on subject ships.14 with paylaod ship number 14\r\nreceived message on subject planes.9 with paylaod plane number 9\r\nreceived message on subject cars.18 with paylaod car number 18\r\nreceived message on subject ships.15 with paylaod ship number 15\r\nreceived message on subject planes.10 with paylaod plane number 10\r\nreceived message on subject cars.19 with paylaod car number 19\r\nreceived message on subject ships.16 with paylaod ship number 16\r\nreceived message on subject planes.11 with paylaod plane number 11\r\nreceived message on subject cars.20 with paylaod car number 20\r\nreceived message on subject ships.17 with paylaod ship number 17\r\n"] +[1.060905, "o", "received message on subject planes.12 with paylaod plane number 12\r\nreceived message on subject cars.21 with paylaod car number 21\r\nreceived message on subject ships.18 with paylaod ship number 18\r\nreceived message on subject planes.13 with paylaod plane number 13\r\nreceived message on subject cars.22 with paylaod car number 22\r\nreceived message on subject ships.19 with paylaod ship number 19\r\nreceived message on subject planes.14 with paylaod plane number 14\r\nreceived message on subject cars.23 with paylaod car number 23\r\nreceived message on subject ships.20 with paylaod ship number 20\r\nreceived message on subject planes.15 with paylaod plane number 15\r\nreceived message on subject cars.24 with paylaod car number 24\r\nreceived message on subject ships.21 with paylaod ship number 21\r\nreceived message on subject planes.16 with paylaod plane number 16\r\nreceived message on subject cars.25 with paylaod car number 25\r\nreceived message on subject ships.22 with paylaod ship number 22\r\nreceived message on subject cars.2"] +[1.06094, "o", "6 with paylaod car number 26\r\nreceived message on subject ships.23 with paylaod ship number 23\r\nreceived message on subject planes.17 with paylaod plane number 17\r\nreceived message on subject ships.24 with paylaod ship number 24\r\nreceived message on subject ships.25 with paylaod ship number 25\r\nreceived message on subject cars.27 with paylaod car number 27\r\nreceived message on subject planes.18 with paylaod plane number 18\r\nreceived message on subject ships.26 with paylaod ship number 26\r\n"] +[1.061084, "o", "received message on subject cars.28 with paylaod car number 28\r\nreceived message on subject planes.19 with paylaod plane number 19\r\nreceived message on subject cars.29 with paylaod car number 29\r\nreceived message on subject ships.27 with paylaod ship number 27\r\nreceived message on subject planes.20 with paylaod plane number 20\r\nreceived message on subject ships.28 with paylaod ship number 28\r\nreceived message on subject planes.21 with paylaod plane number 21\r\nreceived message on subject planes.22 with paylaod plane number 22\r\nreceived message on subject ships.29 with paylaod ship number 29\r\nreceived message on subject cars.30 with paylaod car number 30\r\nreceived message on subject planes.23 with paylaod plane number 23\r\nreceived message on subject ships.30 with paylaod ship number 30\r\nreceived message on subject planes.24 with paylaod plane number 24\r\n"] +[1.0612, "o", "received message on subject cars.31 with paylaod car number 31\r\nreceived message on subject ships.31 with paylaod ship number 31\r\n"] +[1.061289, "o", "received message on subject cars.32 with paylaod car number 32\r\nreceived message on subject planes.25 with paylaod plane number 25\r\nreceived message on subject ships.32 with paylaod ship number 32\r\n"] +[1.06137, "o", "received message on subject cars.33 with paylaod car number 33\r\nreceived message on subject planes.26 with paylaod plane number 26\r\nreceived message on subject ships.33 with paylaod ship number 33\r\nreceived message on subject cars.34 with paylaod car number 34\r\nreceived message on subject planes.27 with paylaod plane number 27\r\nreceived message on subject ships.34 with paylaod ship number 34\r\nreceived message on subject cars.35 with paylaod car number 35\r\nreceived message on subject planes.28 with paylaod plane number 28\r\n"] +[1.061421, "o", "received message on subject cars.36 with paylaod car number 36\r\nreceived message on subject ships.35 with paylaod ship number 35\r\nreceived message on subject planes.29 with paylaod plane number 29\r\nreceived message on subject cars.37 with paylaod car number 37\r\n"] +[1.061516, "o", "received message on subject ships.36 with paylaod ship number 36\r\nreceived message on subject planes.30 with paylaod plane number 30\r\nreceived message on subject ships.37 with paylaod ship number 37\r\nreceived message on subject cars.38 with paylaod car number 38\r\nreceived message on subject planes.31 with paylaod plane number 31\r\n"] +[1.061582, "o", "received message on subject ships.38 with paylaod ship number 38\r\nreceived message on subject cars.39 with paylaod car number 39\r\nreceived message on subject planes.32 with paylaod plane number 32\r\n"] +[1.061755, "o", "received message on subject ships.39 with paylaod ship number 39\r\nreceived message on subject cars.40 with paylaod car number 40\r\nreceived message on subject planes.33 with paylaod plane number 33\r\nreceived message on subject cars.41 with paylaod car number 41\r\nreceived message on subject ships.40 with paylaod ship number 40\r\nreceived message on subject planes.34 with paylaod plane number 34\r\nreceived message on subject cars.42 with paylaod car number 42\r\nreceived message on subject ships.41 with paylaod ship number 41\r\nreceived message on subject planes.35 with paylaod plane number 35\r\nreceived message on subject cars.43 with paylaod car number 43\r\nreceived message on subject ships.42 with paylaod ship number 42\r\n"] +[1.061812, "o", "received message on subject planes.36 with paylaod plane number 36\r\nreceived message on subject cars.44 with paylaod car number 44\r\nreceived message on subject ships.43 with paylaod ship number 43\r\nreceived message on subject planes.37 with paylaod plane number 37\r\nreceived message on subject cars.45 with paylaod car number 45\r\n"] +[1.061875, "o", "received message on subject ships.44 with paylaod ship number 44\r\nreceived message on subject planes.38 with paylaod plane number 38\r\n"] +[1.06189, "o", "received message on subject cars.46 with paylaod car number 46\r\nreceived message on subject ships.45 with paylaod ship number 45\r\n"] +[1.062155, "o", "received message on subject ships.46 with paylaod ship number 46\r\nreceived message on subject planes.39 with paylaod plane number 39\r\nreceived message on subject cars.47 with paylaod car number 47\r\nreceived message on subject ships.47 with paylaod ship number 47\r\nreceived message on subject planes.40 with paylaod plane number 40\r\nreceived message on subject cars.48 with paylaod car number 48\r\nreceived message on subject ships.48 with paylaod ship number 48\r\nreceived message on subject planes.41 with paylaod plane number 41\r\nreceived message on subject cars.49 with paylaod car number 49\r\nreceived message on subject ships.49 with paylaod ship number 49\r\n"] +[1.062221, "o", "received message on subject planes.42 with paylaod plane number 42\r\nreceived message on subject cars.50 with paylaod car number 50\r\nreceived message on subject ships.50 with paylaod ship number 50\r\nreceived message on subject planes.43 with paylaod plane number 43\r\nreceived message on subject cars.51 with paylaod car number 51\r\n"] +[1.062266, "o", "received message on subject ships.51 with paylaod ship number 51\r\nreceived message on subject planes.44 with paylaod plane number 44\r\nreceived message on subject cars.52 with paylaod car number 52\r\nreceived message on subject ships.52 with paylaod ship number 52\r\nreceived message on subject planes.45 with paylaod plane number 45\r\nreceived message on subject cars.53 with paylaod car number 53\r\nreceived message on subject ships.53 with paylaod ship number 53\r\nreceived message on subject planes.46 with paylaod plane number 46\r\nreceived message on subject cars.54 with paylaod car number 54\r\nreceived message on subject ships.54 with paylaod ship number 54\r\nreceived message on subject planes.47 with paylaod plane number 47\r\nreceived message on subject cars.55 with paylaod car number 55\r\nreceived message on subject ships.55 with paylaod ship number 55\r\nreceived message on subject ships.56 with paylaod ship number 56\r\nreceived message on subject planes.48 with paylaod plane number 48\r\n"] +[1.161968, "o", "received message on subject cars.56 with paylaod car number 56\r\nreceived message on subject ships.57 with paylaod ship number 57\r\nreceived message on subject planes.49 with paylaod plane number 49\r\nreceived message on subject cars.57 with paylaod car number 57\r\nreceived message on subject ships.58 with paylaod ship number 58\r\nreceived message on subject planes.50 with paylaod plane number 50\r\nreceived message on subject cars.58 with paylaod car number 58\r\nreceived message on subject ships.59 with paylaod ship number 59\r\nreceived message on subject planes.51 with paylaod plane number 51\r\nreceived message on subject cars.59 with paylaod car number 59\r\nreceived message on subject ships.60 with paylaod ship number 60\r\nreceived message on subject planes.52 with paylaod plane number 52\r\nreceived message on subject cars.60 with paylaod car number 60\r\nreceived message on subject ships.61 with paylaod ship number 61\r\nreceived message on subject planes.53 with paylaod plane number 53\r\n"] +[1.162138, "o", "received message on subject cars.61 with paylaod car number 61\r\nreceived message on subject ships.62 with paylaod ship number 62\r\nreceived message on subject planes.54 with paylaod plane number 54\r\nreceived message on subject cars.62 with paylaod car number 62\r\nreceived message on subject ships.63 with paylaod ship number 63\r\nreceived message on subject planes.55 with paylaod plane number 55\r\n"] +[1.162214, "o", "received message on subject cars.63 with paylaod car number 63\r\nreceived message on subject ships.64 with paylaod ship number 64\r\n"] +[1.162307, "o", "received message on subject planes.56 with paylaod plane number 56\r\nreceived message on subject cars.64 with paylaod car number 64\r\n"] +[1.162393, "o", "received message on subject ships.65 with paylaod ship number 65\r\nreceived message on subject planes.57 with paylaod plane number 57\r\n"] +[1.162438, "o", "received message on subject cars.65 with paylaod car number 65\r\nreceived message on subject ships.66 with paylaod ship number 66\r\n"] +[1.162555, "o", "received message on subject planes.58 with paylaod plane number 58\r\nreceived message on subject cars.66 with paylaod car number 66\r\n"] +[1.162647, "o", "received message on subject ships.67 with paylaod ship number 67\r\nreceived message on subject planes.59 with paylaod plane number 59\r\nreceived message on subject cars.67 with paylaod car number 67\r\nreceived message on subject ships.68 with paylaod ship number 68\r\n"] +[1.162719, "o", "received message on subject planes.60 with paylaod plane number 60\r\nreceived message on subject cars.68 with paylaod car number 68\r\n"] +[1.162802, "o", "received message on subject ships.69 with paylaod ship number 69\r\nreceived message on subject planes.61 with paylaod plane number 61\r\n"] +[1.162875, "o", "received message on subject cars.69 with paylaod car number 69\r\nreceived message on subject ships.70 with paylaod ship number 70\r\n"] +[1.163022, "o", "received message on subject planes.62 with paylaod plane number 62\r\nreceived message on subject cars.70 with paylaod car number 70\r\nreceived message on subject ships.71 with paylaod ship number 71\r\nreceived message on subject planes.63 with paylaod plane number 63\r\n"] +[1.163166, "o", "received message on subject cars.71 with paylaod car number 71\r\nreceived message on subject ships.72 with paylaod ship number 72\r\n"] +[1.163265, "o", "received message on subject planes.64 with paylaod plane number 64\r\nreceived message on subject cars.72 with paylaod car number 72\r\nreceived message on subject ships.73 with paylaod ship number 73\r\nreceived message on subject planes.65 with paylaod plane number 65\r\n"] +[1.163299, "o", "received message on subject cars.73 with paylaod car number 73\r\nreceived message on subject ships.74 with paylaod ship number 74\r\n"] +[1.163332, "o", "received message on subject planes.66 with paylaod plane number 66\r\nreceived message on subject cars.74 with paylaod car number 74\r\n"] +[1.16344, "o", "received message on subject ships.75 with paylaod ship number 75\r\n"] +[1.163694, "o", "received message on subject planes.67 with paylaod plane number 67\r\nreceived message on subject cars.75 with paylaod car number 75\r\nreceived message on subject ships.76 with paylaod ship number 76\r\nreceived message on subject planes.68 with paylaod plane number 68\r\nreceived message on subject cars.76 with paylaod car number 76\r\nreceived message on subject ships.77 with paylaod ship number 77\r\nreceived message on subject planes.69 with paylaod plane number 69\r\nreceived message on subject cars.77 with paylaod car number 77\r\nreceived message on subject ships.78 with paylaod ship number 78\r\nreceived message on subject planes.70 with paylaod plane number 70\r\nreceived message on subject cars.78 with paylaod car number 78\r\nreceived message on subject ships.79 with paylaod ship number 79\r\nreceived message on subject planes.71 with paylaod plane number 71\r\n"] +[1.163795, "o", "received message on subject cars.79 with paylaod car number 79\r\n"] +[1.164024, "o", "received message on subject ships.80 with paylaod ship number 80\r\nreceived message on subject planes.72 with paylaod plane number 72\r\nreceived message on subject ships.81 with paylaod ship number 81\r\nreceived message on subject planes.73 with paylaod plane number 73\r\nreceived message on subject cars.80 with paylaod car number 80\r\nreceived message on subject ships.82 with paylaod ship number 82\r\nreceived message on subject cars.81 with paylaod car number 81\r\nreceived message on subject planes.74 with paylaod plane number 74\r\nreceived message on subject ships.83 with paylaod ship number 83\r\n"] +[1.164098, "o", "received message on subject cars.82 with paylaod car number 82\r\nreceived message on subject planes.75 with paylaod plane number 75\r\n"] +[1.164184, "o", "received message on subject ships.84 with paylaod ship number 84\r\nreceived message on subject cars.83 with paylaod car number 83\r\n"] +[1.164262, "o", "received message on subject planes.76 with paylaod plane number 76\r\nreceived message on subject ships.85 with paylaod ship number 85\r\n"] +[1.164292, "o", "received message on subject cars.84 with paylaod car number 84\r\nreceived message on subject planes.77 with paylaod plane number 77\r\n"] +[1.164429, "o", "received message on subject ships.86 with paylaod ship number 86\r\n"] +[1.164469, "o", "received message on subject cars.85 with paylaod car number 85\r\nreceived message on subject ships.87 with paylaod ship number 87\r\nreceived message on subject planes.78 with paylaod plane number 78\r\n"] +[1.164625, "o", "received message on subject cars.86 with paylaod car number 86\r\nreceived message on subject planes.79 with paylaod plane number 79\r\nreceived message on subject ships.88 with paylaod ship number 88\r\n"] +[1.164686, "o", "received message on subject cars.87 with paylaod car number 87\r\nreceived message on subject planes.80 with paylaod plane number 80\r\nreceived message on subject ships.89 with paylaod ship number 89\r\nreceived message on subject cars.88 with paylaod car number 88\r\nreceived message on subject planes.81 with paylaod plane number 81\r\n"] +[1.16482, "o", "received message on subject ships.90 with paylaod ship number 90\r\nreceived message on subject cars.89 with paylaod car number 89\r\nreceived message on subject planes.82 with paylaod plane number 82\r\n"] +[1.165319, "o", "received message on subject ships.91 with paylaod ship number 91\r\nreceived message on subject cars.90 with paylaod car number 90\r\nreceived message on subject planes.83 with paylaod plane number 83\r\nreceived message on subject ships.92 with paylaod ship number 92\r\n"] +[1.165363, "o", "received message on subject cars.91 with paylaod car number 91\r\nreceived message on subject planes.84 with paylaod plane number 84\r\nreceived message on subject ships.93 with paylaod ship number 93\r\n"] +[1.165405, "o", "received message on subject cars.92 with paylaod car number 92\r\nreceived message on subject planes.85 with paylaod plane number 85\r\nreceived message on subject ships.94 with paylaod ship number 94\r\nreceived message on subject cars.93 with paylaod car number 93\r\nreceived message on subject planes.86 with paylaod plane number 86\r\n"] +[1.16544, "o", "received message on subject ships.95 with paylaod ship number 95\r\nreceived message on subject cars.94 with paylaod car number 94\r\nreceived message on subject planes.87 with paylaod plane number 87\r\n"] +[1.165449, "o", "received message on subject ships.96 with paylaod ship number 96\r\n"] +[1.165555, "o", "received message on subject cars.95 with paylaod car number 95\r\nreceived message on subject planes.88 with paylaod plane number 88\r\n"] +[1.165648, "o", "received message on subject ships.97 with paylaod ship number 97\r\n"] +[1.165758, "o", "received message on subject cars.96 with paylaod car number 96\r\nreceived message on subject planes.89 with paylaod plane number 89\r\nreceived message on subject ships.98 with paylaod ship number 98\r\nreceived message on subject cars.97 with paylaod car number 97\r\nreceived message on subject planes.90 with paylaod plane number 90\r\nreceived message on subject ships.99 with paylaod ship number 99\r\nreceived message on subject cars.98 with paylaod car number 98\r\nreceived message on subject planes.91 with paylaod plane number 91\r\nreceived message on subject cars.99 with paylaod car number 99\r\nreceived message on subject planes.92 with paylaod plane number 92\r\n"] +[1.165798, "o", "received message on subject planes.93 with paylaod plane number 93\r\nreceived message on subject planes.94 with paylaod plane number 94\r\nreceived message on subject planes.95 with paylaod plane number 95\r\nreceived message on subject planes.96 with paylaod plane number 96\r\nreceived message on subject planes.97 with paylaod plane number 97\r\nreceived message on subject planes.98 with paylaod plane number 98\r\nreceived message on subject planes.99 with paylaod plane number 99\r\n"] diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.txt b/examples/messaging/iterating-multiple-subscriptions/rust/output.txt new file mode 100644 index 00000000..7a297c59 --- /dev/null +++ b/examples/messaging/iterating-multiple-subscriptions/rust/output.txt @@ -0,0 +1,306 @@ +Network f105c02d_default Creating +Network f105c02d_default Created +Container f105c02d-nats-1 Creating +Container f105c02d-nats-1 Created +Container f105c02d-nats-1 Starting +Container f105c02d-nats-1 Started +received message on subject cars.0 with paylaod car number 0 +received message on subject ships.0 with paylaod ship number 0 +received message on subject cars.1 with paylaod car number 1 +received message on subject ships.1 with paylaod ship number 1 +received message on subject cars.2 with paylaod car number 2 +received message on subject cars.3 with paylaod car number 3 +received message on subject ships.2 with paylaod ship number 2 +received message on subject cars.4 with paylaod car number 4 +received message on subject ships.3 with paylaod ship number 3 +received message on subject cars.5 with paylaod car number 5 +received message on subject cars.6 with paylaod car number 6 +received message on subject ships.4 with paylaod ship number 4 +received message on subject cars.7 with paylaod car number 7 +received message on subject planes.0 with paylaod plane number 0 +received message on subject cars.8 with paylaod car number 8 +received message on subject ships.5 with paylaod ship number 5 +received message on subject cars.9 with paylaod car number 9 +received message on subject ships.6 with paylaod ship number 6 +received message on subject planes.1 with paylaod plane number 1 +received message on subject cars.10 with paylaod car number 10 +received message on subject ships.7 with paylaod ship number 7 +received message on subject planes.2 with paylaod plane number 2 +received message on subject cars.11 with paylaod car number 11 +received message on subject ships.8 with paylaod ship number 8 +received message on subject cars.12 with paylaod car number 12 +received message on subject ships.9 with paylaod ship number 9 +received message on subject planes.3 with paylaod plane number 3 +received message on subject planes.4 with paylaod plane number 4 +received message on subject cars.13 with paylaod car number 13 +received message on subject ships.10 with paylaod ship number 10 +received message on subject planes.5 with paylaod plane number 5 +received message on subject cars.14 with paylaod car number 14 +received message on subject ships.11 with paylaod ship number 11 +received message on subject planes.6 with paylaod plane number 6 +received message on subject cars.15 with paylaod car number 15 +received message on subject ships.12 with paylaod ship number 12 +received message on subject planes.7 with paylaod plane number 7 +received message on subject cars.16 with paylaod car number 16 +received message on subject ships.13 with paylaod ship number 13 +received message on subject planes.8 with paylaod plane number 8 +received message on subject cars.17 with paylaod car number 17 +received message on subject ships.14 with paylaod ship number 14 +received message on subject planes.9 with paylaod plane number 9 +received message on subject cars.18 with paylaod car number 18 +received message on subject ships.15 with paylaod ship number 15 +received message on subject planes.10 with paylaod plane number 10 +received message on subject cars.19 with paylaod car number 19 +received message on subject ships.16 with paylaod ship number 16 +received message on subject planes.11 with paylaod plane number 11 +received message on subject cars.20 with paylaod car number 20 +received message on subject ships.17 with paylaod ship number 17 +received message on subject planes.12 with paylaod plane number 12 +received message on subject cars.21 with paylaod car number 21 +received message on subject ships.18 with paylaod ship number 18 +received message on subject planes.13 with paylaod plane number 13 +received message on subject cars.22 with paylaod car number 22 +received message on subject ships.19 with paylaod ship number 19 +received message on subject planes.14 with paylaod plane number 14 +received message on subject cars.23 with paylaod car number 23 +received message on subject ships.20 with paylaod ship number 20 +received message on subject planes.15 with paylaod plane number 15 +received message on subject cars.24 with paylaod car number 24 +received message on subject ships.21 with paylaod ship number 21 +received message on subject planes.16 with paylaod plane number 16 +received message on subject cars.25 with paylaod car number 25 +received message on subject ships.22 with paylaod ship number 22 +received message on subject cars.26 with paylaod car number 26 +received message on subject ships.23 with paylaod ship number 23 +received message on subject planes.17 with paylaod plane number 17 +received message on subject ships.24 with paylaod ship number 24 +received message on subject ships.25 with paylaod ship number 25 +received message on subject cars.27 with paylaod car number 27 +received message on subject planes.18 with paylaod plane number 18 +received message on subject ships.26 with paylaod ship number 26 +received message on subject cars.28 with paylaod car number 28 +received message on subject planes.19 with paylaod plane number 19 +received message on subject cars.29 with paylaod car number 29 +received message on subject ships.27 with paylaod ship number 27 +received message on subject planes.20 with paylaod plane number 20 +received message on subject ships.28 with paylaod ship number 28 +received message on subject planes.21 with paylaod plane number 21 +received message on subject planes.22 with paylaod plane number 22 +received message on subject ships.29 with paylaod ship number 29 +received message on subject cars.30 with paylaod car number 30 +received message on subject planes.23 with paylaod plane number 23 +received message on subject ships.30 with paylaod ship number 30 +received message on subject planes.24 with paylaod plane number 24 +received message on subject cars.31 with paylaod car number 31 +received message on subject ships.31 with paylaod ship number 31 +received message on subject cars.32 with paylaod car number 32 +received message on subject planes.25 with paylaod plane number 25 +received message on subject ships.32 with paylaod ship number 32 +received message on subject cars.33 with paylaod car number 33 +received message on subject planes.26 with paylaod plane number 26 +received message on subject ships.33 with paylaod ship number 33 +received message on subject cars.34 with paylaod car number 34 +received message on subject planes.27 with paylaod plane number 27 +received message on subject ships.34 with paylaod ship number 34 +received message on subject cars.35 with paylaod car number 35 +received message on subject planes.28 with paylaod plane number 28 +received message on subject cars.36 with paylaod car number 36 +received message on subject ships.35 with paylaod ship number 35 +received message on subject planes.29 with paylaod plane number 29 +received message on subject cars.37 with paylaod car number 37 +received message on subject ships.36 with paylaod ship number 36 +received message on subject planes.30 with paylaod plane number 30 +received message on subject ships.37 with paylaod ship number 37 +received message on subject cars.38 with paylaod car number 38 +received message on subject planes.31 with paylaod plane number 31 +received message on subject ships.38 with paylaod ship number 38 +received message on subject cars.39 with paylaod car number 39 +received message on subject planes.32 with paylaod plane number 32 +received message on subject ships.39 with paylaod ship number 39 +received message on subject cars.40 with paylaod car number 40 +received message on subject planes.33 with paylaod plane number 33 +received message on subject cars.41 with paylaod car number 41 +received message on subject ships.40 with paylaod ship number 40 +received message on subject planes.34 with paylaod plane number 34 +received message on subject cars.42 with paylaod car number 42 +received message on subject ships.41 with paylaod ship number 41 +received message on subject planes.35 with paylaod plane number 35 +received message on subject cars.43 with paylaod car number 43 +received message on subject ships.42 with paylaod ship number 42 +received message on subject planes.36 with paylaod plane number 36 +received message on subject cars.44 with paylaod car number 44 +received message on subject ships.43 with paylaod ship number 43 +received message on subject planes.37 with paylaod plane number 37 +received message on subject cars.45 with paylaod car number 45 +received message on subject ships.44 with paylaod ship number 44 +received message on subject planes.38 with paylaod plane number 38 +received message on subject cars.46 with paylaod car number 46 +received message on subject ships.45 with paylaod ship number 45 +received message on subject ships.46 with paylaod ship number 46 +received message on subject planes.39 with paylaod plane number 39 +received message on subject cars.47 with paylaod car number 47 +received message on subject ships.47 with paylaod ship number 47 +received message on subject planes.40 with paylaod plane number 40 +received message on subject cars.48 with paylaod car number 48 +received message on subject ships.48 with paylaod ship number 48 +received message on subject planes.41 with paylaod plane number 41 +received message on subject cars.49 with paylaod car number 49 +received message on subject ships.49 with paylaod ship number 49 +received message on subject planes.42 with paylaod plane number 42 +received message on subject cars.50 with paylaod car number 50 +received message on subject ships.50 with paylaod ship number 50 +received message on subject planes.43 with paylaod plane number 43 +received message on subject cars.51 with paylaod car number 51 +received message on subject ships.51 with paylaod ship number 51 +received message on subject planes.44 with paylaod plane number 44 +received message on subject cars.52 with paylaod car number 52 +received message on subject ships.52 with paylaod ship number 52 +received message on subject planes.45 with paylaod plane number 45 +received message on subject cars.53 with paylaod car number 53 +received message on subject ships.53 with paylaod ship number 53 +received message on subject planes.46 with paylaod plane number 46 +received message on subject cars.54 with paylaod car number 54 +received message on subject ships.54 with paylaod ship number 54 +received message on subject planes.47 with paylaod plane number 47 +received message on subject cars.55 with paylaod car number 55 +received message on subject ships.55 with paylaod ship number 55 +received message on subject ships.56 with paylaod ship number 56 +received message on subject planes.48 with paylaod plane number 48 +received message on subject cars.56 with paylaod car number 56 +received message on subject ships.57 with paylaod ship number 57 +received message on subject planes.49 with paylaod plane number 49 +received message on subject cars.57 with paylaod car number 57 +received message on subject ships.58 with paylaod ship number 58 +received message on subject planes.50 with paylaod plane number 50 +received message on subject cars.58 with paylaod car number 58 +received message on subject ships.59 with paylaod ship number 59 +received message on subject planes.51 with paylaod plane number 51 +received message on subject cars.59 with paylaod car number 59 +received message on subject ships.60 with paylaod ship number 60 +received message on subject planes.52 with paylaod plane number 52 +received message on subject cars.60 with paylaod car number 60 +received message on subject ships.61 with paylaod ship number 61 +received message on subject planes.53 with paylaod plane number 53 +received message on subject cars.61 with paylaod car number 61 +received message on subject ships.62 with paylaod ship number 62 +received message on subject planes.54 with paylaod plane number 54 +received message on subject cars.62 with paylaod car number 62 +received message on subject ships.63 with paylaod ship number 63 +received message on subject planes.55 with paylaod plane number 55 +received message on subject cars.63 with paylaod car number 63 +received message on subject ships.64 with paylaod ship number 64 +received message on subject planes.56 with paylaod plane number 56 +received message on subject cars.64 with paylaod car number 64 +received message on subject ships.65 with paylaod ship number 65 +received message on subject planes.57 with paylaod plane number 57 +received message on subject cars.65 with paylaod car number 65 +received message on subject ships.66 with paylaod ship number 66 +received message on subject planes.58 with paylaod plane number 58 +received message on subject cars.66 with paylaod car number 66 +received message on subject ships.67 with paylaod ship number 67 +received message on subject planes.59 with paylaod plane number 59 +received message on subject cars.67 with paylaod car number 67 +received message on subject ships.68 with paylaod ship number 68 +received message on subject planes.60 with paylaod plane number 60 +received message on subject cars.68 with paylaod car number 68 +received message on subject ships.69 with paylaod ship number 69 +received message on subject planes.61 with paylaod plane number 61 +received message on subject cars.69 with paylaod car number 69 +received message on subject ships.70 with paylaod ship number 70 +received message on subject planes.62 with paylaod plane number 62 +received message on subject cars.70 with paylaod car number 70 +received message on subject ships.71 with paylaod ship number 71 +received message on subject planes.63 with paylaod plane number 63 +received message on subject cars.71 with paylaod car number 71 +received message on subject ships.72 with paylaod ship number 72 +received message on subject planes.64 with paylaod plane number 64 +received message on subject cars.72 with paylaod car number 72 +received message on subject ships.73 with paylaod ship number 73 +received message on subject planes.65 with paylaod plane number 65 +received message on subject cars.73 with paylaod car number 73 +received message on subject ships.74 with paylaod ship number 74 +received message on subject planes.66 with paylaod plane number 66 +received message on subject cars.74 with paylaod car number 74 +received message on subject ships.75 with paylaod ship number 75 +received message on subject planes.67 with paylaod plane number 67 +received message on subject cars.75 with paylaod car number 75 +received message on subject ships.76 with paylaod ship number 76 +received message on subject planes.68 with paylaod plane number 68 +received message on subject cars.76 with paylaod car number 76 +received message on subject ships.77 with paylaod ship number 77 +received message on subject planes.69 with paylaod plane number 69 +received message on subject cars.77 with paylaod car number 77 +received message on subject ships.78 with paylaod ship number 78 +received message on subject planes.70 with paylaod plane number 70 +received message on subject cars.78 with paylaod car number 78 +received message on subject ships.79 with paylaod ship number 79 +received message on subject planes.71 with paylaod plane number 71 +received message on subject cars.79 with paylaod car number 79 +received message on subject ships.80 with paylaod ship number 80 +received message on subject planes.72 with paylaod plane number 72 +received message on subject ships.81 with paylaod ship number 81 +received message on subject planes.73 with paylaod plane number 73 +received message on subject cars.80 with paylaod car number 80 +received message on subject ships.82 with paylaod ship number 82 +received message on subject cars.81 with paylaod car number 81 +received message on subject planes.74 with paylaod plane number 74 +received message on subject ships.83 with paylaod ship number 83 +received message on subject cars.82 with paylaod car number 82 +received message on subject planes.75 with paylaod plane number 75 +received message on subject ships.84 with paylaod ship number 84 +received message on subject cars.83 with paylaod car number 83 +received message on subject planes.76 with paylaod plane number 76 +received message on subject ships.85 with paylaod ship number 85 +received message on subject cars.84 with paylaod car number 84 +received message on subject planes.77 with paylaod plane number 77 +received message on subject ships.86 with paylaod ship number 86 +received message on subject cars.85 with paylaod car number 85 +received message on subject ships.87 with paylaod ship number 87 +received message on subject planes.78 with paylaod plane number 78 +received message on subject cars.86 with paylaod car number 86 +received message on subject planes.79 with paylaod plane number 79 +received message on subject ships.88 with paylaod ship number 88 +received message on subject cars.87 with paylaod car number 87 +received message on subject planes.80 with paylaod plane number 80 +received message on subject ships.89 with paylaod ship number 89 +received message on subject cars.88 with paylaod car number 88 +received message on subject planes.81 with paylaod plane number 81 +received message on subject ships.90 with paylaod ship number 90 +received message on subject cars.89 with paylaod car number 89 +received message on subject planes.82 with paylaod plane number 82 +received message on subject ships.91 with paylaod ship number 91 +received message on subject cars.90 with paylaod car number 90 +received message on subject planes.83 with paylaod plane number 83 +received message on subject ships.92 with paylaod ship number 92 +received message on subject cars.91 with paylaod car number 91 +received message on subject planes.84 with paylaod plane number 84 +received message on subject ships.93 with paylaod ship number 93 +received message on subject cars.92 with paylaod car number 92 +received message on subject planes.85 with paylaod plane number 85 +received message on subject ships.94 with paylaod ship number 94 +received message on subject cars.93 with paylaod car number 93 +received message on subject planes.86 with paylaod plane number 86 +received message on subject ships.95 with paylaod ship number 95 +received message on subject cars.94 with paylaod car number 94 +received message on subject planes.87 with paylaod plane number 87 +received message on subject ships.96 with paylaod ship number 96 +received message on subject cars.95 with paylaod car number 95 +received message on subject planes.88 with paylaod plane number 88 +received message on subject ships.97 with paylaod ship number 97 +received message on subject cars.96 with paylaod car number 96 +received message on subject planes.89 with paylaod plane number 89 +received message on subject ships.98 with paylaod ship number 98 +received message on subject cars.97 with paylaod car number 97 +received message on subject planes.90 with paylaod plane number 90 +received message on subject ships.99 with paylaod ship number 99 +received message on subject cars.98 with paylaod car number 98 +received message on subject planes.91 with paylaod plane number 91 +received message on subject cars.99 with paylaod car number 99 +received message on subject planes.92 with paylaod plane number 92 +received message on subject planes.93 with paylaod plane number 93 +received message on subject planes.94 with paylaod plane number 94 +received message on subject planes.95 with paylaod plane number 95 +received message on subject planes.96 with paylaod plane number 96 +received message on subject planes.97 with paylaod plane number 97 +received message on subject planes.98 with paylaod plane number 98 +received message on subject planes.99 with paylaod plane number 99 diff --git a/examples/messaging/json/rust/output.cast b/examples/messaging/json/rust/output.cast new file mode 100644 index 00000000..0947e196 --- /dev/null +++ b/examples/messaging/json/rust/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647976, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/json/rust"} +[0.456311, "o", "Network fede1cfd_default Creating\r\n"] +[0.479914, "o", "Network fede1cfd_default Created\r\n"] +[0.480015, "o", "Container fede1cfd-nats-1 Creating\r\n"] +[0.526313, "o", "Container fede1cfd-nats-1 Created\r\n"] +[0.526983, "o", "Container fede1cfd-nats-1 Starting\r\n"] +[0.747885, "o", "Container fede1cfd-nats-1 Started\r\n"] +[1.037525, "o", "received valid JSON payload: foo=\"bar\" bar=27\r\nreceived invalid JSON payload: b\"not json\"\r\n"] diff --git a/examples/messaging/json/rust/output.txt b/examples/messaging/json/rust/output.txt new file mode 100644 index 00000000..912160b8 --- /dev/null +++ b/examples/messaging/json/rust/output.txt @@ -0,0 +1,8 @@ +Network fede1cfd_default Creating +Network fede1cfd_default Created +Container fede1cfd-nats-1 Creating +Container fede1cfd-nats-1 Created +Container fede1cfd-nats-1 Starting +Container fede1cfd-nats-1 Started +received valid JSON payload: foo="bar" bar=27 +received invalid JSON payload: b"not json" diff --git a/examples/messaging/pub-sub/cli/output.cast b/examples/messaging/pub-sub/cli/output.cast new file mode 100644 index 00000000..da0d36c3 --- /dev/null +++ b/examples/messaging/pub-sub/cli/output.cast @@ -0,0 +1,15 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647568, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/cli"} +[0.720019, "o", "Network 6e8ab3db_default Creating\r\n"] +[0.78786, "o", "Network 6e8ab3db_default Created\r\n"] +[0.78805, "o", "Container 6e8ab3db-nats-1 Creating\r\n"] +[0.827481, "o", "Container 6e8ab3db-nats-1 Created\r\n"] +[0.829837, "o", "Container 6e8ab3db-nats-1 Starting\r\n"] +[1.349715, "o", "Container 6e8ab3db-nats-1 Started\r\n"] +[1.951261, "o", "14:59:30 Published 5 bytes to \"greet.joe\"\r\n"] +[2.009117, "o", "14:59:30 Subscribing on greet.* \r\n"] +[2.5199, "o", "14:59:30 Published 5 bytes to \"greet.joe\"\r\n"] +[2.520194, "o", "[#1] Received on \"greet.joe\"\r\nhello\r\n\r\n"] +[2.572611, "o", "[#2] Received on \"greet.pam\"\r\nhello\r\n\r\n14:59:30 Published 5 bytes to \"greet.pam\"\r\n"] +[2.625543, "o", "[#3] Received on \"greet.bob\"\r\n"] +[2.625794, "o", "hello\r\n\r\n14:59:30 Published 5 bytes to \"greet.bob\"\r\n"] +[2.694627, "o", "14:59:30 Published 5 bytes to \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/cli/output.txt b/examples/messaging/pub-sub/cli/output.txt new file mode 100644 index 00000000..1ca9350b --- /dev/null +++ b/examples/messaging/pub-sub/cli/output.txt @@ -0,0 +1,21 @@ +Network 6e8ab3db_default Creating +Network 6e8ab3db_default Created +Container 6e8ab3db-nats-1 Creating +Container 6e8ab3db-nats-1 Created +Container 6e8ab3db-nats-1 Starting +Container 6e8ab3db-nats-1 Started +14:59:30 Published 5 bytes to "greet.joe" +14:59:30 Subscribing on greet.* +14:59:30 Published 5 bytes to "greet.joe" +[#1] Received on "greet.joe" +hello + +[#2] Received on "greet.pam" +hello + +14:59:30 Published 5 bytes to "greet.pam" +[#3] Received on "greet.bob" +hello + +14:59:30 Published 5 bytes to "greet.bob" +14:59:30 Published 5 bytes to "greet.bob" diff --git a/examples/messaging/pub-sub/deno/output.cast b/examples/messaging/pub-sub/deno/output.cast new file mode 100644 index 00000000..2ba5aa78 --- /dev/null +++ b/examples/messaging/pub-sub/deno/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647586, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/deno"} +[0.472634, "o", "Network bdc5037c_default Creating\r\n"] +[0.496389, "o", "Network bdc5037c_default Created\r\n"] +[0.4965, "o", "Container bdc5037c-nats-1 Creating\r\n"] +[0.524116, "o", "Container bdc5037c-nats-1 Created\r\n"] +[0.52475, "o", "Container bdc5037c-nats-1 Starting\r\n"] +[0.805096, "o", "Container bdc5037c-nats-1 Started\r\n"] +[1.121545, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\nhello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/deno/output.txt b/examples/messaging/pub-sub/deno/output.txt new file mode 100644 index 00000000..d1910628 --- /dev/null +++ b/examples/messaging/pub-sub/deno/output.txt @@ -0,0 +1,9 @@ +Network bdc5037c_default Creating +Network bdc5037c_default Created +Container bdc5037c-nats-1 Creating +Container bdc5037c-nats-1 Created +Container bdc5037c-nats-1 Starting +Container bdc5037c-nats-1 Started +hello on subject greet.joe +hello on subject greet.pam +hello on subject greet.sue diff --git a/examples/messaging/pub-sub/go/output.cast b/examples/messaging/pub-sub/go/output.cast new file mode 100644 index 00000000..ba78799e --- /dev/null +++ b/examples/messaging/pub-sub/go/output.cast @@ -0,0 +1,9 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647595, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/go"} +[0.537315, "o", "Network d42d9a81_default Creating\r\n"] +[0.562585, "o", "Network d42d9a81_default Created\r\n"] +[0.56277, "o", "Container d42d9a81-nats-1 Creating\r\n"] +[0.577466, "o", "Container d42d9a81-nats-1 Created\r\n"] +[0.578209, "o", "Container d42d9a81-nats-1 Starting\r\n"] +[0.818244, "o", "Container d42d9a81-nats-1 Started\r\n"] +[1.100129, "o", "subscribed after a publish...\r\nmsg is nil? true\r\n"] +[1.100354, "o", "msg data: \"hello\" on subject \"greet.joe\"\r\nmsg data: \"hello\" on subject \"greet.pam\"\r\nmsg data: \"hello\" on subject \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/go/output.txt b/examples/messaging/pub-sub/go/output.txt new file mode 100644 index 00000000..35810bd2 --- /dev/null +++ b/examples/messaging/pub-sub/go/output.txt @@ -0,0 +1,11 @@ +Network d42d9a81_default Creating +Network d42d9a81_default Created +Container d42d9a81-nats-1 Creating +Container d42d9a81-nats-1 Created +Container d42d9a81-nats-1 Starting +Container d42d9a81-nats-1 Started +subscribed after a publish... +msg is nil? true +msg data: "hello" on subject "greet.joe" +msg data: "hello" on subject "greet.pam" +msg data: "hello" on subject "greet.bob" diff --git a/examples/messaging/pub-sub/java/output.cast b/examples/messaging/pub-sub/java/output.cast new file mode 100644 index 00000000..cbd59f47 --- /dev/null +++ b/examples/messaging/pub-sub/java/output.cast @@ -0,0 +1,10 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647623, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/java"} +[0.450764, "o", "Network cbcfe759_default Creating\r\n"] +[0.475332, "o", "Network cbcfe759_default Created\r\n"] +[0.475423, "o", "Container cbcfe759-nats-1 Creating\r\n"] +[0.51143, "o", "Container cbcfe759-nats-1 Created\r\n"] +[0.512416, "o", "Container cbcfe759-nats-1 Starting\r\n"] +[0.785045, "o", "Container cbcfe759-nats-1 Started\r\n"] +[1.239841, "o", "hello on subject greet.bob\r\n"] +[1.239983, "o", "hello on subject greet.sue\r\nhello on subject "] +[1.240033, "o", "greet.pam\r\n"] diff --git a/examples/messaging/pub-sub/java/output.txt b/examples/messaging/pub-sub/java/output.txt new file mode 100644 index 00000000..c491ab9f --- /dev/null +++ b/examples/messaging/pub-sub/java/output.txt @@ -0,0 +1,9 @@ +Network cbcfe759_default Creating +Network cbcfe759_default Created +Container cbcfe759-nats-1 Creating +Container cbcfe759-nats-1 Created +Container cbcfe759-nats-1 Starting +Container cbcfe759-nats-1 Started +hello on subject greet.bob +hello on subject greet.sue +hello on subject greet.pam diff --git a/examples/messaging/pub-sub/node/output.cast b/examples/messaging/pub-sub/node/output.cast new file mode 100644 index 00000000..44e0e8a4 --- /dev/null +++ b/examples/messaging/pub-sub/node/output.cast @@ -0,0 +1,9 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647636, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/node"} +[0.458812, "o", "Network 9f73132e_default Creating\r\n"] +[0.481679, "o", "Network 9f73132e_default Created\r\n"] +[0.481798, "o", "Container 9f73132e-nats-1 Creating\r\n"] +[0.515166, "o", "Container 9f73132e-nats-1 Created\r\n"] +[0.515847, "o", "Container 9f73132e-nats-1 Starting\r\n"] +[0.730001, "o", "Container 9f73132e-nats-1 Started\r\n"] +[1.112298, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\n"] +[1.112341, "o", "hello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/node/output.txt b/examples/messaging/pub-sub/node/output.txt new file mode 100644 index 00000000..dcb5abc0 --- /dev/null +++ b/examples/messaging/pub-sub/node/output.txt @@ -0,0 +1,9 @@ +Network 9f73132e_default Creating +Network 9f73132e_default Created +Container 9f73132e-nats-1 Creating +Container 9f73132e-nats-1 Created +Container 9f73132e-nats-1 Starting +Container 9f73132e-nats-1 Started +hello on subject greet.joe +hello on subject greet.pam +hello on subject greet.sue diff --git a/examples/messaging/pub-sub/python/output.cast b/examples/messaging/pub-sub/python/output.cast new file mode 100644 index 00000000..01d1cc89 --- /dev/null +++ b/examples/messaging/pub-sub/python/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647648, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/python"} +[0.481041, "o", "Network 4ec1c651_default Creating\r\n"] +[0.504433, "o", "Network 4ec1c651_default Created\r\n"] +[0.504466, "o", "Container 4ec1c651-nats-1 Creating\r\n"] +[0.551863, "o", "Container 4ec1c651-nats-1 Created\r\n"] +[0.552908, "o", "Container 4ec1c651-nats-1 Starting\r\n"] +[0.749608, "o", "Container 4ec1c651-nats-1 Started\r\n"] +[1.181096, "o", "b'hello' on subject greet.joe\r\nb'hello' on subject greet.pam\r\nb'hello' on subject greet.bob\r\n"] diff --git a/examples/messaging/pub-sub/python/output.txt b/examples/messaging/pub-sub/python/output.txt new file mode 100644 index 00000000..464e88db --- /dev/null +++ b/examples/messaging/pub-sub/python/output.txt @@ -0,0 +1,9 @@ +Network 4ec1c651_default Creating +Network 4ec1c651_default Created +Container 4ec1c651-nats-1 Creating +Container 4ec1c651-nats-1 Created +Container 4ec1c651-nats-1 Starting +Container 4ec1c651-nats-1 Started +b'hello' on subject greet.joe +b'hello' on subject greet.pam +b'hello' on subject greet.bob diff --git a/examples/messaging/pub-sub/rust/output.cast b/examples/messaging/pub-sub/rust/output.cast new file mode 100644 index 00000000..10437606 --- /dev/null +++ b/examples/messaging/pub-sub/rust/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647767, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/rust"} +[0.563771, "o", "Network debd5b0e_default Creating\r\n"] +[0.587401, "o", "Network debd5b0e_default Created\r\n"] +[0.58752, "o", "Container debd5b0e-nats-1 Creating\r\n"] +[0.624249, "o", "Container debd5b0e-nats-1 Created\r\n"] +[0.625067, "o", "Container debd5b0e-nats-1 Starting\r\n"] +[0.840402, "o", "Container debd5b0e-nats-1 Started\r\n"] +[1.298241, "o", "Ok(\"hello\") received on \"greet.sue\"\r\nOk(\"hello\") received on \"greet.bob\"\r\nOk(\"hello\") received on \"greet.pam\"\r\n"] diff --git a/examples/messaging/pub-sub/rust/output.txt b/examples/messaging/pub-sub/rust/output.txt new file mode 100644 index 00000000..fffebdb5 --- /dev/null +++ b/examples/messaging/pub-sub/rust/output.txt @@ -0,0 +1,9 @@ +Network debd5b0e_default Creating +Network debd5b0e_default Created +Container debd5b0e-nats-1 Creating +Container debd5b0e-nats-1 Created +Container debd5b0e-nats-1 Starting +Container debd5b0e-nats-1 Started +Ok("hello") received on "greet.sue" +Ok("hello") received on "greet.bob" +Ok("hello") received on "greet.pam" diff --git a/examples/messaging/request-reply/go/output.cast b/examples/messaging/request-reply/go/output.cast new file mode 100644 index 00000000..d8578f43 --- /dev/null +++ b/examples/messaging/request-reply/go/output.cast @@ -0,0 +1,11 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647876, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/go"} +[0.54755, "o", "Network 8988bede_default Creating\r\n"] +[0.56904, "o", "Network 8988bede_default Created\r\n"] +[0.569192, "o", "Container 8988bede-nats-1 Creating\r\n"] +[0.583148, "o", "Container 8988bede-nats-1 Created\r\n"] +[0.583798, "o", "Container 8988bede-nats-1 Starting\r\n"] +[0.861352, "o", "Container 8988bede-nats-1 Started\r\n"] +[1.116926, "o", "hello, joe\r\n"] +[1.117057, "o", "hello, sue\r\n"] +[1.117102, "o", "hello, bob\r\n"] +[1.117188, "o", "nats: no responders available for request\r\n"] diff --git a/examples/messaging/request-reply/go/output.txt b/examples/messaging/request-reply/go/output.txt new file mode 100644 index 00000000..7efe2c61 --- /dev/null +++ b/examples/messaging/request-reply/go/output.txt @@ -0,0 +1,10 @@ +Network 8988bede_default Creating +Network 8988bede_default Created +Container 8988bede-nats-1 Creating +Container 8988bede-nats-1 Created +Container 8988bede-nats-1 Starting +Container 8988bede-nats-1 Started +hello, joe +hello, sue +hello, bob +nats: no responders available for request diff --git a/examples/messaging/request-reply/python/output.cast b/examples/messaging/request-reply/python/output.cast new file mode 100644 index 00000000..cc8d674b --- /dev/null +++ b/examples/messaging/request-reply/python/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647771, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/python"} +[0.468259, "o", "Network 929cc7ad_default Creating\r\n"] +[0.489877, "o", "Network 929cc7ad_default Created\r\n"] +[0.490023, "o", "Container 929cc7ad-nats-1 Creating\r\n"] +[0.505067, "o", "Container 929cc7ad-nats-1 Created\r\n"] +[0.505678, "o", "Container 929cc7ad-nats-1 Starting\r\n"] +[0.767818, "o", "Container 929cc7ad-nats-1 Started\r\n"] +[1.115724, "o", "b'hello, joe'\r\nb'hello, sue'\r\nb'hello, bob'\r\nno responders\r\n"] diff --git a/examples/messaging/request-reply/python/output.txt b/examples/messaging/request-reply/python/output.txt new file mode 100644 index 00000000..2a7676e3 --- /dev/null +++ b/examples/messaging/request-reply/python/output.txt @@ -0,0 +1,10 @@ +Network 929cc7ad_default Creating +Network 929cc7ad_default Created +Container 929cc7ad-nats-1 Creating +Container 929cc7ad-nats-1 Created +Container 929cc7ad-nats-1 Starting +Container 929cc7ad-nats-1 Started +b'hello, joe' +b'hello, sue' +b'hello, bob' +no responders diff --git a/examples/messaging/request-reply/rust/output.cast b/examples/messaging/request-reply/rust/output.cast new file mode 100644 index 00000000..463d0892 --- /dev/null +++ b/examples/messaging/request-reply/rust/output.cast @@ -0,0 +1,10 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669647869, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/rust"} +[0.522766, "o", "Network 86e57d08_default Creating\r\n"] +[0.547024, "o", "Network 86e57d08_default Created\r\n"] +[0.547136, "o", "Container 86e57d08-nats-1 Creating\r\n"] +[0.573136, "o", "Container 86e57d08-nats-1 Created\r\n"] +[0.573829, "o", "Container 86e57d08-nats-1 Starting\r\n"] +[0.886776, "o", "Container 86e57d08-nats-1 Started\r\n"] +[1.173039, "o", "got a response: \"hello, sue\"\r\n"] +[1.274361, "o", "got a response: \"hello, john\"\r\n"] +[1.375015, "o", "got a response: \"hello, bob\"\r\n"] diff --git a/examples/messaging/request-reply/rust/output.txt b/examples/messaging/request-reply/rust/output.txt new file mode 100644 index 00000000..0085b226 --- /dev/null +++ b/examples/messaging/request-reply/rust/output.txt @@ -0,0 +1,9 @@ +Network 86e57d08_default Creating +Network 86e57d08_default Created +Container 86e57d08-nats-1 Creating +Container 86e57d08-nats-1 Created +Container 86e57d08-nats-1 Starting +Container 86e57d08-nats-1 Started +got a response: "hello, sue" +got a response: "hello, john" +got a response: "hello, bob" diff --git a/examples/topologies/leafnode-jwt/cli/output.cast b/examples/topologies/leafnode-jwt/cli/output.cast new file mode 100644 index 00000000..148aef5c --- /dev/null +++ b/examples/topologies/leafnode-jwt/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648455, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/leafnode-jwt/cli"} +[0.469815, "o", "Network 0b7cc74b_default Creating\r\n"] +[0.494987, "o", "Network 0b7cc74b_default Created\r\n"] +[0.49509, "o", "Container 0b7cc74b-nats-1 Creating\r\n"] +[0.532705, "o", "Container 0b7cc74b-nats-1 Created\r\n"] +[0.533399, "o", "Container 0b7cc74b-nats-1 Starting\r\n"] +[0.629799, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 0b7cc74b-nats-1 (46fb553045c9915d8d1e67638cfa96bb830202241927f3ed1ffbb542e950cf6e): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.773813, "o", "exit status 1\r\n"] diff --git a/examples/topologies/leafnode-jwt/cli/output.txt b/examples/topologies/leafnode-jwt/cli/output.txt new file mode 100644 index 00000000..35d423c8 --- /dev/null +++ b/examples/topologies/leafnode-jwt/cli/output.txt @@ -0,0 +1,7 @@ +Network 0b7cc74b_default Creating +Network 0b7cc74b_default Created +Container 0b7cc74b-nats-1 Creating +Container 0b7cc74b-nats-1 Created +Container 0b7cc74b-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint 0b7cc74b-nats-1 (46fb553045c9915d8d1e67638cfa96bb830202241927f3ed1ffbb542e950cf6e): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/topologies/simple-leafnode/cli/output.cast b/examples/topologies/simple-leafnode/cli/output.cast new file mode 100644 index 00000000..91f16422 --- /dev/null +++ b/examples/topologies/simple-leafnode/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648451, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/simple-leafnode/cli"} +[0.452739, "o", "Network a2c6eebf_default Creating\r\n"] +[0.476978, "o", "Network a2c6eebf_default Created\r\n"] +[0.477085, "o", "Container a2c6eebf-nats-1 Creating\r\n"] +[0.492064, "o", "Container a2c6eebf-nats-1 Created\r\n"] +[0.492721, "o", "Container a2c6eebf-nats-1 Starting\r\n"] +[0.556532, "o", "Error response from daemon: driver failed programming external connectivity on endpoint a2c6eebf-nats-1 (72a2a0144acf58914632139f7d9d1b6ec6d5c2525f8e3488800da40a03b168ab): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.706268, "o", "exit status 1\r\n"] diff --git a/examples/topologies/simple-leafnode/cli/output.txt b/examples/topologies/simple-leafnode/cli/output.txt new file mode 100644 index 00000000..8059b77c --- /dev/null +++ b/examples/topologies/simple-leafnode/cli/output.txt @@ -0,0 +1,7 @@ +Network a2c6eebf_default Creating +Network a2c6eebf_default Created +Container a2c6eebf-nats-1 Creating +Container a2c6eebf-nats-1 Created +Container a2c6eebf-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint a2c6eebf-nats-1 (72a2a0144acf58914632139f7d9d1b6ec6d5c2525f8e3488800da40a03b168ab): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/topologies/supercluster-arbiter/cli/output.cast b/examples/topologies/supercluster-arbiter/cli/output.cast new file mode 100644 index 00000000..251e3b8b --- /dev/null +++ b/examples/topologies/supercluster-arbiter/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648467, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-arbiter/cli"} +[0.446493, "o", "Network 31fb0d7e_default Creating\r\n"] +[0.469073, "o", "Network 31fb0d7e_default Created\r\n"] +[0.469213, "o", "Container 31fb0d7e-nats-1 Creating\r\n"] +[0.516706, "o", "Container 31fb0d7e-nats-1 Created\r\n"] +[0.517584, "o", "Container 31fb0d7e-nats-1 Starting\r\n"] +[0.606434, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 31fb0d7e-nats-1 (cff794c45b734caa55d97520334e7e5a88717570e10fb854104c8621980e656a): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.751356, "o", "exit status 1\r\n"] diff --git a/examples/topologies/supercluster-arbiter/cli/output.txt b/examples/topologies/supercluster-arbiter/cli/output.txt new file mode 100644 index 00000000..108785af --- /dev/null +++ b/examples/topologies/supercluster-arbiter/cli/output.txt @@ -0,0 +1,7 @@ +Network 31fb0d7e_default Creating +Network 31fb0d7e_default Created +Container 31fb0d7e-nats-1 Creating +Container 31fb0d7e-nats-1 Created +Container 31fb0d7e-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint 31fb0d7e-nats-1 (cff794c45b734caa55d97520334e7e5a88717570e10fb854104c8621980e656a): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/topologies/supercluster-jetstream/cli/output.cast b/examples/topologies/supercluster-jetstream/cli/output.cast new file mode 100644 index 00000000..ad2d9ba1 --- /dev/null +++ b/examples/topologies/supercluster-jetstream/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648463, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-jetstream/cli"} +[0.450941, "o", "Network bda190e0_default Creating\r\n"] +[0.483303, "o", "Network bda190e0_default Created\r\n"] +[0.48343, "o", "Container bda190e0-nats-1 Creating\r\n"] +[0.498887, "o", "Container bda190e0-nats-1 Created\r\n"] +[0.499993, "o", "Container bda190e0-nats-1 Starting\r\n"] +[0.576845, "o", "Error response from daemon: driver failed programming external connectivity on endpoint bda190e0-nats-1 (47b0459bafa010489da9736e200d4983d032f20d55d9fe443216d11851b7d7de): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.741424, "o", "exit status 1\r\n"] diff --git a/examples/topologies/supercluster-jetstream/cli/output.txt b/examples/topologies/supercluster-jetstream/cli/output.txt new file mode 100644 index 00000000..752f51b5 --- /dev/null +++ b/examples/topologies/supercluster-jetstream/cli/output.txt @@ -0,0 +1,7 @@ +Network bda190e0_default Creating +Network bda190e0_default Created +Container bda190e0-nats-1 Creating +Container bda190e0-nats-1 Created +Container bda190e0-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint bda190e0-nats-1 (47b0459bafa010489da9736e200d4983d032f20d55d9fe443216d11851b7d7de): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.cast b/examples/use-cases/cross-region-streams-cluster/cli/output.cast new file mode 100644 index 00000000..328ff836 --- /dev/null +++ b/examples/use-cases/cross-region-streams-cluster/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648486, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-cluster/cli"} +[0.519618, "o", "Network e48ee9a3_default Creating\r\n"] +[0.544137, "o", "Network e48ee9a3_default Created\r\n"] +[0.544278, "o", "Container e48ee9a3-nats-1 Creating\r\n"] +[0.559691, "o", "Container e48ee9a3-nats-1 Created\r\n"] +[0.560664, "o", "Container e48ee9a3-nats-1 Starting\r\n"] +[0.62888, "o", "Error response from daemon: driver failed programming external connectivity on endpoint e48ee9a3-nats-1 (a6c18327a36da708d0e26678b27e023dd13386c638c031d4dd2c968fe67d1b97): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.805042, "o", "exit status 1\r\n"] diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.txt b/examples/use-cases/cross-region-streams-cluster/cli/output.txt new file mode 100644 index 00000000..882d31ce --- /dev/null +++ b/examples/use-cases/cross-region-streams-cluster/cli/output.txt @@ -0,0 +1,7 @@ +Network e48ee9a3_default Creating +Network e48ee9a3_default Created +Container e48ee9a3-nats-1 Creating +Container e48ee9a3-nats-1 Created +Container e48ee9a3-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint e48ee9a3-nats-1 (a6c18327a36da708d0e26678b27e023dd13386c638c031d4dd2c968fe67d1b97): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.cast b/examples/use-cases/cross-region-streams-supercluster/cli/output.cast new file mode 100644 index 00000000..87db7ac6 --- /dev/null +++ b/examples/use-cases/cross-region-streams-supercluster/cli/output.cast @@ -0,0 +1,8 @@ +{"version": 2, "width": 92, "height": 58, "timestamp": 1669648483, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-supercluster/cli"} +[0.501577, "o", "Network 91393348_default Creating\r\n"] +[0.52479, "o", "Network 91393348_default Created\r\n"] +[0.524888, "o", "Container 91393348-nats-1 Creating\r\n"] +[0.539238, "o", "Container 91393348-nats-1 Created\r\n"] +[0.539927, "o", "Container 91393348-nats-1 Starting\r\n"] +[0.609323, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 91393348-nats-1 (dbf9869d7f947445f701fe65dac7aad75eba822984469dd50723f0fc9bd47f3c): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] +[0.735127, "o", "exit status 1\r\n"] diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.txt b/examples/use-cases/cross-region-streams-supercluster/cli/output.txt new file mode 100644 index 00000000..9552c746 --- /dev/null +++ b/examples/use-cases/cross-region-streams-supercluster/cli/output.txt @@ -0,0 +1,7 @@ +Network 91393348_default Creating +Network 91393348_default Created +Container 91393348-nats-1 Creating +Container 91393348-nats-1 Created +Container 91393348-nats-1 Starting +Error response from daemon: driver failed programming external connectivity on endpoint 91393348-nats-1 (dbf9869d7f947445f701fe65dac7aad75eba822984469dd50723f0fc9bd47f3c): Bind for 0.0.0.0:18222 failed: port is already allocated +exit status 1 From 8c184334277750f6a2922e6ce2b63b6f9ed42bbe Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 28 Nov 2022 11:49:26 -0500 Subject: [PATCH 07/11] Update recordings (again) Signed-off-by: Byron Ruth --- cmd/nbe/recording.go | 38 +- examples/auth/nkeys-jwts/go/output.cast | 24 +- examples/auth/nkeys-jwts/go/output.txt | 30 +- .../auth/private-inbox-jwt/cli/output.cast | 42 +- .../auth/private-inbox-jwt/cli/output.txt | 114 +++++- examples/auth/private-inbox/cli/output.cast | 49 ++- examples/auth/private-inbox/cli/output.txt | 47 +-- examples/auth/sys-account/cli/output.cast | 38 +- examples/auth/sys-account/cli/output.txt | 10 +- .../jetstream/interest-stream/go/output.cast | 36 +- .../jetstream/interest-stream/go/output.txt | 24 +- .../jetstream/limits-stream/deno/output.cast | 22 +- .../jetstream/limits-stream/deno/output.txt | 20 +- .../jetstream/limits-stream/go/output.cast | 32 +- .../jetstream/limits-stream/go/output.txt | 25 +- .../jetstream/limits-stream/node/output.cast | 24 +- .../jetstream/limits-stream/node/output.txt | 18 +- .../multi-stream-consumption/go/output.cast | 14 +- .../multi-stream-consumption/go/output.txt | 6 - .../pull-consumer-limits/go/output.cast | 20 +- .../pull-consumer-limits/go/output.txt | 6 - .../jetstream/pull-consumer/go/output.cast | 23 +- .../jetstream/pull-consumer/go/output.txt | 8 +- .../jetstream/pull-consumer/rust/output.cast | 13 +- .../jetstream/pull-consumer/rust/output.txt | 6 - .../jetstream/push-consumer/go/output.cast | 30 +- .../jetstream/push-consumer/go/output.txt | 10 +- .../queue-push-consumer/go/output.cast | 21 +- .../queue-push-consumer/go/output.txt | 24 +- .../jetstream/workqueue-stream/go/output.cast | 30 +- .../jetstream/workqueue-stream/go/output.txt | 12 +- examples/kv/intro/go/output.cast | 19 +- examples/kv/intro/go/output.txt | 19 +- .../messaging/concurrent/rust/output.cast | 103 +++-- examples/messaging/concurrent/rust/output.txt | 80 ++-- .../rust/output.cast | 127 +++--- .../rust/output.txt | 368 +++++++++--------- examples/messaging/json/rust/output.cast | 10 +- examples/messaging/json/rust/output.txt | 6 - examples/messaging/pub-sub/cli/output.cast | 23 +- examples/messaging/pub-sub/cli/output.txt | 18 +- examples/messaging/pub-sub/deno/output.cast | 10 +- examples/messaging/pub-sub/deno/output.txt | 6 - examples/messaging/pub-sub/go/output.cast | 13 +- examples/messaging/pub-sub/go/output.txt | 6 - examples/messaging/pub-sub/java/output.cast | 14 +- examples/messaging/pub-sub/java/output.txt | 6 - examples/messaging/pub-sub/node/output.cast | 11 +- examples/messaging/pub-sub/node/output.txt | 6 - examples/messaging/pub-sub/python/output.cast | 10 +- examples/messaging/pub-sub/python/output.txt | 6 - examples/messaging/pub-sub/rust/output.cast | 10 +- examples/messaging/pub-sub/rust/output.txt | 6 - .../messaging/request-reply/go/output.cast | 16 +- .../messaging/request-reply/go/output.txt | 6 - .../request-reply/python/output.cast | 10 +- .../messaging/request-reply/python/output.txt | 6 - .../messaging/request-reply/rust/output.cast | 14 +- .../messaging/request-reply/rust/output.txt | 6 - .../topologies/leafnode-jwt/cli/output.cast | 44 ++- .../topologies/leafnode-jwt/cli/output.txt | 114 +++++- .../simple-leafnode/cli/output.cast | 41 +- .../topologies/simple-leafnode/cli/output.txt | 86 +++- .../supercluster-arbiter/cli/output.cast | 11 +- .../supercluster-arbiter/cli/output.txt | 9 +- .../supercluster-jetstream/cli/output.cast | 11 +- .../supercluster-jetstream/cli/output.txt | 7 +- .../cli/output.cast | 23 +- .../cli/output.txt | 18 +- .../cli/output.cast | 34 +- .../cli/output.txt | 27 +- 71 files changed, 1136 insertions(+), 1040 deletions(-) diff --git a/cmd/nbe/recording.go b/cmd/nbe/recording.go index 1a7f7e6f..d95fb332 100644 --- a/cmd/nbe/recording.go +++ b/cmd/nbe/recording.go @@ -1,11 +1,14 @@ package main import ( + "bufio" + "bytes" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" + "regexp" "strings" ) @@ -35,13 +38,18 @@ func generateRecording(repo, example string, recreate bool) error { name := strings.TrimPrefix(example, "examples/") + tempFile, _ := ioutil.TempFile("", "") + tempName := tempFile.Name() + tempFile.Close() + defer os.Remove(tempName) + // Generate the recording using the pre-built image. c := exec.Command( "asciinema", "rec", "--overwrite", "--command", fmt.Sprintf("nbe run --no-ansi=true --quiet --image=%s %s", image, name), "--title", fmt.Sprintf("NATS by Example: %s", name), - castFile, + tempName, ) c.Stdout = os.Stdout @@ -51,9 +59,17 @@ func generateRecording(repo, example string, recreate bool) error { if err != nil { return fmt.Errorf("asciinema rec: %w", err) } + + contents, err := ioutil.ReadFile(tempName) + if err != nil { + return err + } + + contents = removeComposeLines(contents) + + ioutil.WriteFile(castFile, contents, 0644) } - // TODO: remove container startup prefix... c := exec.Command( "asciinema", "cat", castFile, @@ -65,3 +81,21 @@ func generateRecording(repo, example string, recreate bool) error { return ioutil.WriteFile(outputFile, output, 0644) } + +func removeComposeLines(output []byte) []byte { + re := regexp.MustCompile(`"(Network|Container)\s+[^\s]+\s+(Creating|Created|Starting|Started)`) + + buf := bytes.NewBuffer(nil) + sc := bufio.NewScanner(bytes.NewReader(output)) + + for sc.Scan() { + line := sc.Bytes() + + if re.Find(line) == nil { + buf.Write(line) + buf.WriteByte('\n') + } + } + + return buf.Bytes() +} diff --git a/examples/auth/nkeys-jwts/go/output.cast b/examples/auth/nkeys-jwts/go/output.cast index 29fd2fef..7779d08c 100644 --- a/examples/auth/nkeys-jwts/go/output.cast +++ b/examples/auth/nkeys-jwts/go/output.cast @@ -1,16 +1,8 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648390, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/nkeys-jwts/go"} -[0.474115, "o", "Network 5270a0ff_default Creating\r\n"] -[0.497316, "o", "Network 5270a0ff_default Created\r\n"] -[0.497431, "o", "Container 5270a0ff-nats-1 Creating\r\n"] -[0.532403, "o", "Container 5270a0ff-nats-1 Created\r\n"] -[0.533123, "o", "Container 5270a0ff-nats-1 Starting\r\n"] -[0.817949, "o", "Container 5270a0ff-nats-1 Started\r\n"] -[1.113117, "o", "operator pubkey: OBJ33OXUI5DBDVBFKF4DZ64HT2BSIE7WSYOHN6ARCCCGXLQ3H6F2QUQ5\r\noperator seed: SOAIRQFVHUNELOV4BVLGJIOLOD5O3CPRWVEQTNCCFY4MMIWS52FXEJ7AO4\r\n\r\n"] -[1.113215, "o", "account pubkey: AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB\r\naccount seed: SAAHFLZSE4HQ7HINX677U7W47XHOWWGIV75NG5WYWZJTQMQR6B7Z7JIPVI\r\n"] -[1.11331, "o", "account claims: {\r\n \"name\": \"my-account\",\r\n \"sub\": \"AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB\",\r\n \"nats\": {\r\n \"limits\": {\r\n \"subs\": -1,\r\n \"data\": -1,\r\n \"payload\": -1,\r\n \"imports\": -1,\r\n \"exports\": -1,\r\n \"wildcards\": true,\r\n \"conn\": -1,\r\n \"leaf\": -1,\r\n \"mem_storage\": -1,\r\n \"disk_storage\": -1\r\n },\r\n \"default_permissions\": {\r\n \"pub\": {},\r\n \"sub\": {}\r\n }\r\n }\r\n}\r\n"] -[1.113441, "o", "account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJVNjJaQVlMQUZWV042SE1DTjVHMlI3STZMRTQ2SVZDS0NRWkpPRTZHUDJNTFBVWjRSUDRBIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJPQkozM09YVUk1REJEVkJGS0Y0RFo2NEhUMkJTSUU3V1NZT0hONkFSQ0NDR1hMUTNINkYyUVVRNSIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUE2RFpOVkNGRlhTN0E3WEoySFJENlJEVDYzVklVUk9CNFo3QjJWSkxNVUlFS0s1RlJURURNTkIiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.d1s151vH6VnO8JXDdqIFkRkcmiRCe0bAY7x4L10-3oaa5BJ6m12FejYUJjYzfU3EJ3MDZioKOlrUZ7GbI6o5Aw\r\n\r\n"] -[1.113517, "o", "user pubkey: UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW\r\nuser seed: SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY\r\n"] -[1.113629, "o", "userclaims: {\r\n \"name\": \"my-user\",\r\n \"sub\": \"UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW\","] -[1.11365, "o", "\r\n \"nats\": {\r\n \"pub\": {\r\n \"allow\": [\r\n \"foo.\\u003e\",\r\n \"bar.\\u003e\"\r\n ]\r\n },\r\n \"sub\": {\r\n \"allow\": [\r\n \"_INBOX.\\u003e\"\r\n ]\r\n },\r\n \"subs\": -1,\r\n \"data\": 1073741824,\r\n \"payload\": -1\r\n }\r\n}\r\nuser jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA\r\n"] -[1.11409, "o", "creds file: -----BEGIN NATS USER JWT-----\r\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA\r\n------END NATS USER JWT------\r\n\r\n************************* IMPORTANT *************************\r\nNKEY Seed printed below can be used to sign and prove identity.\r\nNKEYs are sensitive and should be treated as secrets.\r\n\r\n-----BEGIN USER NKEY SEED-----\r\nSUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY\r\n------END USER NKEY SEED----"] -[1.114153, "o", "--\r\n\r\n*************************************************************\r\n\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669652129, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/nkeys-jwts/go"} +[1.058968, "o", "operator pubkey: OAIN2EDAS6BCD5SDGGIW6BVHW7ARENFHHHZXDBYRX67IPCMUGYNHY2HK\r\noperator seed: SOAFM46RBEGIK34N6ZNYNDCIWT6EORVWDWP7ON7J265EG3PZLVZFZOTWEM\r\n\r\naccount pubkey: ABDONCB3ODQO2ERR737F25QZ5556QGOURX67HZSIEUABOL7BN6GXZ36Q\r\naccount seed: SAAAV22YGB5RVOVTWZGHTRYBBBOJWDOBTLVD4XKBL4KGSCXMITAMBH664Y\r\n"] +[1.059109, "o", "account claims: {\r\n \"name\": \"my-account\",\r\n \"sub\": \"ABDONCB3ODQO2ERR737F25QZ5556QGOURX67HZSIEUABOL7BN6GXZ36Q\",\r\n \"nats\": {\r\n \"limits\": {\r\n \"subs\": -1,\r\n \"data\": -1,\r\n \"payload\": -1,\r\n \"imports\": -1,\r\n \"exports\": -1,\r\n \"wildcards\": true,\r\n \"conn\": -1,\r\n \"leaf\": -1,\r\n \"mem_storage\": -1,\r\n \"disk_storage\": -1\r\n },\r\n \"default_permissions\": {\r\n \"pub\": {},\r\n \"sub\": {}\r\n }\r\n }\r\n}\r\n"] +[1.059242, "o", "account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJNSEJRUkhOVFpTSDRVWkFaRVBDNkRETjNTQkdGMlhWM0RCNkxMQ0M0UU1LWjc0NVZLVklRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJPQUlOMkVEQVM2QkNENVNER0dJVzZCVkhXN0FSRU5GSEhIWlhEQllSWDY3SVBDTVVHWU5IWTJISyIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUJET05DQjNPRFFPMkVSUjczN0YyNVFaNTU1NlFHT1VSWDY3SFpTSUVVQUJPTDdCTjZHWFozNlEiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.v_XaczCa22JiuroS7inCxtx9MKWV_nIX_j5vdDB-qAlTBWk8Yt9EOos8YryHL3vRUlvYQ2eojIaP6VhCEdFDBQ\r\n\r\nuser pubkey: UCLURPHX5WLPUQD2XZAQDUAUT5LYTCV5QQWHU5EOI5PZSEE3PBUQXFEQ\r\nuser seed: SUAOXN5G645I45N5HKQQAZRLZADSAHY3TYRQMR44F6IVUYRJTHQQMKHTVY\r\n"] +[1.059311, "o", "userclaims: {\r\n \"name\": \"my-user\",\r\n \"sub\": \"UCLURPHX5WLPUQD2XZAQDUAUT5LYTCV5QQWHU5EOI5PZSEE3PBUQXFEQ\",\r\n \"nats\": {\r\n \"pub\": {\r\n \"allow\": [\r\n \"foo.\\u003e\",\r\n \"bar.\\u003e\"\r\n ]\r\n },\r\n \"sub\": {\r\n \"allow\": [\r\n \"_INBOX.\\u003e\"\r\n ]\r\n },\r\n \"subs\": -1,\r\n \"data\": 1073741824,\r\n \"payload\": -1\r\n }\r\n}\r\n"] +[1.059403, "o", "user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJQWUhSQ09aV0FFNVVWWEVNRVZITFU1TURINlhQWUZNWU9NRTNJN0dZWlkyUldGN0VWQzRRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJBQkRPTkNCM09EUU8yRVJSNzM3RjI1UVo1NTU2UUdPVVJYNjdIWlNJRVVBQk9MN0JONkdYWjM2USIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUNMVVJQSFg1V0xQVVFEMlhaQVFEVUFVVDVMWVRDVjVRUVdIVTVFT0k1UFpTRUUzUEJVUVhGRVEiLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.d0coTso6NcSfBJf3s7LeamQhSuHPY7hwr0Pubam2u4U61wBOqh2M1AwbjFxi0Zw4jIlR85G_qInvr1i1sIeBDQ\r\n"] +[1.059827, "o", "creds file: -----BEGIN NATS USER JWT-----\r\neyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJQWUhSQ09aV0FFNVVWWEVNRVZITFU1TURINlhQWUZNWU9NRTNJN0dZWlkyUldGN0VWQzRRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJBQkRPTkNCM09EUU8yRVJSNzM3RjI1UVo1NTU2UUdPVVJYNjdIWlNJRVVBQk9MN0JONkdYWjM2USIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUNMVVJQSFg1V0xQVVFEMlhaQVFEVUFVVDVMWVRDVjVRUVdIVTVFT0k1UFpTRUUzUEJVUVhGRVEiLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.d0coTso6NcSfBJf3s7LeamQhSuHPY7hwr0Pubam2u4U61wBOqh2M1AwbjFxi0Zw4jIlR85G_qInvr1i1sIeBDQ\r\n------END NATS USER JWT------\r\n\r\n************************* IMPORTANT *************************\r\nNKEY Seed printed below can be used to sign and prove identity.\r\nNKEYs are sensitive and should be treated as secrets.\r\n\r\n-----BEGIN USER NKEY SEED-----\r\nSUAOXN5G645I45N5HKQQAZRLZADSAHY3TYRQMR44F6IVUYRJTHQQMKHTVY\r\n------END USER NKEY SEED----"] +[1.059851, "o", "--\r\n\r\n*************************************************************\r\n\r\n"] diff --git a/examples/auth/nkeys-jwts/go/output.txt b/examples/auth/nkeys-jwts/go/output.txt index 8915d7fb..c3865005 100644 --- a/examples/auth/nkeys-jwts/go/output.txt +++ b/examples/auth/nkeys-jwts/go/output.txt @@ -1,17 +1,11 @@ -Network 5270a0ff_default Creating -Network 5270a0ff_default Created -Container 5270a0ff-nats-1 Creating -Container 5270a0ff-nats-1 Created -Container 5270a0ff-nats-1 Starting -Container 5270a0ff-nats-1 Started -operator pubkey: OBJ33OXUI5DBDVBFKF4DZ64HT2BSIE7WSYOHN6ARCCCGXLQ3H6F2QUQ5 -operator seed: SOAIRQFVHUNELOV4BVLGJIOLOD5O3CPRWVEQTNCCFY4MMIWS52FXEJ7AO4 +operator pubkey: OAIN2EDAS6BCD5SDGGIW6BVHW7ARENFHHHZXDBYRX67IPCMUGYNHY2HK +operator seed: SOAFM46RBEGIK34N6ZNYNDCIWT6EORVWDWP7ON7J265EG3PZLVZFZOTWEM -account pubkey: AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB -account seed: SAAHFLZSE4HQ7HINX677U7W47XHOWWGIV75NG5WYWZJTQMQR6B7Z7JIPVI +account pubkey: ABDONCB3ODQO2ERR737F25QZ5556QGOURX67HZSIEUABOL7BN6GXZ36Q +account seed: SAAAV22YGB5RVOVTWZGHTRYBBBOJWDOBTLVD4XKBL4KGSCXMITAMBH664Y account claims: { "name": "my-account", - "sub": "AA6DZNVCFFXS7A7XJ2HRD6RDT63VIUROB4Z7B2VJLMUIEKK5FRTEDMNB", + "sub": "ABDONCB3ODQO2ERR737F25QZ5556QGOURX67HZSIEUABOL7BN6GXZ36Q", "nats": { "limits": { "subs": -1, @@ -31,13 +25,13 @@ account claims: { } } } -account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJVNjJaQVlMQUZWV042SE1DTjVHMlI3STZMRTQ2SVZDS0NRWkpPRTZHUDJNTFBVWjRSUDRBIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJPQkozM09YVUk1REJEVkJGS0Y0RFo2NEhUMkJTSUU3V1NZT0hONkFSQ0NDR1hMUTNINkYyUVVRNSIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUE2RFpOVkNGRlhTN0E3WEoySFJENlJEVDYzVklVUk9CNFo3QjJWSkxNVUlFS0s1RlJURURNTkIiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.d1s151vH6VnO8JXDdqIFkRkcmiRCe0bAY7x4L10-3oaa5BJ6m12FejYUJjYzfU3EJ3MDZioKOlrUZ7GbI6o5Aw +account jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJNSEJRUkhOVFpTSDRVWkFaRVBDNkRETjNTQkdGMlhWM0RCNkxMQ0M0UU1LWjc0NVZLVklRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJPQUlOMkVEQVM2QkNENVNER0dJVzZCVkhXN0FSRU5GSEhIWlhEQllSWDY3SVBDTVVHWU5IWTJISyIsIm5hbWUiOiJteS1hY2NvdW50Iiwic3ViIjoiQUJET05DQjNPRFFPMkVSUjczN0YyNVFaNTU1NlFHT1VSWDY3SFpTSUVVQUJPTDdCTjZHWFozNlEiLCJuYXRzIjp7ImxpbWl0cyI6eyJzdWJzIjotMSwiZGF0YSI6LTEsInBheWxvYWQiOi0xLCJpbXBvcnRzIjotMSwiZXhwb3J0cyI6LTEsIndpbGRjYXJkcyI6dHJ1ZSwiY29ubiI6LTEsImxlYWYiOi0xLCJtZW1fc3RvcmFnZSI6LTEsImRpc2tfc3RvcmFnZSI6LTF9LCJkZWZhdWx0X3Blcm1pc3Npb25zIjp7InB1YiI6e30sInN1YiI6e319LCJ0eXBlIjoiYWNjb3VudCIsInZlcnNpb24iOjJ9fQ.v_XaczCa22JiuroS7inCxtx9MKWV_nIX_j5vdDB-qAlTBWk8Yt9EOos8YryHL3vRUlvYQ2eojIaP6VhCEdFDBQ -user pubkey: UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW -user seed: SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY +user pubkey: UCLURPHX5WLPUQD2XZAQDUAUT5LYTCV5QQWHU5EOI5PZSEE3PBUQXFEQ +user seed: SUAOXN5G645I45N5HKQQAZRLZADSAHY3TYRQMR44F6IVUYRJTHQQMKHTVY userclaims: { "name": "my-user", - "sub": "UDK7YW5GNZ34XKGHOKESZNPU7VAWYO2PH77HM2K5NGBF3EBS6UFMRVMW", + "sub": "UCLURPHX5WLPUQD2XZAQDUAUT5LYTCV5QQWHU5EOI5PZSEE3PBUQXFEQ", "nats": { "pub": { "allow": [ @@ -55,9 +49,9 @@ userclaims: { "payload": -1 } } -user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA +user jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJQWUhSQ09aV0FFNVVWWEVNRVZITFU1TURINlhQWUZNWU9NRTNJN0dZWlkyUldGN0VWQzRRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJBQkRPTkNCM09EUU8yRVJSNzM3RjI1UVo1NTU2UUdPVVJYNjdIWlNJRVVBQk9MN0JONkdYWjM2USIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUNMVVJQSFg1V0xQVVFEMlhaQVFEVUFVVDVMWVRDVjVRUVdIVTVFT0k1UFpTRUUzUEJVUVhGRVEiLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.d0coTso6NcSfBJf3s7LeamQhSuHPY7hwr0Pubam2u4U61wBOqh2M1AwbjFxi0Zw4jIlR85G_qInvr1i1sIeBDQ creds file: -----BEGIN NATS USER JWT----- -eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiI0R0dQR0NPVUREQks0V1AzRURFUjZZM0dIVExDNjdZNVpEVkxHUjdUNUtMNVBKUkNUM1BRIiwiaWF0IjoxNjY5NjQ4MzkxLCJpc3MiOiJBQTZEWk5WQ0ZGWFM3QTdYSjJIUkQ2UkRUNjNWSVVST0I0WjdCMlZKTE1VSUVLSzVGUlRFRE1OQiIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVURLN1lXNUdOWjM0WEtHSE9LRVNaTlBVN1ZBV1lPMlBINzdITTJLNU5HQkYzRUJTNlVGTVJWTVciLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.UYm_mORG4eY4A-uoXCFYTHXBqu35xAd47AbCyI7wVwWw9LGHZDjIui-p6Cb-W4IoGaBYYtzgzbJYlpAYkMaEDA +eyJ0eXAiOiJKV1QiLCJhbGciOiJlZDI1NTE5LW5rZXkifQ.eyJqdGkiOiJQWUhSQ09aV0FFNVVWWEVNRVZITFU1TURINlhQWUZNWU9NRTNJN0dZWlkyUldGN0VWQzRRIiwiaWF0IjoxNjY5NjUyMTMwLCJpc3MiOiJBQkRPTkNCM09EUU8yRVJSNzM3RjI1UVo1NTU2UUdPVVJYNjdIWlNJRVVBQk9MN0JONkdYWjM2USIsIm5hbWUiOiJteS11c2VyIiwic3ViIjoiVUNMVVJQSFg1V0xQVVFEMlhaQVFEVUFVVDVMWVRDVjVRUVdIVTVFT0k1UFpTRUUzUEJVUVhGRVEiLCJuYXRzIjp7InB1YiI6eyJhbGxvdyI6WyJmb28uXHUwMDNlIiwiYmFyLlx1MDAzZSJdfSwic3ViIjp7ImFsbG93IjpbIl9JTkJPWC5cdTAwM2UiXX0sInN1YnMiOi0xLCJkYXRhIjoxMDczNzQxODI0LCJwYXlsb2FkIjotMSwidHlwZSI6InVzZXIiLCJ2ZXJzaW9uIjoyfX0.d0coTso6NcSfBJf3s7LeamQhSuHPY7hwr0Pubam2u4U61wBOqh2M1AwbjFxi0Zw4jIlR85G_qInvr1i1sIeBDQ ------END NATS USER JWT------ ************************* IMPORTANT ************************* @@ -65,7 +59,7 @@ NKEY Seed printed below can be used to sign and prove identity. NKEYs are sensitive and should be treated as secrets. -----BEGIN USER NKEY SEED----- -SUAO7O3THOOIGSVYOLFA762RSNHRPLH4IUIJWIK2GHKSDRHMBXW3RI74MY +SUAOXN5G645I45N5HKQQAZRLZADSAHY3TYRQMR44F6IVUYRJTHQQMKHTVY ------END USER NKEY SEED------ ************************************************************* diff --git a/examples/auth/private-inbox-jwt/cli/output.cast b/examples/auth/private-inbox-jwt/cli/output.cast index 3120fd42..8afc975f 100644 --- a/examples/auth/private-inbox-jwt/cli/output.cast +++ b/examples/auth/private-inbox-jwt/cli/output.cast @@ -1,8 +1,34 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648447, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox-jwt/cli"} -[0.468902, "o", "Network fb4f8574_default Creating\r\n"] -[0.495692, "o", "Network fb4f8574_default Created\r\n"] -[0.495834, "o", "Container fb4f8574-nats-1 Creating\r\n"] -[0.511463, "o", "Container fb4f8574-nats-1 Created\r\n"] -[0.512162, "o", "Container fb4f8574-nats-1 Starting\r\n"] -[0.575074, "o", "Error response from daemon: driver failed programming external connectivity on endpoint fb4f8574-nats-1 (be49b1873f0fd8efe9b99918472b1c4e30a4446e2b5ef440d15b6e026143b7a0): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.750923, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653088, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox-jwt/cli"} +[1.163991, "o", "[ OK ] generated and stored operator key \"OC5KJIPAQXUITKHZDVUYPR2SVKKNITQR7GS5JPBJK75EJXFP3DOTMT4T\"\r\n[ OK ] added operator \"local\"\r\n[ OK ] When running your own nats-server, make sure they run at least version 2.2.0\r\n[ OK ] created operator signing key: OBPSJU5F4SSC3WYQVKFIXXYRR3IU5ZJGHQJGQNVNT5LBIFRS74F72B76\r\n[ OK ] created system_account: name:SYS id:ADOUJTG6GNZIFNLSTBJMYJV22P6TZRACKJ53GD6ZH2GTRYFKQYKXGEB5\r\n[ OK ] created system account user: name:sys id:UDY5BKF4SIEGD7WQMYK3UHJJIQKU27H4JPQJ7PCJBZVM5IGZMOI2SC7L\r\n[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds`\r\n"] +[1.169626, "o", "[ OK ] strict signing key usage set to: true\r\n[ OK ] set account jwt server url to \"nats://nats:4222\"\r\n[ OK ] edited operator \"local\"\r\n"] +[1.174913, "o", "[ OK ] generated and stored account key \"ACVUNDAK7RC6CC4PCVTB4YXZMLJLWHHFJIUDLYL3DSNUTQWM42XJ5ZDB\"\r\n[ OK ] added account \"APP\"\r\n"] +[1.180375, "o", "[ OK ] added signing key \"ACNE2SRGY53JFAY2ZSZBQ4QSKVZOC6XCSP5SKMJ32XLUO7U4XIJJI7CQ\"\r\n[ OK ] edited account \"APP\"\r\n"] +[2.204423, "o", "[ERR ] push to nats-server \"nats://nats:4222\" using system account \"SYS\":\r\n [ERR ] push APP to nats-server with nats account resolver:\r\n [ERR ] failed to get response to push account: nats: no responders available for request\r\n [ OK ] pushed to a total of 0 nats-server\r\nError: all jobs failed\r\n"] +[2.211668, "o", "[ OK ] set max responses to 1\r\n[ OK ] added sub \"services.greet\"\r\n[ OK ] generated and stored user key \"UDAG4DP5LKNA3W2WOIIML2H5T5S3JZ6VXVJ3NVBXQNPWA6HSCSIEIBDS\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/greeter.creds`\r\n[ OK ] added user \"greeter\" to account \"APP\"\r\n"] +[2.217755, "o", "[ OK ] added pub \"joe.>\"\r\n[ OK ] added pub \"services.*\"\r\n[ OK ] generated and stored user key \"UB2AW6AGODL252O4XSA7J5FJLTKQMT26GWPCRQFCMW4DFQRF34GGCIMZ\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] added user \"joe\" to account \"APP\"\r\n"] +[2.224458, "o", "[ OK ] added pub \"pam.>\"\r\n[ OK ] added pub \"services.*\"\r\n[ OK ] generated and stored user key \"UD5HTH3AGP5YJIR255MYPJUP7GMVQRSH36JC5UMW3XLP773IGXMJDCRK\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] added user \"pam\" to account \"APP\"\r\n"] +[2.231172, "o", "[ OK ] added sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] edited user \"joe\"\r\n"] +[2.237101, "o", "[ OK ] added sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] edited user \"pam\"\r\n"] +[2.257264, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://nats:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/greeter.creds (OK)\r\n NSC Lookup: nsc://local/APP/greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[2.27846, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://nats:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/joe.creds (OK)\r\n NSC Lookup: nsc://local/APP/joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[2.302873, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://nats:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/pam.creds (OK)\r\n NSC Lookup: nsc://local/APP/pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[2.330826, "o", "16:31:30 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] +[2.826522, "o", "16:31:30 Sending request on \"services.greet\"\r\n"] +[2.826698, "o", "16:31:30 [#0] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[2.826922, "o", "16:31:30 Received with rtt 317.947µs\r\nReply 48oLGqEJss14pwGkWQtl1Z\r\n\r\n"] +[2.852206, "o", "16:31:30 Sending request on \"services.greet\"\r\n"] +[2.852383, "o", "16:31:30 [#1] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[2.852526, "o", "16:31:30 Received with rtt 248.888µs\r\nReply 48oLGqEJss14pwGkWQtl6e\r\n\r\n"] +[2.87707, "o", "16:31:30 Subscribing on _INBOX.> \r\n"] +[2.878834, "o", "16:31:30 Sending request on \"services.greet\"\r\n"] +[2.87923, "o", "16:31:30 [#2] Received on subject \"services.greet\":\r\n"] +[2.879303, "o", "\r\n\r\n"] +[2.879888, "o", "16:31:30 Received with rtt 981.705µs\r\nReply 48oLGqEJss14pwGkWQtlBj\r\n\r\n"] +[2.880253, "o", "[#1] Received on \"_INBOX.EtvfNPpB0Z3H2IsW0Q4jfH.nbqqU7n8\"\r\nReply 48oLGqEJss14pwGkWQtlBj\r\n\r\n"] +[2.903831, "o", "16:31:30 Sending request on \"services.greet\"\r\n"] +[2.904002, "o", "16:31:30 [#3] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[2.904172, "o", "Reply 48oLGqEJss14pwGkWQtlGo\r\n\r\n16:31:30 Received with rtt 237.875µs\r\n"] +[2.911028, "o", "[ OK ] added sub \"_INBOX_joe.>\"\r\n[ OK ] added deny sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds`\r\n[ OK ] edited user \"joe\"\r\n"] +[2.918659, "o", "[ OK ] added sub \"_INBOX_pam.>\"\r\n[ OK ] added deny sub \"_INBOX.>\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds`\r\n[ OK ] edited user \"pam\"\r\n"] +[2.94397, "o", "16:31:31 Subscribing on _INBOX.> \r\n"] +[43.162605, "o", "^C"] diff --git a/examples/auth/private-inbox-jwt/cli/output.txt b/examples/auth/private-inbox-jwt/cli/output.txt index 86741049..a5fbfe6b 100644 --- a/examples/auth/private-inbox-jwt/cli/output.txt +++ b/examples/auth/private-inbox-jwt/cli/output.txt @@ -1,7 +1,107 @@ -Network fb4f8574_default Creating -Network fb4f8574_default Created -Container fb4f8574-nats-1 Creating -Container fb4f8574-nats-1 Created -Container fb4f8574-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint fb4f8574-nats-1 (be49b1873f0fd8efe9b99918472b1c4e30a4446e2b5ef440d15b6e026143b7a0): Bind for 0.0.0.0:18222 failed: port is already allocated -exit status 1 +[ OK ] generated and stored operator key "OC5KJIPAQXUITKHZDVUYPR2SVKKNITQR7GS5JPBJK75EJXFP3DOTMT4T" +[ OK ] added operator "local" +[ OK ] When running your own nats-server, make sure they run at least version 2.2.0 +[ OK ] created operator signing key: OBPSJU5F4SSC3WYQVKFIXXYRR3IU5ZJGHQJGQNVNT5LBIFRS74F72B76 +[ OK ] created system_account: name:SYS id:ADOUJTG6GNZIFNLSTBJMYJV22P6TZRACKJ53GD6ZH2GTRYFKQYKXGEB5 +[ OK ] created system account user: name:sys id:UDY5BKF4SIEGD7WQMYK3UHJJIQKU27H4JPQJ7PCJBZVM5IGZMOI2SC7L +[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds` +[ OK ] strict signing key usage set to: true +[ OK ] set account jwt server url to "nats://nats:4222" +[ OK ] edited operator "local" +[ OK ] generated and stored account key "ACVUNDAK7RC6CC4PCVTB4YXZMLJLWHHFJIUDLYL3DSNUTQWM42XJ5ZDB" +[ OK ] added account "APP" +[ OK ] added signing key "ACNE2SRGY53JFAY2ZSZBQ4QSKVZOC6XCSP5SKMJ32XLUO7U4XIJJI7CQ" +[ OK ] edited account "APP" +[ERR ] push to nats-server "nats://nats:4222" using system account "SYS": + [ERR ] push APP to nats-server with nats account resolver: + [ERR ] failed to get response to push account: nats: no responders available for request + [ OK ] pushed to a total of 0 nats-server +Error: all jobs failed +[ OK ] set max responses to 1 +[ OK ] added sub "services.greet" +[ OK ] generated and stored user key "UDAG4DP5LKNA3W2WOIIML2H5T5S3JZ6VXVJ3NVBXQNPWA6HSCSIEIBDS" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/greeter.creds` +[ OK ] added user "greeter" to account "APP" +[ OK ] added pub "joe.>" +[ OK ] added pub "services.*" +[ OK ] generated and stored user key "UB2AW6AGODL252O4XSA7J5FJLTKQMT26GWPCRQFCMW4DFQRF34GGCIMZ" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` +[ OK ] added user "joe" to account "APP" +[ OK ] added pub "pam.>" +[ OK ] added pub "services.*" +[ OK ] generated and stored user key "UD5HTH3AGP5YJIR255MYPJUP7GMVQRSH36JC5UMW3XLP773IGXMJDCRK" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` +[ OK ] added user "pam" to account "APP" +[ OK ] added sub "_INBOX.>" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` +[ OK ] edited user "joe" +[ OK ] added sub "_INBOX.>" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` +[ OK ] edited user "pam" +NATS Configuration Context "greeter" + + Server URLs: nats://nats:4222 + Credentials: /nsc/nkeys/creds/local/APP/greeter.creds (OK) + NSC Lookup: nsc://local/APP/greeter + Path: /nsc/.config/nats/context/greeter.json + +WARNING: Shell environment overrides in place using NATS_URL +NATS Configuration Context "joe" + + Server URLs: nats://nats:4222 + Credentials: /nsc/nkeys/creds/local/APP/joe.creds (OK) + NSC Lookup: nsc://local/APP/joe + Path: /nsc/.config/nats/context/joe.json + +WARNING: Shell environment overrides in place using NATS_URL +NATS Configuration Context "pam" + + Server URLs: nats://nats:4222 + Credentials: /nsc/nkeys/creds/local/APP/pam.creds (OK) + NSC Lookup: nsc://local/APP/pam + Path: /nsc/.config/nats/context/pam.json + +WARNING: Shell environment overrides in place using NATS_URL +16:31:30 Listening on "services.greet" in group "NATS-RPLY-22" +16:31:30 Sending request on "services.greet" +16:31:30 [#0] Received on subject "services.greet": + + +16:31:30 Received with rtt 317.947µs +Reply 48oLGqEJss14pwGkWQtl1Z + +16:31:30 Sending request on "services.greet" +16:31:30 [#1] Received on subject "services.greet": + + +16:31:30 Received with rtt 248.888µs +Reply 48oLGqEJss14pwGkWQtl6e + +16:31:30 Subscribing on _INBOX.> +16:31:30 Sending request on "services.greet" +16:31:30 [#2] Received on subject "services.greet": + + +16:31:30 Received with rtt 981.705µs +Reply 48oLGqEJss14pwGkWQtlBj + +[#1] Received on "_INBOX.EtvfNPpB0Z3H2IsW0Q4jfH.nbqqU7n8" +Reply 48oLGqEJss14pwGkWQtlBj + +16:31:30 Sending request on "services.greet" +16:31:30 [#3] Received on subject "services.greet": + + +Reply 48oLGqEJss14pwGkWQtlGo + +16:31:30 Received with rtt 237.875µs +[ OK ] added sub "_INBOX_joe.>" +[ OK ] added deny sub "_INBOX.>" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/joe.creds` +[ OK ] edited user "joe" +[ OK ] added sub "_INBOX_pam.>" +[ OK ] added deny sub "_INBOX.>" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/pam.creds` +[ OK ] edited user "pam" +16:31:31 Subscribing on _INBOX.> +^C \ No newline at end of file diff --git a/examples/auth/private-inbox/cli/output.cast b/examples/auth/private-inbox/cli/output.cast index 2966590b..fe491b4b 100644 --- a/examples/auth/private-inbox/cli/output.cast +++ b/examples/auth/private-inbox/cli/output.cast @@ -1,27 +1,22 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648399, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox/cli"} -[0.430078, "o", "Network 50bd8d7f_default Creating\r\n"] -[0.452791, "o", "Network 50bd8d7f_default Created\r\n"] -[0.452833, "o", "Container 50bd8d7f-nats-1 Creating\r\n"] -[0.46632, "o", "Container 50bd8d7f-nats-1 Created\r\n"] -[0.466986, "o", "Container 50bd8d7f-nats-1 Starting\r\n"] -[0.707376, "o", "Container 50bd8d7f-nats-1 Started\r\n"] -[0.993791, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: greeter\r\n Password: *********\r\n Token: greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] -[1.012478, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: joe\r\n Password: *********\r\n Token: joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] -[1.029616, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: pam\r\n Password: *********\r\n Token: pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] -[1.047052, "o", "15:13:20 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] -[1.551619, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] -[1.55181, "o", "15:13:20 [#0] Received on subject \"services.greet\":\r\n\r\n\r\n"] -[1.552483, "o", "15:13:20 Received with rtt 766.809µs\r\nReply 6S8BvxAOOLTywE52XnhFkc\r\n\r\n"] -[1.572357, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] -[1.572525, "o", "15:13:20 [#1] Received on subject \"services.greet\":\r\n\r\n\r\n"] -[1.572747, "o", "Reply 6S8BvxAOOLTywE52XnhFpu\r\n\r\n15:13:20 Received with rtt 220.193µs\r\n"] -[1.594877, "o", "15:13:20 Subscribing on _INBOX.> \r\n15:13:20 Sending request on \"services.greet\"\r\n"] -[1.595185, "o", "15:13:20 [#2] Received on subject \"services.greet\":\r\n\r\n\r\n"] -[1.595978, "o", "15:13:20 Received with rtt 305.222µs\r\nReply 6S8BvxAOOLTywE52XnhFvC\r\n\r\n[#1] Received on \"_INBOX.MTz8iLk53DrfZ4VZyXXFNB.QodZPXpE\"\r\nReply 6S8BvxAOOLTywE52XnhFvC\r\n\r\n"] -[1.616973, "o", "15:13:20 Sending request on \"services.greet\"\r\n"] -[1.617176, "o", "15:13:20 [#3] Received on subject \"services.greet\":\r\n"] -[1.617232, "o", "\r\n\r\n"] -[1.617294, "o", "Reply 6S8BvxAOOLTywE52XnhG0U\r\n\r\n15:13:20 Received with rtt 245.806µs\r\n"] -[1.618923, "o", "Reloading the server with new config...\r\n"] -[1.63926, "o", "15:13:20 Subscribing on _INBOX.> \r\n"] -[40.80038, "o", "^C"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669652139, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/private-inbox/cli"} +[1.29834, "o", "NATS Configuration Context \"greeter\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: greeter\r\n Password: *********\r\n Token: greeter\r\n Path: /nsc/.config/nats/context/greeter.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.320082, "o", "NATS Configuration Context \"joe\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: joe\r\n Password: *********\r\n Token: joe\r\n Path: /nsc/.config/nats/context/joe.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.343852, "o", "NATS Configuration Context \"pam\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: pam\r\n Password: *********\r\n Token: pam\r\n Path: /nsc/.config/nats/context/pam.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.364274, "o", "16:15:40 Listening on \"services.greet\" in group \"NATS-RPLY-22\"\r\n"] +[1.866378, "o", "16:15:40 Sending request on \"services.greet\"\r\n"] +[1.866597, "o", "16:15:40 [#0] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[1.866765, "o", "Reply g2vqMMymrMh7KrRKGcpbXP\r\n\r\n16:15:40 Received with rtt 373.115µs\r\n"] +[1.886681, "o", "16:15:40 Sending request on \"services.greet\"\r\n"] +[1.886841, "o", "\r\n\r\n16:15:40 [#1] Received on subject \"services.greet\":\r\n"] +[1.886971, "o", "16:15:40 Received with rtt 238.862µs\r\n"] +[1.887027, "o", "Reply g2vqMMymrMh7KrRKGcpbcj\r\n\r\n"] +[1.906635, "o", "16:15:40 Sending request on \"services.greet\"\r\n"] +[1.906952, "o", "\r\n\r\n16:15:40 [#2] Received on subject \"services.greet\":\r\n"] +[1.907118, "o", "16:15:40 Received with rtt 377.717µs\r\nReply g2vqMMymrMh7KrRKGcpbi3\r\n\r\n"] +[1.908431, "o", "16:15:40 Subscribing on _INBOX.> \r\n"] +[1.929486, "o", "16:15:41 Sending request on \"services.greet\"\r\n"] +[1.929681, "o", "16:15:41 [#3] Received on subject \"services.greet\":\r\n\r\n\r\n"] +[1.929802, "o", "Reply g2vqMMymrMh7KrRKGcpbnN\r\n\r\n16:15:41 Received with rtt 272.384µs\r\n"] +[1.931321, "o", "Reloading the server with new config...\r\n"] +[1.953571, "o", "16:15:41 Subscribing on _INBOX.> \r\n"] +[941.213377, "o", "^C"] diff --git a/examples/auth/private-inbox/cli/output.txt b/examples/auth/private-inbox/cli/output.txt index ddae6f70..8ce47605 100644 --- a/examples/auth/private-inbox/cli/output.txt +++ b/examples/auth/private-inbox/cli/output.txt @@ -1,9 +1,3 @@ -Network 50bd8d7f_default Creating -Network 50bd8d7f_default Created -Container 50bd8d7f-nats-1 Creating -Container 50bd8d7f-nats-1 Created -Container 50bd8d7f-nats-1 Starting -Container 50bd8d7f-nats-1 Started NATS Configuration Context "greeter" Server URLs: nats://nats:4222 @@ -31,39 +25,36 @@ NATS Configuration Context "pam" Path: /nsc/.config/nats/context/pam.json WARNING: Shell environment overrides in place using NATS_URL -15:13:20 Listening on "services.greet" in group "NATS-RPLY-22" -15:13:20 Sending request on "services.greet" -15:13:20 [#0] Received on subject "services.greet": +16:15:40 Listening on "services.greet" in group "NATS-RPLY-22" +16:15:40 Sending request on "services.greet" +16:15:40 [#0] Received on subject "services.greet": -15:13:20 Received with rtt 766.809µs -Reply 6S8BvxAOOLTywE52XnhFkc +Reply g2vqMMymrMh7KrRKGcpbXP -15:13:20 Sending request on "services.greet" -15:13:20 [#1] Received on subject "services.greet": +16:15:40 Received with rtt 373.115µs +16:15:40 Sending request on "services.greet" -Reply 6S8BvxAOOLTywE52XnhFpu +16:15:40 [#1] Received on subject "services.greet": +16:15:40 Received with rtt 238.862µs +Reply g2vqMMymrMh7KrRKGcpbcj -15:13:20 Received with rtt 220.193µs -15:13:20 Subscribing on _INBOX.> -15:13:20 Sending request on "services.greet" -15:13:20 [#2] Received on subject "services.greet": +16:15:40 Sending request on "services.greet" -15:13:20 Received with rtt 305.222µs -Reply 6S8BvxAOOLTywE52XnhFvC +16:15:40 [#2] Received on subject "services.greet": +16:15:40 Received with rtt 377.717µs +Reply g2vqMMymrMh7KrRKGcpbi3 -[#1] Received on "_INBOX.MTz8iLk53DrfZ4VZyXXFNB.QodZPXpE" -Reply 6S8BvxAOOLTywE52XnhFvC +16:15:40 Subscribing on _INBOX.> +16:15:41 Sending request on "services.greet" +16:15:41 [#3] Received on subject "services.greet": -15:13:20 Sending request on "services.greet" -15:13:20 [#3] Received on subject "services.greet": +Reply g2vqMMymrMh7KrRKGcpbnN -Reply 6S8BvxAOOLTywE52XnhG0U - -15:13:20 Received with rtt 245.806µs +16:15:41 Received with rtt 272.384µs Reloading the server with new config... -15:13:20 Subscribing on _INBOX.> +16:15:41 Subscribing on _INBOX.> ^C \ No newline at end of file diff --git a/examples/auth/sys-account/cli/output.cast b/examples/auth/sys-account/cli/output.cast index cfca864b..8ae6306d 100644 --- a/examples/auth/sys-account/cli/output.cast +++ b/examples/auth/sys-account/cli/output.cast @@ -1,22 +1,16 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648394, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/sys-account/cli"} -[0.451011, "o", "Network 4146a2bc_default Creating\r\n"] -[0.473303, "o", "Network 4146a2bc_default Created\r\n"] -[0.473625, "o", "Container 4146a2bc-nats-1 Creating\r\n"] -[0.487053, "o", "Container 4146a2bc-nats-1 Created\r\n"] -[0.4877, "o", "Container 4146a2bc-nats-1 Starting\r\n"] -[0.721312, "o", "Container 4146a2bc-nats-1 Started\r\n"] -[0.98135, "o", "+ touch server.conf\r\n"] -[0.982277, "o", "+ SERVER_PID=8\r\n+ sleep 0.5\r\n+ nats-server -c server.conf -l log.txt\r\n"] -[1.483611, "o", "+ nats server info\r\n"] -[1.529901, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] -[1.530964, "o", "+ cat\r\n"] -[1.532322, "o", "+ nats-server --signal reload=8\r\n"] -[1.536219, "o", "+ nats context save sys --user sys --password pass\r\n"] -[1.554532, "o", "NATS Configuration Context \"sys\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: sys\r\n Password: *********\r\n Token: sys\r\n Path: /nsc/.config/nats/context/sys.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] -[1.555523, "o", "+ nats --context sys server info\r\n"] -[1.573719, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] -[1.574719, "o", "+ cat\r\n"] -[1.575333, "o", "+ nats-server --signal reload=8\r\n"] -[1.577542, "o", "+ nats --context sys server info\r\n"] -[1.59599, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] -[1.597019, "o", "+ kill 8\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669652134, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: auth/sys-account/cli"} +[1.025861, "o", "+ touch server.conf\r\n"] +[1.028316, "o", "+ + nats-server SERVER_PID=8\r\n-c server.conf -l log.txt\r\n+ sleep 0.5\r\n"] +[1.529342, "o", "+ nats server info\r\n"] +[1.578343, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.57925, "o", "+ cat\r\n"] +[1.579878, "o", "+ nats-server --signal reload=8\r\n"] +[1.58201, "o", "+ nats context save sys --user sys --password pass\r\n"] +[1.600109, "o", "NATS Configuration Context \"sys\"\r\n\r\n Server URLs: nats://nats:4222\r\n Username: sys\r\n Password: *********\r\n Token: sys\r\n Path: /nsc/.config/nats/context/sys.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.601096, "o", "+ nats --context sys server info\r\n"] +[1.620861, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.621593, "o", "+ cat\r\n"] +[1.622179, "o", "+ nats-server --signal reload=8\r\n"] +[1.624304, "o", "+ nats --context sys server info\r\n"] +[1.642752, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[1.643468, "o", "+ kill 8\r\n"] diff --git a/examples/auth/sys-account/cli/output.txt b/examples/auth/sys-account/cli/output.txt index f5e25b16..49f591b0 100644 --- a/examples/auth/sys-account/cli/output.txt +++ b/examples/auth/sys-account/cli/output.txt @@ -1,13 +1,7 @@ -Network 4146a2bc_default Creating -Network 4146a2bc_default Created -Container 4146a2bc-nats-1 Creating -Container 4146a2bc-nats-1 Created -Container 4146a2bc-nats-1 Starting -Container 4146a2bc-nats-1 Started + touch server.conf -+ SERVER_PID=8 ++ + nats-server SERVER_PID=8 +-c server.conf -l log.txt + sleep 0.5 -+ nats-server -c server.conf -l log.txt + nats server info nats: error: no results received, ensure the account used has system privileges and appropriate permissions + cat diff --git a/examples/jetstream/interest-stream/go/output.cast b/examples/jetstream/interest-stream/go/output.cast index 56a36c23..43f28720 100644 --- a/examples/jetstream/interest-stream/go/output.cast +++ b/examples/jetstream/interest-stream/go/output.cast @@ -1,21 +1,15 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648199, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/interest-stream/go"} -[0.491222, "o", "Network 05d999d7_default Creating\r\n"] -[0.513646, "o", "Network 05d999d7_default Created\r\n"] -[0.513772, "o", "Container 05d999d7-nats-1 Creating\r\n"] -[0.552073, "o", "Container 05d999d7-nats-1 Created\r\n"] -[0.552737, "o", "Container 05d999d7-nats-1 Starting\r\n"] -[0.812068, "o", "Container 05d999d7-nats-1 Started\r\n"] -[1.069324, "o", "created the stream\r\n"] -[1.069586, "o", "published 3 messages\r\nlast message seq: 3\r\n# Stream info without any consumers\r\n"] -[1.069808, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T15:10:00.157481599Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:00.157481599Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] -[1.070692, "o", "\r\n# Stream info with one consumer\r\n"] -[1.070817, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T15:10:00.15848298Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T15:10:00.158557871Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] -[1.071352, "o", "\r\n# Stream info with one consumer and acked messages\r\n"] -[1.071483, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T15:10:00.158557871Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] -[1.072513, "o", "msg seqs 6 and 7"] -[1.0726, "o", "\r\n# Stream info with two consumers, but only one set of acked messages\r\n"] -[1.072745, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"2022-11-28T15:10:00.160147973Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T15:10:00.160227429Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] -[1.072946, "o", "\r\n# Stream info with two consumers having both acked\r\n"] -[1.073185, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 8,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T15:10:00.160227429Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] -[1.074046, "o", "\r\n# Stream info with three consumers with interest from two\r\n"] -[1.074216, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 9,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 8,\r\n \"last_ts\": \"2022-11-28T15:10:00.161690094Z\",\r\n \"consumer_count\": 3,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651868, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/interest-stream/go"} +[1.059759, "o", "created the stream\r\n"] +[1.059999, "o", "published 3 messages\r\nlast message seq: 3\r\n# Stream info without any consumers\r\n"] +[1.060212, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T16:11:09.199325492Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T16:11:09.199325492Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.061175, "o", "\r\n# Stream info with one consumer\r\n"] +[1.061321, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"2022-11-28T16:11:09.200397665Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T16:11:09.200493747Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] +[1.061959, "o", "\r\n# Stream info with one consumer and acked messages\r\n"] +[1.062174, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 5,\r\n \"last_ts\": \"2022-11-28T16:11:09.200493747Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.063053, "o", "msg seqs 6 and 7"] +[1.063137, "o", "\r\n# Stream info with two consumers, but only one set of acked messages\r\n"] +[1.063301, "o", "{\r\n \"messages\": 2,\r\n \"bytes\": 100,\r\n \"first_seq\": 6,\r\n \"first_ts\": \"2022-11-28T16:11:09.202044186Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T16:11:09.202127104Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 2,\r\n \"subjects\": null\r\n}\r\n"] +[1.063497, "o", "\r\n# Stream info with two consumers having both acked\r\n"] +[1.063656, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 8,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 7,\r\n \"last_ts\": \"2022-11-28T16:11:09.202127104Z\",\r\n \"consumer_count\": 2,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.064496, "o", "\r\n# Stream info with three consumers with interest from two\r\n"] +[1.064646, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 9,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 8,\r\n \"last_ts\": \"2022-11-28T16:11:09.203541763Z\",\r\n \"consumer_count\": 3,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] diff --git a/examples/jetstream/interest-stream/go/output.txt b/examples/jetstream/interest-stream/go/output.txt index 8611d7f1..677a7dde 100644 --- a/examples/jetstream/interest-stream/go/output.txt +++ b/examples/jetstream/interest-stream/go/output.txt @@ -1,9 +1,3 @@ -Network 05d999d7_default Creating -Network 05d999d7_default Created -Container 05d999d7-nats-1 Creating -Container 05d999d7-nats-1 Created -Container 05d999d7-nats-1 Starting -Container 05d999d7-nats-1 Started created the stream published 3 messages last message seq: 3 @@ -12,9 +6,9 @@ last message seq: 3 "messages": 0, "bytes": 0, "first_seq": 4, - "first_ts": "2022-11-28T15:10:00.157481599Z", + "first_ts": "2022-11-28T16:11:09.199325492Z", "last_seq": 3, - "last_ts": "2022-11-28T15:10:00.157481599Z", + "last_ts": "2022-11-28T16:11:09.199325492Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -27,9 +21,9 @@ last message seq: 3 "messages": 2, "bytes": 100, "first_seq": 4, - "first_ts": "2022-11-28T15:10:00.15848298Z", + "first_ts": "2022-11-28T16:11:09.200397665Z", "last_seq": 5, - "last_ts": "2022-11-28T15:10:00.158557871Z", + "last_ts": "2022-11-28T16:11:09.200493747Z", "consumer_count": 1, "deleted": null, "num_deleted": 0, @@ -44,7 +38,7 @@ last message seq: 3 "first_seq": 6, "first_ts": "1970-01-01T00:00:00Z", "last_seq": 5, - "last_ts": "2022-11-28T15:10:00.158557871Z", + "last_ts": "2022-11-28T16:11:09.200493747Z", "consumer_count": 1, "deleted": null, "num_deleted": 0, @@ -57,9 +51,9 @@ msg seqs 6 and 7 "messages": 2, "bytes": 100, "first_seq": 6, - "first_ts": "2022-11-28T15:10:00.160147973Z", + "first_ts": "2022-11-28T16:11:09.202044186Z", "last_seq": 7, - "last_ts": "2022-11-28T15:10:00.160227429Z", + "last_ts": "2022-11-28T16:11:09.202127104Z", "consumer_count": 2, "deleted": null, "num_deleted": 0, @@ -74,7 +68,7 @@ msg seqs 6 and 7 "first_seq": 8, "first_ts": "1970-01-01T00:00:00Z", "last_seq": 7, - "last_ts": "2022-11-28T15:10:00.160227429Z", + "last_ts": "2022-11-28T16:11:09.202127104Z", "consumer_count": 2, "deleted": null, "num_deleted": 0, @@ -89,7 +83,7 @@ msg seqs 6 and 7 "first_seq": 9, "first_ts": "1970-01-01T00:00:00Z", "last_seq": 8, - "last_ts": "2022-11-28T15:10:00.161690094Z", + "last_ts": "2022-11-28T16:11:09.203541763Z", "consumer_count": 3, "deleted": null, "num_deleted": 0, diff --git a/examples/jetstream/limits-stream/deno/output.cast b/examples/jetstream/limits-stream/deno/output.cast index c91c88ee..aef495d9 100644 --- a/examples/jetstream/limits-stream/deno/output.cast +++ b/examples/jetstream/limits-stream/deno/output.cast @@ -1,14 +1,8 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648192, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/deno"} -[0.528534, "o", "Network c743e892_default Creating\r\n"] -[0.558535, "o", "Network c743e892_default Created\r\n"] -[0.558696, "o", "Container c743e892-nats-1 Creating\r\n"] -[0.575622, "o", "Container c743e892-nats-1 Created\r\n"] -[0.577321, "o", "Container c743e892-nats-1 Starting\r\n"] -[0.848032, "o", "Container c743e892-nats-1 Started\r\n"] -[1.186767, "o", "created the stream\r\n"] -[1.196157, "o", "published 6 messages\r\n"] -[1.197085, "o", "published another 6 messages\r\n"] -[1.200268, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: \"2022-11-28T15:09:53.282709674Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.203185, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: \"2022-11-28T15:09:53.285830909Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.206919, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: \"2022-11-28T15:09:53.291059747Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] -[2.213528, "o", "{\r\n messages: 0,\r\n bytes: 0,\r\n first_seq: 13,\r\n first_ts: \"1970-01-01T00:00:00Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T15:09:53.291122527Z\",\r\n consumer_count: 0\r\n}\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651857, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/deno"} +[1.160445, "o", "created the stream\r\n"] +[1.170022, "o", "published 6 messages\r\n"] +[1.172158, "o", "published another 6 messages\r\n"] +[1.174604, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: \"2022-11-28T16:10:58.250632123Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T16:10:58.260396015Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.178407, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: \"2022-11-28T16:10:58.254137056Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T16:10:58.260396015Z\",\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.181726, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: \"2022-11-28T16:10:58.260347904Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T16:10:58.260396015Z\",\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] +[2.187224, "o", "{\r\n messages: 0,\r\n bytes: 0,\r\n first_seq: 13,\r\n first_ts: \"1970-01-01T00:00:00Z\",\r\n last_seq: 12,\r\n last_ts: \"2022-11-28T16:10:58.260396015Z\",\r\n consumer_count: 0\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/deno/output.txt b/examples/jetstream/limits-stream/deno/output.txt index 17b3101c..203dfacc 100644 --- a/examples/jetstream/limits-stream/deno/output.txt +++ b/examples/jetstream/limits-stream/deno/output.txt @@ -1,9 +1,3 @@ -Network c743e892_default Creating -Network c743e892_default Created -Container c743e892-nats-1 Creating -Container c743e892-nats-1 Created -Container c743e892-nats-1 Starting -Container c743e892-nats-1 Started created the stream published 6 messages published another 6 messages @@ -11,9 +5,9 @@ published another 6 messages messages: 12, bytes: 594, first_seq: 1, - first_ts: "2022-11-28T15:09:53.282709674Z", + first_ts: "2022-11-28T16:10:58.250632123Z", last_seq: 12, - last_ts: "2022-11-28T15:09:53.291122527Z", + last_ts: "2022-11-28T16:10:58.260396015Z", num_subjects: 6, consumer_count: 0 } @@ -21,9 +15,9 @@ published another 6 messages messages: 10, bytes: 496, first_seq: 3, - first_ts: "2022-11-28T15:09:53.285830909Z", + first_ts: "2022-11-28T16:10:58.254137056Z", last_seq: 12, - last_ts: "2022-11-28T15:09:53.291122527Z", + last_ts: "2022-11-28T16:10:58.260396015Z", num_subjects: 6, consumer_count: 0 } @@ -31,9 +25,9 @@ published another 6 messages messages: 6, bytes: 298, first_seq: 7, - first_ts: "2022-11-28T15:09:53.291059747Z", + first_ts: "2022-11-28T16:10:58.260347904Z", last_seq: 12, - last_ts: "2022-11-28T15:09:53.291122527Z", + last_ts: "2022-11-28T16:10:58.260396015Z", num_subjects: 4, consumer_count: 0 } @@ -43,6 +37,6 @@ published another 6 messages first_seq: 13, first_ts: "1970-01-01T00:00:00Z", last_seq: 12, - last_ts: "2022-11-28T15:09:53.291122527Z", + last_ts: "2022-11-28T16:10:58.260396015Z", consumer_count: 0 } diff --git a/examples/jetstream/limits-stream/go/output.cast b/examples/jetstream/limits-stream/go/output.cast index d191e667..31d93ed8 100644 --- a/examples/jetstream/limits-stream/go/output.cast +++ b/examples/jetstream/limits-stream/go/output.cast @@ -1,19 +1,13 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648181, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/go"} -[0.506388, "o", "Network 62ad5d49_default Creating\r\n"] -[0.529553, "o", "Network 62ad5d49_default Created\r\n"] -[0.529669, "o", "Container 62ad5d49-nats-1 Creating\r\n"] -[0.547662, "o", "Container 62ad5d49-nats-1 Created\r\n"] -[0.548344, "o", "Container 62ad5d49-nats-1 Starting\r\n"] -[0.793481, "o", "Container 62ad5d49-nats-1 Started\r\n"] -[1.052442, "o", "created the stream\r\n"] -[1.05295, "o", "published 6 messages\r\n"] -[1.053045, "o", "published 6 messages\r\n"] -[1.053646, "o", "inspecting stream info\r\n{\r\n \"messages\": 12,\r\n \"bytes\": 594,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T15:09:42.133118312Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] -[1.053961, "o", "set max messages to 10\r\n"] -[1.05411, "o", "inspecting stream info\r\n{\r\n \"messages\": 10,\r\n \"bytes\": 496,\r\n \"first_seq\": 3,\r\n \"first_ts\": \"2022-11-28T15:09:42.133351107Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] -[1.054381, "o", "set max bytes to 300\r\n"] -[1.054554, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T15:09:42.133639938Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n"] -[1.054617, "o", " \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\n"] -[1.054868, "o", "set max age to one second\r\n"] -[1.055071, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T15:09:42.133639938Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\nsleeping one second...\r\n"] -[2.055944, "o", "inspecting stream info\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 13,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T15:09:42.133696589Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651862, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/go"} +[0.597953, "o", "\r\n"] +[1.151995, "o", "created the stream\r\n"] +[1.152356, "o", "published 6 messages\r\n"] +[1.152462, "o", "published 6 messages\r\n"] +[1.152692, "o", "inspecting stream info\r\n{\r\n \"messages\": 12,\r\n \"bytes\": 594,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T16:11:03.623393509Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T16:11:03.623840598Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] +[1.152986, "o", "set max messages to 10\r\n"] +[1.153121, "o", "inspecting stream info\r\n{\r\n \"messages\": 10,\r\n \"bytes\": 496,\r\n \"first_seq\": 3,\r\n \"first_ts\": \"2022-11-28T16:11:03.623583582Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T16:11:03.623840598Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 6,\r\n \"subjects\": null\r\n}\r\n"] +[1.153354, "o", "set max bytes to 300\r\n"] +[1.153543, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T16:11:03.623817987Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T16:11:03.623840598Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\n"] +[1.153771, "o", "set max age to one second\r\n"] +[1.153896, "o", "inspecting stream info\r\n{\r\n \"messages\": 6,\r\n \"bytes\": 298,\r\n \"first_seq\": 7,\r\n \"first_ts\": \"2022-11-28T16:11:03.623817987Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T16:11:03.623840598Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 4,\r\n \"subjects\": null\r\n}\r\nsleeping one second...\r\n"] +[2.154706, "o", "inspecting stream info\r\n{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 13,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 12,\r\n \"last_ts\": \"2022-11-28T16:11:03.623840598Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] diff --git a/examples/jetstream/limits-stream/go/output.txt b/examples/jetstream/limits-stream/go/output.txt index ff5de2b1..19c332da 100644 --- a/examples/jetstream/limits-stream/go/output.txt +++ b/examples/jetstream/limits-stream/go/output.txt @@ -1,9 +1,4 @@ -Network 62ad5d49_default Creating -Network 62ad5d49_default Created -Container 62ad5d49-nats-1 Creating -Container 62ad5d49-nats-1 Created -Container 62ad5d49-nats-1 Starting -Container 62ad5d49-nats-1 Started + created the stream published 6 messages published 6 messages @@ -12,9 +7,9 @@ inspecting stream info "messages": 12, "bytes": 594, "first_seq": 1, - "first_ts": "2022-11-28T15:09:42.133118312Z", + "first_ts": "2022-11-28T16:11:03.623393509Z", "last_seq": 12, - "last_ts": "2022-11-28T15:09:42.133696589Z", + "last_ts": "2022-11-28T16:11:03.623840598Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -27,9 +22,9 @@ inspecting stream info "messages": 10, "bytes": 496, "first_seq": 3, - "first_ts": "2022-11-28T15:09:42.133351107Z", + "first_ts": "2022-11-28T16:11:03.623583582Z", "last_seq": 12, - "last_ts": "2022-11-28T15:09:42.133696589Z", + "last_ts": "2022-11-28T16:11:03.623840598Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -42,9 +37,9 @@ inspecting stream info "messages": 6, "bytes": 298, "first_seq": 7, - "first_ts": "2022-11-28T15:09:42.133639938Z", + "first_ts": "2022-11-28T16:11:03.623817987Z", "last_seq": 12, - "last_ts": "2022-11-28T15:09:42.133696589Z", + "last_ts": "2022-11-28T16:11:03.623840598Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -57,9 +52,9 @@ inspecting stream info "messages": 6, "bytes": 298, "first_seq": 7, - "first_ts": "2022-11-28T15:09:42.133639938Z", + "first_ts": "2022-11-28T16:11:03.623817987Z", "last_seq": 12, - "last_ts": "2022-11-28T15:09:42.133696589Z", + "last_ts": "2022-11-28T16:11:03.623840598Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -74,7 +69,7 @@ inspecting stream info "first_seq": 13, "first_ts": "1970-01-01T00:00:00Z", "last_seq": 12, - "last_ts": "2022-11-28T15:09:42.133696589Z", + "last_ts": "2022-11-28T16:11:03.623840598Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, diff --git a/examples/jetstream/limits-stream/node/output.cast b/examples/jetstream/limits-stream/node/output.cast index f0813bb1..9dc8c0ef 100644 --- a/examples/jetstream/limits-stream/node/output.cast +++ b/examples/jetstream/limits-stream/node/output.cast @@ -1,15 +1,9 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648185, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/node"} -[0.503967, "o", "Network c38b940e_default Creating\r\n"] -[0.527528, "o", "Network c38b940e_default Created\r\n"] -[0.527651, "o", "Container c38b940e-nats-1 Creating\r\n"] -[0.541664, "o", "Container c38b940e-nats-1 Created\r\n"] -[0.542406, "o", "Container c38b940e-nats-1 Starting\r\n"] -[0.803401, "o", "Container c38b940e-nats-1 Started\r\n"] -[1.244828, "o", "created the stream\r\n"] -[1.253934, "o", "published 6 messages\r\n"] -[1.256067, "o", "published another 6 messages\r\n"] -[1.25927, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: '2022-11-28T15:09:46.352771726Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.264229, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: '2022-11-28T15:09:46.355841761Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] -[1.268677, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: '2022-11-28T15:09:46.361837989Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T15:09:46.361869771Z',\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] -[1.272621, "o", "/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187\r\n return new error_1.NatsError(description, `${code}`);\r\n ^\r\n\r\nNatsError: duplicates window can not be larger then max age\r\n at checkJsErrorCode (/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187:20)\r\n at StreamAPIImpl.parseJsResponse (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:89:55)\r\n at StreamAPIImpl. (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:71:25)\r\n at Generator.next ()\r\n at fulfilled (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:19:58)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {\r\n code: '500',\r\n chainedError: undefined,\r\n api_error: {\r\n code: 500,\r\n err_code: 10052,\r\n description: 'duplicates window can not be larger then max age'\r\n }\r\n}\r\n\r\nNode.js v19.1.0\r\n"] -[1.747013, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651851, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/limits-stream/node"} +[1.184131, "o", "created the stream\r\n"] +[1.19322, "o", "published 6 messages\r\n"] +[1.195205, "o", "published another 6 messages\r\n"] +[1.198345, "o", "{\r\n messages: 12,\r\n bytes: 594,\r\n first_seq: 1,\r\n first_ts: '2022-11-28T16:10:52.262780742Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T16:10:52.271768465Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.203382, "o", "{\r\n messages: 10,\r\n bytes: 496,\r\n first_seq: 3,\r\n first_ts: '2022-11-28T16:10:52.265882059Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T16:10:52.271768465Z',\r\n num_subjects: 6,\r\n consumer_count: 0\r\n}\r\n"] +[1.207877, "o", "{\r\n messages: 6,\r\n bytes: 298,\r\n first_seq: 7,\r\n first_ts: '2022-11-28T16:10:52.271730355Z',\r\n last_seq: 12,\r\n last_ts: '2022-11-28T16:10:52.271768465Z',\r\n num_subjects: 4,\r\n consumer_count: 0\r\n}\r\n"] +[1.211717, "o", "/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187\r\n return new error_1.NatsError(description, `${code}`);\r\n ^\r\n\r\nNatsError: duplicates window can not be larger then max age\r\n at checkJsErrorCode (/opt/app/node_modules/nats/lib/nats-base-client/jsutil.js:187:20)\r\n at StreamAPIImpl.parseJsResponse (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:89:55)\r\n at StreamAPIImpl. (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:71:25)\r\n at Generator.next ()\r\n at fulfilled (/opt/app/node_modules/nats/lib/nats-base-client/jsbaseclient_api.js:19:58)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {\r\n code: '500',\r\n chainedError: undefined,\r\n api_error: {\r\n code: 500,\r\n err_code: 10052,\r\n description: 'duplicates window can not be larger then max age'\r\n }\r\n}\r\n\r\nNode.js v19.1.0\r\n"] +[1.658983, "o", "exit status 1\r\n"] diff --git a/examples/jetstream/limits-stream/node/output.txt b/examples/jetstream/limits-stream/node/output.txt index c6e74dcd..e91f3f80 100644 --- a/examples/jetstream/limits-stream/node/output.txt +++ b/examples/jetstream/limits-stream/node/output.txt @@ -1,9 +1,3 @@ -Network c38b940e_default Creating -Network c38b940e_default Created -Container c38b940e-nats-1 Creating -Container c38b940e-nats-1 Created -Container c38b940e-nats-1 Starting -Container c38b940e-nats-1 Started created the stream published 6 messages published another 6 messages @@ -11,9 +5,9 @@ published another 6 messages messages: 12, bytes: 594, first_seq: 1, - first_ts: '2022-11-28T15:09:46.352771726Z', + first_ts: '2022-11-28T16:10:52.262780742Z', last_seq: 12, - last_ts: '2022-11-28T15:09:46.361869771Z', + last_ts: '2022-11-28T16:10:52.271768465Z', num_subjects: 6, consumer_count: 0 } @@ -21,9 +15,9 @@ published another 6 messages messages: 10, bytes: 496, first_seq: 3, - first_ts: '2022-11-28T15:09:46.355841761Z', + first_ts: '2022-11-28T16:10:52.265882059Z', last_seq: 12, - last_ts: '2022-11-28T15:09:46.361869771Z', + last_ts: '2022-11-28T16:10:52.271768465Z', num_subjects: 6, consumer_count: 0 } @@ -31,9 +25,9 @@ published another 6 messages messages: 6, bytes: 298, first_seq: 7, - first_ts: '2022-11-28T15:09:46.361837989Z', + first_ts: '2022-11-28T16:10:52.271730355Z', last_seq: 12, - last_ts: '2022-11-28T15:09:46.361869771Z', + last_ts: '2022-11-28T16:10:52.271768465Z', num_subjects: 4, consumer_count: 0 } diff --git a/examples/jetstream/multi-stream-consumption/go/output.cast b/examples/jetstream/multi-stream-consumption/go/output.cast index 96c2d7aa..a8c848f8 100644 --- a/examples/jetstream/multi-stream-consumption/go/output.cast +++ b/examples/jetstream/multi-stream-consumption/go/output.cast @@ -1,10 +1,4 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648348, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/multi-stream-consumption/go"} -[0.508356, "o", "Network 74876d33_default Creating\r\n"] -[0.531446, "o", "Network 74876d33_default Created\r\n"] -[0.531625, "o", "Container 74876d33-nats-1 Creating\r\n"] -[0.545237, "o", "Container 74876d33-nats-1 Created\r\n"] -[0.546439, "o", "Container 74876d33-nats-1 Starting\r\n"] -[0.799885, "o", "Container 74876d33-nats-1 Started\r\n"] -[1.054798, "o", "events.us.page_loaded\r\nevents.us.mouse_clicked\r\nevents.us.input_focused\r\nevents.eu.page_loaded\r\nevents.eu.input_focused\r\nevents.eu.mouse_clicked\r\n"] -[2.055588, "o", "eu: last delivered: 3, num pending: 0\r\n"] -[2.05574, "o", "us: last delivered: 3, num pending: 0\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669652001, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/multi-stream-consumption/go"} +[1.042573, "o", "events.us.page_loaded\r\nevents.us.mouse_clicked\r\nevents.us.input_focused\r\nevents.eu.page_loaded\r\nevents.eu.input_focused\r\nevents.eu.mouse_clicked\r\n"] +[2.044024, "o", "eu: last delivered: 3, num pending: 0\r\n"] +[2.044393, "o", "us: last delivered: 3, num pending: 0\r\n"] diff --git a/examples/jetstream/multi-stream-consumption/go/output.txt b/examples/jetstream/multi-stream-consumption/go/output.txt index ab0a4c95..6e2c1b47 100644 --- a/examples/jetstream/multi-stream-consumption/go/output.txt +++ b/examples/jetstream/multi-stream-consumption/go/output.txt @@ -1,9 +1,3 @@ -Network 74876d33_default Creating -Network 74876d33_default Created -Container 74876d33-nats-1 Creating -Container 74876d33-nats-1 Created -Container 74876d33-nats-1 Starting -Container 74876d33-nats-1 Started events.us.page_loaded events.us.mouse_clicked events.us.input_focused diff --git a/examples/jetstream/pull-consumer-limits/go/output.cast b/examples/jetstream/pull-consumer-limits/go/output.cast index 4918d5dc..9527ba06 100644 --- a/examples/jetstream/pull-consumer-limits/go/output.cast +++ b/examples/jetstream/pull-consumer-limits/go/output.cast @@ -1,13 +1,7 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648323, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer-limits/go"} -[0.528205, "o", "Network 92b21fe7_default Creating\r\n"] -[0.551214, "o", "Network 92b21fe7_default Created\r\n"] -[0.551352, "o", "Container 92b21fe7-nats-1 Creating\r\n"] -[0.564371, "o", "Container 92b21fe7-nats-1 Created\r\n"] -[0.565033, "o", "Container 92b21fe7-nats-1 Starting\r\n"] -[0.81289, "o", "Container 92b21fe7-nats-1 Started\r\n"] -[1.072885, "o", "--- max in-flight messages (n=1) ---\r\n"] -[1.073445, "o", "requested 3, got 2\r\n"] -[2.073815, "o", "nats: timeout\r\n"] -[7.074649, "o", "requested 1, got 0\r\n"] -[7.076651, "o", "panic: runtime error: index out of range [0] with length 0\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n\t/opt/app/main.go:95 +0xd9e\r\n"] -[7.495375, "o", "exit status 2\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651982, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer-limits/go"} +[1.045273, "o", "--- max in-flight messages (n=1) ---\r\n"] +[1.045537, "o", "requested 3, got 2\r\n"] +[2.046244, "o", "nats: timeout\r\n"] +[7.047447, "o", "requested 1, got 0\r\n"] +[7.058948, "o", "panic: runtime error: index out of range [0] with length 0\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n\t/opt/app/main.go:95 +0xd9e\r\n"] +[7.545419, "o", "exit status 2\r\n"] diff --git a/examples/jetstream/pull-consumer-limits/go/output.txt b/examples/jetstream/pull-consumer-limits/go/output.txt index a08407d8..972a29b4 100644 --- a/examples/jetstream/pull-consumer-limits/go/output.txt +++ b/examples/jetstream/pull-consumer-limits/go/output.txt @@ -1,9 +1,3 @@ -Network 92b21fe7_default Creating -Network 92b21fe7_default Created -Container 92b21fe7-nats-1 Creating -Container 92b21fe7-nats-1 Created -Container 92b21fe7-nats-1 Starting -Container 92b21fe7-nats-1 Started --- max in-flight messages (n=1) --- requested 3, got 2 nats: timeout diff --git a/examples/jetstream/pull-consumer/go/output.cast b/examples/jetstream/pull-consumer/go/output.cast index ec85096d..fbd965aa 100644 --- a/examples/jetstream/pull-consumer/go/output.cast +++ b/examples/jetstream/pull-consumer/go/output.cast @@ -1,15 +1,8 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648214, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/go"} -[0.507087, "o", "Network 60ce4760_default Creating\r\n"] -[0.530424, "o", "Network 60ce4760_default Created\r\n"] -[0.530533, "o", "Container 60ce4760-nats-1 Creating\r\n"] -[0.566174, "o", "Container 60ce4760-nats-1 Created\r\n"] -[0.566824, "o", "Container 60ce4760-nats-1 Starting\r\n"] -[0.847107, "o", "Container 60ce4760-nats-1 Started\r\n"] -[1.123202, "o", "ephemeral name is \"IB4t47JU\"\r\n"] -[1.123361, "o", "got 2 messages\r\n"] -[1.123599, "o", "got 1 messages\r\n"] -[2.124778, "o", "timeout? true\r\n"] -[2.126228, "o", "received \"events.1\" from sub1\r\n"] -[2.126465, "o", "received \"events.2\" from sub1 (after reconnect)\r\n"] -[2.126808, "o", "received \"events.3\" from sub2\r\n"] -[3.126983, "o", "timeout on sub1? true\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651976, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/go"} +[1.105465, "o", "ephemeral name is \"OZS82hE4\"\r\n"] +[1.105644, "o", "got 2 messages\r\ngot 1 messages\r\n"] +[2.106392, "o", "timeout? true\r\n"] +[2.108256, "o", "received \"events.1\" from sub1\r\n"] +[2.108673, "o", "received \"events.2\" from sub1 (after reconnect)\r\n"] +[2.109292, "o", "received \"events.3\" from sub2\r\n"] +[3.110091, "o", "timeout on sub1? true\r\n"] diff --git a/examples/jetstream/pull-consumer/go/output.txt b/examples/jetstream/pull-consumer/go/output.txt index b3f6d3db..b64c472a 100644 --- a/examples/jetstream/pull-consumer/go/output.txt +++ b/examples/jetstream/pull-consumer/go/output.txt @@ -1,10 +1,4 @@ -Network 60ce4760_default Creating -Network 60ce4760_default Created -Container 60ce4760-nats-1 Creating -Container 60ce4760-nats-1 Created -Container 60ce4760-nats-1 Starting -Container 60ce4760-nats-1 Started -ephemeral name is "IB4t47JU" +ephemeral name is "OZS82hE4" got 2 messages got 1 messages timeout? true diff --git a/examples/jetstream/pull-consumer/rust/output.cast b/examples/jetstream/pull-consumer/rust/output.cast index e8fc5e98..a0317b95 100644 --- a/examples/jetstream/pull-consumer/rust/output.cast +++ b/examples/jetstream/pull-consumer/rust/output.cast @@ -1,9 +1,4 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648317, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/rust"} -[0.530768, "o", "Network eaba061e_default Creating\r\n"] -[0.55348, "o", "Network eaba061e_default Created\r\n"] -[0.553597, "o", "Container eaba061e-nats-1 Creating\r\n"] -[0.594775, "o", "Container eaba061e-nats-1 Created\r\n"] -[0.595462, "o", "Container eaba061e-nats-1 Starting\r\n"] -[0.874147, "o", "Container eaba061e-nats-1 Started\r\n"] -[1.160427, "o", "got message on subject events.0 with payload \"data\"\r\ngot message on subject events.1 with payload \"data\"\r\ngot message on subject events.2 with payload \"data\"\r\ngot message on subject events.3 with payload \"data\"\r\ngot message on subject events.4 with payload \"data\"\r\ngot message on subject events.5 with payload \"data\"\r\n"] -[1.16056, "o", "got message on subject events.6 with payload \"data\"\r\ngot message on subject events.7 with payload \"data\"\r\ngot message on subject events.8 with payload \"data\"\r\ngot message on subject events.9 with payload \"data\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651972, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/pull-consumer/rust"} +[1.131861, "o", "got message on subject events.0 with payload \"data\"\r\ngot message on subject events.1 with payload \"data\"\r\ngot message on subject events.2 with payload \"data\"\r\ngot message on subject events.3 with payload \"data\"\r\ngot message on subject events.4 with payload \"data\"\r\ngot message on subject events.5 with payload \"data\"\r\n"] +[1.131974, "o", "got message on subject events.6 with payload \"data\"\r\ngot message on subject events.7 with payload \"data\"\r\ngot message on subject events.8 with payload \"data\"\r\n"] +[1.13199, "o", "got message on subject events.9 with payload \"data\"\r\n"] diff --git a/examples/jetstream/pull-consumer/rust/output.txt b/examples/jetstream/pull-consumer/rust/output.txt index 580477fb..511391b3 100644 --- a/examples/jetstream/pull-consumer/rust/output.txt +++ b/examples/jetstream/pull-consumer/rust/output.txt @@ -1,9 +1,3 @@ -Network eaba061e_default Creating -Network eaba061e_default Created -Container eaba061e-nats-1 Creating -Container eaba061e-nats-1 Created -Container eaba061e-nats-1 Starting -Container eaba061e-nats-1 Started got message on subject events.0 with payload "data" got message on subject events.1 with payload "data" got message on subject events.2 with payload "data" diff --git a/examples/jetstream/push-consumer/go/output.cast b/examples/jetstream/push-consumer/go/output.cast index cccd8cd3..24d20713 100644 --- a/examples/jetstream/push-consumer/go/output.cast +++ b/examples/jetstream/push-consumer/go/output.cast @@ -1,18 +1,12 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648335, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/push-consumer/go"} -[0.499575, "o", "Network 31720370_default Creating\r\n"] -[0.521513, "o", "Network 31720370_default Created\r\n"] -[0.521554, "o", "Container 31720370-nats-1 Creating\r\n"] -[0.544924, "o", "Container 31720370-nats-1 Created\r\n"] -[0.54553, "o", "Container 31720370-nats-1 Starting\r\n"] -[0.807781, "o", "Container 31720370-nats-1 Started\r\n"] -[1.056035, "o", "# Ephemeral\r\n"] -[1.057071, "o", "ephemeral name is \"mpKRrfwC\"\r\n3 messages queued\r\n"] -[1.057296, "o", "6 messages queued\r\nreceived \"events.1\"\r\nreceived \"events.2\"\r\n4 messages queued\r\n"] -[1.057635, "o", "\r\n# Durable (Helper)\r\n"] -[1.0583, "o", "6 messages queued\r\n"] -[1.058634, "o", "nats: consumer not found\r\n\r\n# Durable (AddConsumer)\r\n"] -[1.059454, "o", "received \"events.1\"\r\n5 messages queued\r\n"] -[1.059598, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 6\r\nnum ack pending: 5\r\nnum redelivered: 0\r\n"] -[1.160174, "o", "received timeout? true\r\n"] -[2.061742, "o", "received \"events.2\" (delivery #2)\r\n"] -[2.062108, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 11\r\nnum ack pending: 4\r\nnum redelivered: 4\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651992, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/push-consumer/go"} +[1.155308, "o", "# Ephemeral\r\n"] +[1.156284, "o", "ephemeral name is \"N3j5K2Db\"\r\n3 messages queued\r\n"] +[1.156494, "o", "6 messages queued\r\nreceived \"events.1\"\r\nreceived \"events.2\"\r\n4 messages queued\r\n"] +[1.156755, "o", "\r\n# Durable (Helper)\r\n"] +[1.157463, "o", "6 messages queued\r\n"] +[1.157783, "o", "nats: consumer not found\r\n\r\n# Durable (AddConsumer)\r\n"] +[1.158851, "o", "received \"events.1\"\r\n5 messages queued\r\n"] +[1.159008, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 6\r\nnum ack pending: 6\r\nnum redelivered: 0\r\n"] +[1.259874, "o", "received timeout? true\r\n"] +[2.161447, "o", "received \"events.2\" (delivery #2)\r\n"] +[2.161761, "o", "max stream sequence delivered: 6\r\nmax consumer sequence delivered: 11\r\nnum ack pending: 4\r\nnum redelivered: 4\r\n"] diff --git a/examples/jetstream/push-consumer/go/output.txt b/examples/jetstream/push-consumer/go/output.txt index cd1cb14c..43c383eb 100644 --- a/examples/jetstream/push-consumer/go/output.txt +++ b/examples/jetstream/push-consumer/go/output.txt @@ -1,11 +1,5 @@ -Network 31720370_default Creating -Network 31720370_default Created -Container 31720370-nats-1 Creating -Container 31720370-nats-1 Created -Container 31720370-nats-1 Starting -Container 31720370-nats-1 Started # Ephemeral -ephemeral name is "mpKRrfwC" +ephemeral name is "N3j5K2Db" 3 messages queued 6 messages queued received "events.1" @@ -21,7 +15,7 @@ received "events.1" 5 messages queued max stream sequence delivered: 6 max consumer sequence delivered: 6 -num ack pending: 5 +num ack pending: 6 num redelivered: 0 received timeout? true received "events.2" (delivery #2) diff --git a/examples/jetstream/queue-push-consumer/go/output.cast b/examples/jetstream/queue-push-consumer/go/output.cast index 6e57050c..021b7d9a 100644 --- a/examples/jetstream/queue-push-consumer/go/output.cast +++ b/examples/jetstream/queue-push-consumer/go/output.cast @@ -1,13 +1,8 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648342, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/queue-push-consumer/go"} -[0.523185, "o", "Network 9123e333_default Creating\r\n"] -[0.545313, "o", "Network 9123e333_default Created\r\n"] -[0.54543, "o", "Container 9123e333-nats-1 Creating\r\n"] -[0.590988, "o", "Container 9123e333-nats-1 Created\r\n"] -[0.591972, "o", "Container 9123e333-nats-1 Starting\r\n"] -[0.803285, "o", "Container 9123e333-nats-1 Started\r\n"] -[1.055165, "o", "# Durable (implicit)\r\n"] -[1.056263, "o", "deliver group: \"event-processor\"\r\n"] -[1.056541, "o", "deliver subject: \"_INBOX.3PK2fvr3Dj4vhWPrm6rs6w\"\r\n"] -[1.057227, "o", "sub1: received message \"events.1\"\r\nsub2: received message \"events.2\"\r\nsub3: received message \"events.4\"\r\n"] -[1.057598, "o", "\r\n# Durable (explicit)\r\n"] -[1.0583, "o", "sub3: received message \"events.2\"\r\nsub2: received message \"events.1\"\r\nsub3: received message \"events.3\"\r\nsub3: received message \"events.4\"\r\nsub3: received message \"events.5\"\r\nsub3: received message \"events.6\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651997, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/queue-push-consumer/go"} +[1.058089, "o", "# Durable (implicit)\r\n"] +[1.059161, "o", "deliver group: \"event-processor\"\r\n"] +[1.059445, "o", "deliver subject: \"_INBOX.ty4KkTYOtmSgsDSf5MN2p2\"\r\n"] +[1.05991, "o", "sub1: received message \"events.3\"\r\nsub2: received message \"events.5\"\r\nsub3: received message \"events.1\"\r\n"] +[1.060157, "o", "\r\n# Durable (explicit)\r\n"] +[1.060726, "o", "sub1: received message \"events.6\"\r\nsub3: received message \"events.1\"\r\nsub2: received message \"events.3\"\r\n"] +[1.060775, "o", "sub2: received message \"events.4\"\r\nsub3: received message \"events.2\"\r\nsub2: received message \"events.5\"\r\n"] diff --git a/examples/jetstream/queue-push-consumer/go/output.txt b/examples/jetstream/queue-push-consumer/go/output.txt index 340ccfe7..0a86e101 100644 --- a/examples/jetstream/queue-push-consumer/go/output.txt +++ b/examples/jetstream/queue-push-consumer/go/output.txt @@ -1,20 +1,14 @@ -Network 9123e333_default Creating -Network 9123e333_default Created -Container 9123e333-nats-1 Creating -Container 9123e333-nats-1 Created -Container 9123e333-nats-1 Starting -Container 9123e333-nats-1 Started # Durable (implicit) deliver group: "event-processor" -deliver subject: "_INBOX.3PK2fvr3Dj4vhWPrm6rs6w" -sub1: received message "events.1" -sub2: received message "events.2" -sub3: received message "events.4" +deliver subject: "_INBOX.ty4KkTYOtmSgsDSf5MN2p2" +sub1: received message "events.3" +sub2: received message "events.5" +sub3: received message "events.1" # Durable (explicit) +sub1: received message "events.6" +sub3: received message "events.1" +sub2: received message "events.3" +sub2: received message "events.4" sub3: received message "events.2" -sub2: received message "events.1" -sub3: received message "events.3" -sub3: received message "events.4" -sub3: received message "events.5" -sub3: received message "events.6" +sub2: received message "events.5" diff --git a/examples/jetstream/workqueue-stream/go/output.cast b/examples/jetstream/workqueue-stream/go/output.cast index 9a456d7f..7c90c868 100644 --- a/examples/jetstream/workqueue-stream/go/output.cast +++ b/examples/jetstream/workqueue-stream/go/output.cast @@ -1,18 +1,12 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648205, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/workqueue-stream/go"} -[0.574903, "o", "Network bcd33834_default Creating\r\n"] -[0.596538, "o", "Network bcd33834_default Created\r\n"] -[0.59666, "o", "Container bcd33834-nats-1 Creating\r\n"] -[0.609595, "o", "Container bcd33834-nats-1 Created\r\n"] -[0.610289, "o", "Container bcd33834-nats-1 Starting\r\n"] -[0.879603, "o", "Container bcd33834-nats-1 Started\r\n"] -[1.134583, "o", "created the stream\r\n"] -[1.135265, "o", "published 3 messages\r\n# Stream info without any consumers\r\n"] -[1.136007, "o", "{\r\n \"messages\": 3,\r\n \"bytes\": 157,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T15:10:06.222737599Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:06.223238038Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 3,\r\n \"subjects\": null\r\n}\r\n"] -[1.138876, "o", "\r\n# Stream info with one consumer\r\n"] -[1.139383, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T15:10:06.223238038Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] -[1.140271, "o", "\r\n# Create an overlapping consumer\r\nnats: multiple non-filtered consumers not allowed on workqueue stream\r\n"] -[1.141345, "o", "created the new consumer? true\r\n"] -[1.141534, "o", "\r\n# Create non-overlapping consumers\r\n"] -[1.143105, "o", "published 4 messages\r\n"] -[1.143192, "o", "us sub got: events.us.page_loaded\r\nus sub got: events.us.input_focused\r\n"] -[1.143444, "o", "eu sub got: events.eu.mouse_clicked\r\neu sub got: events.eu.page_loaded\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651872, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: jetstream/workqueue-stream/go"} +[1.090263, "o", "created the stream\r\n"] +[1.090585, "o", "published 3 messages\r\n# Stream info without any consumers\r\n"] +[1.090871, "o", "{\r\n \"messages\": 3,\r\n \"bytes\": 157,\r\n \"first_seq\": 1,\r\n \"first_ts\": \"2022-11-28T16:11:13.226244142Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T16:11:13.22652749Z\",\r\n \"consumer_count\": 0,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 3,\r\n \"subjects\": null\r\n}\r\n"] +[1.092133, "o", "\r\n# Stream info with one consumer\r\n"] +[1.092293, "o", "{\r\n \"messages\": 0,\r\n \"bytes\": 0,\r\n \"first_seq\": 4,\r\n \"first_ts\": \"1970-01-01T00:00:00Z\",\r\n \"last_seq\": 3,\r\n \"last_ts\": \"2022-11-28T16:11:13.22652749Z\",\r\n \"consumer_count\": 1,\r\n \"deleted\": null,\r\n \"num_deleted\": 0,\r\n \"num_subjects\": 0,\r\n \"subjects\": null\r\n}\r\n"] +[1.092573, "o", "\r\n# Create an overlapping consumer\r\nnats: multiple non-filtered consumers not allowed on workqueue stream\r\n"] +[1.09337, "o", "created the new consumer? true\r\n"] +[1.093584, "o", "\r\n# Create non-overlapping consumers\r\n"] +[1.095001, "o", "published 4 messages\r\n"] +[1.095135, "o", "us sub got: events.us.page_loaded\r\nus sub got: events.us.input_focused\r\n"] +[1.095321, "o", "eu sub got: events.eu.mouse_clicked\r\neu sub got: events.eu.page_loaded\r\n"] diff --git a/examples/jetstream/workqueue-stream/go/output.txt b/examples/jetstream/workqueue-stream/go/output.txt index 2dd808b9..b5006ebb 100644 --- a/examples/jetstream/workqueue-stream/go/output.txt +++ b/examples/jetstream/workqueue-stream/go/output.txt @@ -1,9 +1,3 @@ -Network bcd33834_default Creating -Network bcd33834_default Created -Container bcd33834-nats-1 Creating -Container bcd33834-nats-1 Created -Container bcd33834-nats-1 Starting -Container bcd33834-nats-1 Started created the stream published 3 messages # Stream info without any consumers @@ -11,9 +5,9 @@ published 3 messages "messages": 3, "bytes": 157, "first_seq": 1, - "first_ts": "2022-11-28T15:10:06.222737599Z", + "first_ts": "2022-11-28T16:11:13.226244142Z", "last_seq": 3, - "last_ts": "2022-11-28T15:10:06.223238038Z", + "last_ts": "2022-11-28T16:11:13.22652749Z", "consumer_count": 0, "deleted": null, "num_deleted": 0, @@ -28,7 +22,7 @@ published 3 messages "first_seq": 4, "first_ts": "1970-01-01T00:00:00Z", "last_seq": 3, - "last_ts": "2022-11-28T15:10:06.223238038Z", + "last_ts": "2022-11-28T16:11:13.22652749Z", "consumer_count": 1, "deleted": null, "num_deleted": 0, diff --git a/examples/kv/intro/go/output.cast b/examples/kv/intro/go/output.cast index 0d2710be..b0fa5758 100644 --- a/examples/kv/intro/go/output.cast +++ b/examples/kv/intro/go/output.cast @@ -1,8 +1,11 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648517, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: kv/intro/go"} -[0.49216, "o", "Network 06f9aae1_default Creating\r\n"] -[0.516738, "o", "Network 06f9aae1_default Created\r\n"] -[0.516885, "o", "Container 06f9aae1-nats-1 Creating\r\n"] -[0.532376, "o", "Container 06f9aae1-nats-1 Created\r\n"] -[0.53324, "o", "Container 06f9aae1-nats-1 Starting\r\n"] -[0.601306, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 06f9aae1-nats-1 (0b1af6ca9e0ea9e08581a3bb99d97a132c9264246ea446bec193354a95a7e3bb): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.742696, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653286, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: kv/intro/go"} +[1.104996, "o", "sue.color @ 1 -> \"blue\"\r\n"] +[1.105175, "o", "sue.color @ 2 -> \"green\"\r\n"] +[1.105214, "o", "expected error: nats: wrong last sequence: 2\r\n"] +[1.105514, "o", "sue.color @ 3 -> \"red\"\r\n"] +[1.105962, "o", "KV stream name: KV_profiles\r\n"] +[1.108088, "o", "$KV.profiles.sue.color @ 3 -> \"red\"\r\n"] +[1.108313, "o", "$KV.profiles.sue.color @ 4 -> \"yellow\"\r\n"] +[1.108388, "o", "$KV.profiles.sue.color @ 5 -> \"\"\r\nheaders: map[KV-Operation:[DEL]]\r\n"] +[1.109917, "o", "sue.color @ 5 -> \"\" (op: KeyValueDeleteOp)\r\nsue.color @ 6 -> \"purple\" (op: KeyValuePutOp)\r\n"] +[1.110053, "o", "sue.food @ 7 -> \"pizza\" (op: KeyValuePutOp)\r\n"] diff --git a/examples/kv/intro/go/output.txt b/examples/kv/intro/go/output.txt index 4f76751a..57988ab5 100644 --- a/examples/kv/intro/go/output.txt +++ b/examples/kv/intro/go/output.txt @@ -1,7 +1,12 @@ -Network 06f9aae1_default Creating -Network 06f9aae1_default Created -Container 06f9aae1-nats-1 Creating -Container 06f9aae1-nats-1 Created -Container 06f9aae1-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint 06f9aae1-nats-1 (0b1af6ca9e0ea9e08581a3bb99d97a132c9264246ea446bec193354a95a7e3bb): Bind for 0.0.0.0:18222 failed: port is already allocated -exit status 1 +sue.color @ 1 -> "blue" +sue.color @ 2 -> "green" +expected error: nats: wrong last sequence: 2 +sue.color @ 3 -> "red" +KV stream name: KV_profiles +$KV.profiles.sue.color @ 3 -> "red" +$KV.profiles.sue.color @ 4 -> "yellow" +$KV.profiles.sue.color @ 5 -> "" +headers: map[KV-Operation:[DEL]] +sue.color @ 5 -> "" (op: KeyValueDeleteOp) +sue.color @ 6 -> "purple" (op: KeyValuePutOp) +sue.food @ 7 -> "pizza" (op: KeyValuePutOp) diff --git a/examples/messaging/concurrent/rust/output.cast b/examples/messaging/concurrent/rust/output.cast index fd0bcf6d..ece55b88 100644 --- a/examples/messaging/concurrent/rust/output.cast +++ b/examples/messaging/concurrent/rust/output.cast @@ -1,53 +1,50 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648075, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/concurrent/rust"} -[0.46255, "o", "Network 98a436c8_default Creating\r\n"] -[0.486128, "o", "Network 98a436c8_default Created\r\n"] -[0.486258, "o", "Container 98a436c8-nats-1 Creating\r\n"] -[0.509467, "o", "Container 98a436c8-nats-1 Created\r\n"] -[0.510105, "o", "Container 98a436c8-nats-1 Starting\r\n"] -[0.78346, "o", "Container 98a436c8-nats-1 Started\r\n"] -[1.054118, "o", "received message: \"hello 24\"\r\n"] -[1.104421, "o", "received message: \"hello 17\"\r\n"] -[1.116745, "o", "received message: \"hello 11\"\r\n"] -[1.120713, "o", "received message: \"hello 19\"\r\nreceived message: \"hello 23\"\r\n"] -[1.167502, "o", "received message: \"hello 12\"\r\n"] -[1.184941, "o", "received message: \"hello 30\"\r\n"] -[1.192092, "o", "received message: \"hello 2\"\r\n"] -[1.193122, "o", "received message: \"hello 28\"\r\n"] -[1.201448, "o", "received message: \"hello 25\"\r\n"] -[1.232, "o", "received message: \"hello 15\"\r\n"] -[1.249287, "o", "received message: \"hello 7\"\r\n"] -[1.254471, "o", "received message: \"hello 0\"\r\n"] -[1.266711, "o", "received message: \"hello 1\"\r\n"] -[1.289007, "o", "received message: \"hello 32\"\r\n"] -[1.291051, "o", "received message: \"hello 13\"\r\n"] -[1.29822, "o", "received message: \"hello 29\"\r\n"] -[1.302348, "o", "received message: \"hello 26\"\r\n"] -[1.312704, "o", "received message: \"hello 14\"\r\n"] -[1.338053, "o", "received message: \"hello 41\"\r\nreceived message: \"hello 37\"\r\n"] -[1.34405, "o", "received message: \"hello 5\"\r\n"] -[1.363925, "o", "received message: \"hello 35\"\r\n"] -[1.421371, "o", "received message: \"hello 31\"\r\n"] -[1.42757, "o", "received message: \"hello 16\"\r\n"] -[1.42865, "o", "received message: \"hello 10\"\r\n"] -[1.442654, "o", "received message: \"hello 9\"\r\n"] -[1.461826, "o", "received message: \"hello 20\"\r\nreceived message: \"hello 22\"\r\nreceived message: \"hello 33\"\r\n"] -[1.47791, "o", "received message: \"hello 3\"\r\n"] -[1.49017, "o", "received message: \"hello 39\"\r\n"] -[1.494316, "o", "received message: \"hello 27\"\r\n"] -[1.495398, "o", "received message: \"hello 4\"\r\n"] -[1.496494, "o", "received message: \"hello 47\"\r\n"] -[1.511795, "o", "received message: \"hello 6\"\r\n"] -[1.517872, "o", "received message: \"hello 34\"\r\n"] -[1.524071, "o", "received message: \"hello 21\"\r\n"] -[1.530286, "o", "received message: \"hello 18\"\r\n"] -[1.532423, "o", "received message: \"hello 8\"\r\n"] -[1.539616, "o", "received message: \"hello 40\"\r\n"] -[1.554075, "o", "received message: \"hello 46\"\r\n"] -[1.56211, "o", "received message: \"hello 44\"\r\n"] -[1.629714, "o", "received message: \"hello 38\"\r\n"] -[1.647115, "o", "received message: \"hello 48\"\r\n"] -[1.669057, "o", "received message: \"hello 49\"\r\n"] -[1.705625, "o", "received message: \"hello 36\"\r\n"] -[1.718497, "o", "received message: \"hello 45\"\r\n"] -[1.732563, "o", "received message: \"hello 42\"\r\n"] -[1.789155, "o", "received message: \"hello 43\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651747, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/concurrent/rust"} +[1.097231, "o", "received message: \"hello 17\"\r\n"] +[1.123764, "o", "received message: \"hello 16\"\r\n"] +[1.149156, "o", "received message: \"hello 22\"\r\n"] +[1.186799, "o", "received message: \"hello 10\"\r\n"] +[1.199087, "o", "received message: \"hello 12\"\r\n"] +[1.212269, "o", "received message: \"hello 18\"\r\n"] +[1.221461, "o", "received message: \"hello 15\"\r\n"] +[1.226501, "o", "received message: \"hello 25\"\r\n"] +[1.24316, "o", "received message: \"hello 20\"\r\n"] +[1.245234, "o", "received message: \"hello 5\"\r\n"] +[1.251304, "o", "received message: \"hello 0\"\r\n"] +[1.263546, "o", "received message: \"hello 23\"\r\n"] +[1.276111, "o", "received message: \"hello 31\"\r\n"] +[1.287349, "o", "received message: \"hello 8\"\r\n"] +[1.293282, "o", "received message: \"hello 14\"\r\n"] +[1.300789, "o", "received message: \"hello 30\"\r\n"] +[1.316931, "o", "received message: \"hello 21\"\r\n"] +[1.321197, "o", "received message: \"hello 27\"\r\n"] +[1.331843, "o", "received message: \"hello 42\"\r\n"] +[1.344146, "o", "received message: \"hello 19\"\r\n"] +[1.368577, "o", "received message: \"hello 9\"\r\n"] +[1.387103, "o", "received message: \"hello 6\"\r\n"] +[1.397098, "o", "received message: \"hello 13\"\r\n"] +[1.424652, "o", "received message: \"hello 4\"\r\n"] +[1.431517, "o", "received message: \"hello 44\"\r\n"] +[1.464871, "o", "received message: \"hello 43\"\r\n"] +[1.472244, "o", "received message: \"hello 2\"\r\n"] +[1.483655, "o", "received message: \"hello 41\"\r\n"] +[1.497622, "o", "received message: \"hello 24\"\r\n"] +[1.499724, "o", "received message: \"hello 7\"\r\n"] +[1.52413, "o", "received message: \"hello 33\"\r\n"] +[1.542477, "o", "received message: \"hello 1\"\r\n"] +[1.54456, "o", "received message: \"hello 3\"\r\n"] +[1.546787, "o", "received message: \"hello 26\"\r\n"] +[1.554878, "o", "received message: \"hello 11\"\r\n"] +[1.569981, "o", "received message: \"hello 28\"\r\nreceived message: \"hello 34\"\r\n"] +[1.586413, "o", "received message: \"hello 46\"\r\n"] +[1.604658, "o", "received message: \"hello 36\"\r\n"] +[1.613012, "o", "received message: \"hello 38\"\r\n"] +[1.659392, "o", "received message: \"hello 29\"\r\n"] +[1.681797, "o", "received message: \"hello 35\"\r\n"] +[1.691831, "o", "received message: \"hello 32\"\r\n"] +[1.720243, "o", "received message: \"hello 39\"\r\n"] +[1.732224, "o", "received message: \"hello 40\"\r\n"] +[1.734334, "o", "received message: \"hello 49\"\r\n"] +[1.747565, "o", "received message: \"hello 37\"\r\n"] +[1.770759, "o", "received message: \"hello 48\"\r\n"] +[1.808217, "o", "received message: \"hello 45\"\r\n"] +[1.824375, "o", "received message: \"hello 47\"\r\n"] diff --git a/examples/messaging/concurrent/rust/output.txt b/examples/messaging/concurrent/rust/output.txt index 7a47fa00..391f3305 100644 --- a/examples/messaging/concurrent/rust/output.txt +++ b/examples/messaging/concurrent/rust/output.txt @@ -1,56 +1,50 @@ -Network 98a436c8_default Creating -Network 98a436c8_default Created -Container 98a436c8-nats-1 Creating -Container 98a436c8-nats-1 Created -Container 98a436c8-nats-1 Starting -Container 98a436c8-nats-1 Started -received message: "hello 24" received message: "hello 17" -received message: "hello 11" -received message: "hello 19" -received message: "hello 23" +received message: "hello 16" +received message: "hello 22" +received message: "hello 10" received message: "hello 12" -received message: "hello 30" -received message: "hello 2" -received message: "hello 28" -received message: "hello 25" +received message: "hello 18" received message: "hello 15" -received message: "hello 7" -received message: "hello 0" -received message: "hello 1" -received message: "hello 32" -received message: "hello 13" -received message: "hello 29" -received message: "hello 26" -received message: "hello 14" -received message: "hello 41" -received message: "hello 37" +received message: "hello 25" +received message: "hello 20" received message: "hello 5" -received message: "hello 35" +received message: "hello 0" +received message: "hello 23" received message: "hello 31" -received message: "hello 16" -received message: "hello 10" +received message: "hello 8" +received message: "hello 14" +received message: "hello 30" +received message: "hello 21" +received message: "hello 27" +received message: "hello 42" +received message: "hello 19" received message: "hello 9" -received message: "hello 20" -received message: "hello 22" +received message: "hello 6" +received message: "hello 13" +received message: "hello 4" +received message: "hello 44" +received message: "hello 43" +received message: "hello 2" +received message: "hello 41" +received message: "hello 24" +received message: "hello 7" received message: "hello 33" +received message: "hello 1" received message: "hello 3" -received message: "hello 39" -received message: "hello 27" -received message: "hello 4" -received message: "hello 47" -received message: "hello 6" +received message: "hello 26" +received message: "hello 11" +received message: "hello 28" received message: "hello 34" -received message: "hello 21" -received message: "hello 18" -received message: "hello 8" -received message: "hello 40" received message: "hello 46" -received message: "hello 44" +received message: "hello 36" received message: "hello 38" -received message: "hello 48" +received message: "hello 29" +received message: "hello 35" +received message: "hello 32" +received message: "hello 39" +received message: "hello 40" received message: "hello 49" -received message: "hello 36" +received message: "hello 37" +received message: "hello 48" received message: "hello 45" -received message: "hello 42" -received message: "hello 43" +received message: "hello 47" diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.cast b/examples/messaging/iterating-multiple-subscriptions/rust/output.cast index b17ffac0..dcb8eff7 100644 --- a/examples/messaging/iterating-multiple-subscriptions/rust/output.cast +++ b/examples/messaging/iterating-multiple-subscriptions/rust/output.cast @@ -1,66 +1,61 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648175, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/iterating-multiple-subscriptions/rust"} -[0.494015, "o", "Network f105c02d_default Creating\r\n"] -[0.517548, "o", "Network f105c02d_default Created\r\nContainer f105c02d-nats-1 Creating\r\n"] -[0.555753, "o", "Container f105c02d-nats-1 Created\r\n"] -[0.55634, "o", "Container f105c02d-nats-1 Starting\r\n"] -[0.778065, "o", "Container f105c02d-nats-1 Started\r\n"] -[1.06021, "o", "received message on subject cars.0 with paylaod car number 0\r\nreceived message on subject ships.0 with paylaod ship number 0\r\nreceived message on subject cars.1 with paylaod car number 1\r\nreceived message on subject ships.1 with paylaod ship number 1\r\nreceived message on subject cars.2 with paylaod car number 2\r\nreceived message on subject cars.3 with paylaod car number 3\r\nreceived message on subject ships.2 with paylaod ship number 2\r\nreceived message on subject cars.4 with paylaod car number 4\r\nreceived message on subject ships.3 with paylaod ship number 3\r\nreceived message on subject cars.5 with paylaod car number 5\r\nreceived message on subject cars.6 with paylaod car number 6\r\nreceived message on subject ships.4 with paylaod ship number 4\r\nreceived message on subject cars.7 with paylaod car number 7\r\nreceived message on subject planes.0 with paylaod plane number 0\r\nreceived message on subject cars.8 with paylaod car number 8\r\n"] -[1.060327, "o", "received message on subject ships.5 with paylaod ship number 5\r\nreceived message on subject cars.9 with paylaod car number 9\r\n"] -[1.060531, "o", "received message on subject ships.6 with paylaod ship number 6\r\nreceived message on subject planes.1 with paylaod plane number 1\r\nreceived message on subject cars.10 with paylaod car number 10\r\nreceived message on subject ships.7 with paylaod ship number 7\r\nreceived message on subject planes.2 with paylaod plane number 2\r\nreceived message on subject cars.11 with paylaod car number 11\r\nreceived message on subject ships.8 with paylaod ship number 8\r\nreceived message on subject cars.12 with paylaod car number 12\r\nreceived message on subject ships.9 with paylaod ship number 9\r\nreceived message on subject planes.3 with paylaod plane number 3\r\n"] -[1.060612, "o", "received message on subject planes.4 with paylaod plane number 4\r\nreceived message on subject cars.13 with paylaod car number 13\r\nreceived message on subject ships.10 with paylaod ship number 10\r\nreceived message on subject planes.5 with paylaod plane number 5\r\n"] -[1.060674, "o", "received message on subject cars.14 with paylaod car number 14\r\nreceived message on subject ships.11 with paylaod ship number 11\r\nreceived message on subject planes.6 with paylaod plane number 6\r\nreceived message on subject cars.15 with paylaod car number 15\r\nreceived message on subject ships.12 with paylaod ship number 12\r\nreceived message on subject planes.7 with paylaod plane number 7\r\n"] -[1.060761, "o", "received message on subject cars.16 with paylaod car number 16\r\nreceived message on subject ships.13 with paylaod ship number 13\r\nreceived message on subject planes.8 with paylaod plane number 8\r\nreceived message on subject cars.17 with paylaod car number 17\r\nreceived message on subject ships.14 with paylaod ship number 14\r\nreceived message on subject planes.9 with paylaod plane number 9\r\nreceived message on subject cars.18 with paylaod car number 18\r\nreceived message on subject ships.15 with paylaod ship number 15\r\nreceived message on subject planes.10 with paylaod plane number 10\r\nreceived message on subject cars.19 with paylaod car number 19\r\nreceived message on subject ships.16 with paylaod ship number 16\r\nreceived message on subject planes.11 with paylaod plane number 11\r\nreceived message on subject cars.20 with paylaod car number 20\r\nreceived message on subject ships.17 with paylaod ship number 17\r\n"] -[1.060905, "o", "received message on subject planes.12 with paylaod plane number 12\r\nreceived message on subject cars.21 with paylaod car number 21\r\nreceived message on subject ships.18 with paylaod ship number 18\r\nreceived message on subject planes.13 with paylaod plane number 13\r\nreceived message on subject cars.22 with paylaod car number 22\r\nreceived message on subject ships.19 with paylaod ship number 19\r\nreceived message on subject planes.14 with paylaod plane number 14\r\nreceived message on subject cars.23 with paylaod car number 23\r\nreceived message on subject ships.20 with paylaod ship number 20\r\nreceived message on subject planes.15 with paylaod plane number 15\r\nreceived message on subject cars.24 with paylaod car number 24\r\nreceived message on subject ships.21 with paylaod ship number 21\r\nreceived message on subject planes.16 with paylaod plane number 16\r\nreceived message on subject cars.25 with paylaod car number 25\r\nreceived message on subject ships.22 with paylaod ship number 22\r\nreceived message on subject cars.2"] -[1.06094, "o", "6 with paylaod car number 26\r\nreceived message on subject ships.23 with paylaod ship number 23\r\nreceived message on subject planes.17 with paylaod plane number 17\r\nreceived message on subject ships.24 with paylaod ship number 24\r\nreceived message on subject ships.25 with paylaod ship number 25\r\nreceived message on subject cars.27 with paylaod car number 27\r\nreceived message on subject planes.18 with paylaod plane number 18\r\nreceived message on subject ships.26 with paylaod ship number 26\r\n"] -[1.061084, "o", "received message on subject cars.28 with paylaod car number 28\r\nreceived message on subject planes.19 with paylaod plane number 19\r\nreceived message on subject cars.29 with paylaod car number 29\r\nreceived message on subject ships.27 with paylaod ship number 27\r\nreceived message on subject planes.20 with paylaod plane number 20\r\nreceived message on subject ships.28 with paylaod ship number 28\r\nreceived message on subject planes.21 with paylaod plane number 21\r\nreceived message on subject planes.22 with paylaod plane number 22\r\nreceived message on subject ships.29 with paylaod ship number 29\r\nreceived message on subject cars.30 with paylaod car number 30\r\nreceived message on subject planes.23 with paylaod plane number 23\r\nreceived message on subject ships.30 with paylaod ship number 30\r\nreceived message on subject planes.24 with paylaod plane number 24\r\n"] -[1.0612, "o", "received message on subject cars.31 with paylaod car number 31\r\nreceived message on subject ships.31 with paylaod ship number 31\r\n"] -[1.061289, "o", "received message on subject cars.32 with paylaod car number 32\r\nreceived message on subject planes.25 with paylaod plane number 25\r\nreceived message on subject ships.32 with paylaod ship number 32\r\n"] -[1.06137, "o", "received message on subject cars.33 with paylaod car number 33\r\nreceived message on subject planes.26 with paylaod plane number 26\r\nreceived message on subject ships.33 with paylaod ship number 33\r\nreceived message on subject cars.34 with paylaod car number 34\r\nreceived message on subject planes.27 with paylaod plane number 27\r\nreceived message on subject ships.34 with paylaod ship number 34\r\nreceived message on subject cars.35 with paylaod car number 35\r\nreceived message on subject planes.28 with paylaod plane number 28\r\n"] -[1.061421, "o", "received message on subject cars.36 with paylaod car number 36\r\nreceived message on subject ships.35 with paylaod ship number 35\r\nreceived message on subject planes.29 with paylaod plane number 29\r\nreceived message on subject cars.37 with paylaod car number 37\r\n"] -[1.061516, "o", "received message on subject ships.36 with paylaod ship number 36\r\nreceived message on subject planes.30 with paylaod plane number 30\r\nreceived message on subject ships.37 with paylaod ship number 37\r\nreceived message on subject cars.38 with paylaod car number 38\r\nreceived message on subject planes.31 with paylaod plane number 31\r\n"] -[1.061582, "o", "received message on subject ships.38 with paylaod ship number 38\r\nreceived message on subject cars.39 with paylaod car number 39\r\nreceived message on subject planes.32 with paylaod plane number 32\r\n"] -[1.061755, "o", "received message on subject ships.39 with paylaod ship number 39\r\nreceived message on subject cars.40 with paylaod car number 40\r\nreceived message on subject planes.33 with paylaod plane number 33\r\nreceived message on subject cars.41 with paylaod car number 41\r\nreceived message on subject ships.40 with paylaod ship number 40\r\nreceived message on subject planes.34 with paylaod plane number 34\r\nreceived message on subject cars.42 with paylaod car number 42\r\nreceived message on subject ships.41 with paylaod ship number 41\r\nreceived message on subject planes.35 with paylaod plane number 35\r\nreceived message on subject cars.43 with paylaod car number 43\r\nreceived message on subject ships.42 with paylaod ship number 42\r\n"] -[1.061812, "o", "received message on subject planes.36 with paylaod plane number 36\r\nreceived message on subject cars.44 with paylaod car number 44\r\nreceived message on subject ships.43 with paylaod ship number 43\r\nreceived message on subject planes.37 with paylaod plane number 37\r\nreceived message on subject cars.45 with paylaod car number 45\r\n"] -[1.061875, "o", "received message on subject ships.44 with paylaod ship number 44\r\nreceived message on subject planes.38 with paylaod plane number 38\r\n"] -[1.06189, "o", "received message on subject cars.46 with paylaod car number 46\r\nreceived message on subject ships.45 with paylaod ship number 45\r\n"] -[1.062155, "o", "received message on subject ships.46 with paylaod ship number 46\r\nreceived message on subject planes.39 with paylaod plane number 39\r\nreceived message on subject cars.47 with paylaod car number 47\r\nreceived message on subject ships.47 with paylaod ship number 47\r\nreceived message on subject planes.40 with paylaod plane number 40\r\nreceived message on subject cars.48 with paylaod car number 48\r\nreceived message on subject ships.48 with paylaod ship number 48\r\nreceived message on subject planes.41 with paylaod plane number 41\r\nreceived message on subject cars.49 with paylaod car number 49\r\nreceived message on subject ships.49 with paylaod ship number 49\r\n"] -[1.062221, "o", "received message on subject planes.42 with paylaod plane number 42\r\nreceived message on subject cars.50 with paylaod car number 50\r\nreceived message on subject ships.50 with paylaod ship number 50\r\nreceived message on subject planes.43 with paylaod plane number 43\r\nreceived message on subject cars.51 with paylaod car number 51\r\n"] -[1.062266, "o", "received message on subject ships.51 with paylaod ship number 51\r\nreceived message on subject planes.44 with paylaod plane number 44\r\nreceived message on subject cars.52 with paylaod car number 52\r\nreceived message on subject ships.52 with paylaod ship number 52\r\nreceived message on subject planes.45 with paylaod plane number 45\r\nreceived message on subject cars.53 with paylaod car number 53\r\nreceived message on subject ships.53 with paylaod ship number 53\r\nreceived message on subject planes.46 with paylaod plane number 46\r\nreceived message on subject cars.54 with paylaod car number 54\r\nreceived message on subject ships.54 with paylaod ship number 54\r\nreceived message on subject planes.47 with paylaod plane number 47\r\nreceived message on subject cars.55 with paylaod car number 55\r\nreceived message on subject ships.55 with paylaod ship number 55\r\nreceived message on subject ships.56 with paylaod ship number 56\r\nreceived message on subject planes.48 with paylaod plane number 48\r\n"] -[1.161968, "o", "received message on subject cars.56 with paylaod car number 56\r\nreceived message on subject ships.57 with paylaod ship number 57\r\nreceived message on subject planes.49 with paylaod plane number 49\r\nreceived message on subject cars.57 with paylaod car number 57\r\nreceived message on subject ships.58 with paylaod ship number 58\r\nreceived message on subject planes.50 with paylaod plane number 50\r\nreceived message on subject cars.58 with paylaod car number 58\r\nreceived message on subject ships.59 with paylaod ship number 59\r\nreceived message on subject planes.51 with paylaod plane number 51\r\nreceived message on subject cars.59 with paylaod car number 59\r\nreceived message on subject ships.60 with paylaod ship number 60\r\nreceived message on subject planes.52 with paylaod plane number 52\r\nreceived message on subject cars.60 with paylaod car number 60\r\nreceived message on subject ships.61 with paylaod ship number 61\r\nreceived message on subject planes.53 with paylaod plane number 53\r\n"] -[1.162138, "o", "received message on subject cars.61 with paylaod car number 61\r\nreceived message on subject ships.62 with paylaod ship number 62\r\nreceived message on subject planes.54 with paylaod plane number 54\r\nreceived message on subject cars.62 with paylaod car number 62\r\nreceived message on subject ships.63 with paylaod ship number 63\r\nreceived message on subject planes.55 with paylaod plane number 55\r\n"] -[1.162214, "o", "received message on subject cars.63 with paylaod car number 63\r\nreceived message on subject ships.64 with paylaod ship number 64\r\n"] -[1.162307, "o", "received message on subject planes.56 with paylaod plane number 56\r\nreceived message on subject cars.64 with paylaod car number 64\r\n"] -[1.162393, "o", "received message on subject ships.65 with paylaod ship number 65\r\nreceived message on subject planes.57 with paylaod plane number 57\r\n"] -[1.162438, "o", "received message on subject cars.65 with paylaod car number 65\r\nreceived message on subject ships.66 with paylaod ship number 66\r\n"] -[1.162555, "o", "received message on subject planes.58 with paylaod plane number 58\r\nreceived message on subject cars.66 with paylaod car number 66\r\n"] -[1.162647, "o", "received message on subject ships.67 with paylaod ship number 67\r\nreceived message on subject planes.59 with paylaod plane number 59\r\nreceived message on subject cars.67 with paylaod car number 67\r\nreceived message on subject ships.68 with paylaod ship number 68\r\n"] -[1.162719, "o", "received message on subject planes.60 with paylaod plane number 60\r\nreceived message on subject cars.68 with paylaod car number 68\r\n"] -[1.162802, "o", "received message on subject ships.69 with paylaod ship number 69\r\nreceived message on subject planes.61 with paylaod plane number 61\r\n"] -[1.162875, "o", "received message on subject cars.69 with paylaod car number 69\r\nreceived message on subject ships.70 with paylaod ship number 70\r\n"] -[1.163022, "o", "received message on subject planes.62 with paylaod plane number 62\r\nreceived message on subject cars.70 with paylaod car number 70\r\nreceived message on subject ships.71 with paylaod ship number 71\r\nreceived message on subject planes.63 with paylaod plane number 63\r\n"] -[1.163166, "o", "received message on subject cars.71 with paylaod car number 71\r\nreceived message on subject ships.72 with paylaod ship number 72\r\n"] -[1.163265, "o", "received message on subject planes.64 with paylaod plane number 64\r\nreceived message on subject cars.72 with paylaod car number 72\r\nreceived message on subject ships.73 with paylaod ship number 73\r\nreceived message on subject planes.65 with paylaod plane number 65\r\n"] -[1.163299, "o", "received message on subject cars.73 with paylaod car number 73\r\nreceived message on subject ships.74 with paylaod ship number 74\r\n"] -[1.163332, "o", "received message on subject planes.66 with paylaod plane number 66\r\nreceived message on subject cars.74 with paylaod car number 74\r\n"] -[1.16344, "o", "received message on subject ships.75 with paylaod ship number 75\r\n"] -[1.163694, "o", "received message on subject planes.67 with paylaod plane number 67\r\nreceived message on subject cars.75 with paylaod car number 75\r\nreceived message on subject ships.76 with paylaod ship number 76\r\nreceived message on subject planes.68 with paylaod plane number 68\r\nreceived message on subject cars.76 with paylaod car number 76\r\nreceived message on subject ships.77 with paylaod ship number 77\r\nreceived message on subject planes.69 with paylaod plane number 69\r\nreceived message on subject cars.77 with paylaod car number 77\r\nreceived message on subject ships.78 with paylaod ship number 78\r\nreceived message on subject planes.70 with paylaod plane number 70\r\nreceived message on subject cars.78 with paylaod car number 78\r\nreceived message on subject ships.79 with paylaod ship number 79\r\nreceived message on subject planes.71 with paylaod plane number 71\r\n"] -[1.163795, "o", "received message on subject cars.79 with paylaod car number 79\r\n"] -[1.164024, "o", "received message on subject ships.80 with paylaod ship number 80\r\nreceived message on subject planes.72 with paylaod plane number 72\r\nreceived message on subject ships.81 with paylaod ship number 81\r\nreceived message on subject planes.73 with paylaod plane number 73\r\nreceived message on subject cars.80 with paylaod car number 80\r\nreceived message on subject ships.82 with paylaod ship number 82\r\nreceived message on subject cars.81 with paylaod car number 81\r\nreceived message on subject planes.74 with paylaod plane number 74\r\nreceived message on subject ships.83 with paylaod ship number 83\r\n"] -[1.164098, "o", "received message on subject cars.82 with paylaod car number 82\r\nreceived message on subject planes.75 with paylaod plane number 75\r\n"] -[1.164184, "o", "received message on subject ships.84 with paylaod ship number 84\r\nreceived message on subject cars.83 with paylaod car number 83\r\n"] -[1.164262, "o", "received message on subject planes.76 with paylaod plane number 76\r\nreceived message on subject ships.85 with paylaod ship number 85\r\n"] -[1.164292, "o", "received message on subject cars.84 with paylaod car number 84\r\nreceived message on subject planes.77 with paylaod plane number 77\r\n"] -[1.164429, "o", "received message on subject ships.86 with paylaod ship number 86\r\n"] -[1.164469, "o", "received message on subject cars.85 with paylaod car number 85\r\nreceived message on subject ships.87 with paylaod ship number 87\r\nreceived message on subject planes.78 with paylaod plane number 78\r\n"] -[1.164625, "o", "received message on subject cars.86 with paylaod car number 86\r\nreceived message on subject planes.79 with paylaod plane number 79\r\nreceived message on subject ships.88 with paylaod ship number 88\r\n"] -[1.164686, "o", "received message on subject cars.87 with paylaod car number 87\r\nreceived message on subject planes.80 with paylaod plane number 80\r\nreceived message on subject ships.89 with paylaod ship number 89\r\nreceived message on subject cars.88 with paylaod car number 88\r\nreceived message on subject planes.81 with paylaod plane number 81\r\n"] -[1.16482, "o", "received message on subject ships.90 with paylaod ship number 90\r\nreceived message on subject cars.89 with paylaod car number 89\r\nreceived message on subject planes.82 with paylaod plane number 82\r\n"] -[1.165319, "o", "received message on subject ships.91 with paylaod ship number 91\r\nreceived message on subject cars.90 with paylaod car number 90\r\nreceived message on subject planes.83 with paylaod plane number 83\r\nreceived message on subject ships.92 with paylaod ship number 92\r\n"] -[1.165363, "o", "received message on subject cars.91 with paylaod car number 91\r\nreceived message on subject planes.84 with paylaod plane number 84\r\nreceived message on subject ships.93 with paylaod ship number 93\r\n"] -[1.165405, "o", "received message on subject cars.92 with paylaod car number 92\r\nreceived message on subject planes.85 with paylaod plane number 85\r\nreceived message on subject ships.94 with paylaod ship number 94\r\nreceived message on subject cars.93 with paylaod car number 93\r\nreceived message on subject planes.86 with paylaod plane number 86\r\n"] -[1.16544, "o", "received message on subject ships.95 with paylaod ship number 95\r\nreceived message on subject cars.94 with paylaod car number 94\r\nreceived message on subject planes.87 with paylaod plane number 87\r\n"] -[1.165449, "o", "received message on subject ships.96 with paylaod ship number 96\r\n"] -[1.165555, "o", "received message on subject cars.95 with paylaod car number 95\r\nreceived message on subject planes.88 with paylaod plane number 88\r\n"] -[1.165648, "o", "received message on subject ships.97 with paylaod ship number 97\r\n"] -[1.165758, "o", "received message on subject cars.96 with paylaod car number 96\r\nreceived message on subject planes.89 with paylaod plane number 89\r\nreceived message on subject ships.98 with paylaod ship number 98\r\nreceived message on subject cars.97 with paylaod car number 97\r\nreceived message on subject planes.90 with paylaod plane number 90\r\nreceived message on subject ships.99 with paylaod ship number 99\r\nreceived message on subject cars.98 with paylaod car number 98\r\nreceived message on subject planes.91 with paylaod plane number 91\r\nreceived message on subject cars.99 with paylaod car number 99\r\nreceived message on subject planes.92 with paylaod plane number 92\r\n"] -[1.165798, "o", "received message on subject planes.93 with paylaod plane number 93\r\nreceived message on subject planes.94 with paylaod plane number 94\r\nreceived message on subject planes.95 with paylaod plane number 95\r\nreceived message on subject planes.96 with paylaod plane number 96\r\nreceived message on subject planes.97 with paylaod plane number 97\r\nreceived message on subject planes.98 with paylaod plane number 98\r\nreceived message on subject planes.99 with paylaod plane number 99\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651847, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/iterating-multiple-subscriptions/rust"} +[1.22474, "o", "received message on subject cars.0 with paylaod car number 0\r\nreceived message on subject ships.0 with paylaod ship number 0\r\nreceived message on subject cars.1 with paylaod car number 1\r\nreceived message on subject cars.2 with paylaod car number 2\r\nreceived message on subject cars.3 with paylaod car number 3\r\nreceived message on subject ships.1 with paylaod ship number 1\r\nreceived message on subject cars.4 with paylaod car number 4\r\nreceived message on subject ships.2 with paylaod ship number 2\r\nreceived message on subject cars.5 with paylaod car number 5\r\nreceived message on subject ships.3 with paylaod ship number 3\r\nreceived message on subject cars.6 with paylaod car number 6\r\nreceived message on subject ships.4 with paylaod ship number 4\r\nreceived message on subject cars.7 with paylaod car number 7\r\nreceived message on subject ships.5 with paylaod ship number 5\r\nreceived message on subject cars.8 with paylaod car number 8\r\nreceived message on subject ships.6 with paylaod ship number 6\r\n"] +[1.225011, "o", "received message on subject cars.9 with paylaod car number 9\r\nreceived message on subject ships.7 with paylaod ship number 7\r\nreceived message on subject cars.10 with paylaod car number 10\r\nreceived message on subject cars.11 with paylaod car number 11\r\nreceived message on subject ships.8 with paylaod ship number 8\r\nreceived message on subject cars.12 with paylaod car number 12\r\nreceived message on subject ships.9 with paylaod ship number 9\r\nreceived message on subject cars.13 with paylaod car number 13\r\nreceived message on subject cars.14 with paylaod car number 14\r\n"] +[1.225098, "o", "received message on subject ships.10 with paylaod ship number 10\r\n"] +[1.225164, "o", "received message on subject ships.11 with paylaod ship number 11\r\nreceived message on subject cars.15 with paylaod car number 15\r\n"] +[1.225222, "o", "received message on subject cars.16 with paylaod car number 16\r\nreceived message on subject ships.12 with paylaod ship number 12\r\n"] +[1.225278, "o", "received message on subject cars.17 with paylaod car number 17\r\nreceived message on subject planes.0 with paylaod plane number 0\r\n"] +[1.225337, "o", "received message on subject cars.18 with paylaod car number 18\r\nreceived message on subject cars.19 with paylaod car number 19\r\n"] +[1.225392, "o", "received message on subject cars.20 with paylaod car number 20\r\nreceived message on subject ships.13 with paylaod ship number 13\r\nreceived message on subject cars.21 with paylaod car number 21\r\nreceived message on subject ships.14 with paylaod ship number 14\r\nreceived message on subject cars.22 with paylaod car number 22\r\n"] +[1.225438, "o", "received message on subject ships.15 with paylaod ship number 15\r\nreceived message on subject cars.23 with paylaod car number 23\r\n"] +[1.225504, "o", "received message on subject ships.16 with paylaod ship number 16\r\nreceived message on subject planes.1 with paylaod plane number 1\r\nreceived message on subject cars.24 with paylaod car number 24\r\nreceived message on subject ships.17 with paylaod ship number 17\r\nreceived message on subject cars.25 with paylaod car number 25\r\nreceived message on subject planes.2 with paylaod plane number 2\r\nreceived message on subject ships.18 with paylaod ship number 18\r\n"] +[1.225551, "o", "received message on subject cars.26 with paylaod car number 26\r\nreceived message on subject planes.3 with paylaod plane number 3\r\n"] +[1.225565, "o", "received message on subject ships.19 with paylaod ship number 19\r\n"] +[1.225639, "o", "received message on subject cars.27 with paylaod car number 27\r\nreceived message on subject planes.4 with paylaod plane number 4\r\nreceived message on subject ships.20 with paylaod ship number 20\r\nreceived message on subject cars.28 with paylaod car number 28\r\n"] +[1.225704, "o", "received message on subject planes.5 with paylaod plane number 5\r\nreceived message on subject ships.21 with paylaod ship number 21\r\n"] +[1.225761, "o", "received message on subject cars.29 with paylaod car number 29\r\nreceived message on subject planes.6 with paylaod plane number 6\r\nreceived message on subject ships.22 with paylaod ship number 22\r\nreceived message on subject planes.7 with paylaod plane number 7\r\nreceived message on subject ships.23 with paylaod ship number 23\r\nreceived message on subject cars.30 with paylaod car number 30\r\nreceived message on subject planes.8 with paylaod plane number 8\r\nreceived message on subject ships.24 with paylaod ship number 24\r\n"] +[1.225809, "o", "received message on subject cars.31 with paylaod car number 31\r\nreceived message on subject planes.9 with paylaod plane number 9\r\nreceived message on subject ships.25 with paylaod ship number 25\r\n"] +[1.22588, "o", "received message on subject cars.32 with paylaod car number 32\r\nreceived message on subject planes.10 with paylaod plane number 10\r\nreceived message on subject ships.26 with paylaod ship number 26\r\n"] +[1.225917, "o", "received message on subject cars.33 with paylaod car number 33\r\nreceived message on subject planes.11 with paylaod plane number 11\r\n"] +[1.22601, "o", "received message on subject ships.27 with paylaod ship number 27\r\nreceived message on subject cars.34 with paylaod car number 34\r\nreceived message on subject planes.12 with paylaod plane number 12\r\nreceived message on subject ships.28 with paylaod ship number 28\r\nreceived message on subject cars.35 with paylaod car number 35\r\nreceived message on subject planes.13 with paylaod plane number 13\r\nreceived message on subject ships.29 with paylaod ship number 29\r\nreceived message on subject cars.36 with paylaod car number 36\r\nreceived message on subject planes.14 with paylaod plane number 14\r\nreceived message on subject cars.37 with paylaod car number 37\r\n"] +[1.226051, "o", "received message on subject planes.15 with paylaod plane number 15\r\nreceived message on subject ships.30 with paylaod ship number 30\r\n"] +[1.226134, "o", "received message on subject cars.38 with paylaod car number 38\r\nreceived message on subject planes.16 with paylaod plane number 16\r\nreceived message on subject ships.31 with paylaod ship number 31\r\nreceived message on subject cars.39 with paylaod car number 39\r\nreceived message on subject planes.17 with paylaod plane number 17\r\nreceived message on subject ships.32 with paylaod ship number 32\r\nreceived message on subject cars.40 with paylaod car number 40\r\nreceived message on subject planes.18 with paylaod plane number 18\r\nreceived message on subject ships.33 with paylaod ship number 33\r\n"] +[1.226175, "o", "received message on subject cars.41 with paylaod car number 41\r\nreceived message on subject planes.19 with paylaod plane number 19\r\n"] +[1.226223, "o", "received message on subject ships.34 with paylaod ship number 34\r\nreceived message on subject cars.42 with paylaod car number 42\r\n"] +[1.226268, "o", "received message on subject planes.20 with paylaod plane number 20\r\nreceived message on subject ships.35 with paylaod ship number 35\r\nreceived message on subject cars.43 with paylaod car number 43\r\n"] +[1.226318, "o", "received message on subject planes.21 with paylaod plane number 21\r\nreceived message on subject ships.36 with paylaod ship number 36\r\nreceived message on subject cars.44 with paylaod car number 44\r\nreceived message on subject planes.22 with paylaod plane number 22\r\n"] +[1.226368, "o", "received message on subject ships.37 with paylaod ship number 37\r\nreceived message on subject cars.45 with paylaod car number 45\r\n"] +[1.226409, "o", "received message on subject planes.23 with paylaod plane number 23\r\n"] +[1.226463, "o", "received message on subject cars.46 with paylaod car number 46\r\nreceived message on subject ships.38 with paylaod ship number 38\r\nreceived message on subject planes.24 with paylaod plane number 24\r\nreceived message on subject cars.47 with paylaod car number 47\r\nreceived message on subject ships.39 with paylaod ship number 39\r\nreceived message on subject planes.25 with paylaod plane number 25\r\nreceived message on subject cars.48 with paylaod car number 48\r\n"] +[1.226495, "o", "received message on subject ships.40 with paylaod ship number 40\r\nreceived message on subject planes.26 with paylaod plane number 26\r\n"] +[1.226542, "o", "received message on subject cars.49 with paylaod car number 49\r\nreceived message on subject ships.41 with paylaod ship number 41\r\nreceived message on subject planes.27 with paylaod plane number 27\r\n"] +[1.226579, "o", "received message on subject ships.42 with paylaod ship number 42\r\nreceived message on subject cars.50 with paylaod car number 50\r\n"] +[1.226618, "o", "received message on subject planes.28 with paylaod plane number 28\r\n"] +[1.226637, "o", "received message on subject ships.43 with paylaod ship number 43\r\n"] +[1.226692, "o", "received message on subject cars.51 with paylaod car number 51\r\nreceived message on subject planes.29 with paylaod plane number 29\r\nreceived message on subject ships.44 with paylaod ship number 44\r\nreceived message on subject cars.52 with paylaod car number 52\r\nreceived message on subject ships.45 with paylaod ship number 45\r\nreceived message on subject planes.30 with paylaod plane number 30\r\nreceived message on subject cars.53 with paylaod car number 53\r\n"] +[1.226704, "o", "received message on subject planes.31 with paylaod plane number 31\r\n"] +[1.22671, "o", "received message on subject ships.46 with paylaod ship number 46\r\n"] +[1.226769, "o", "received message on subject cars.54 with paylaod car number 54\r\n"] +[1.226783, "o", "received message on subject planes.32 with paylaod plane number 32\r\nreceived message on subject cars.55 with paylaod car number 55\r\n"] +[1.226844, "o", "received message on subject cars.56 with paylaod car number 56\r\nreceived message on subject cars.57 with paylaod car number 57\r\n"] +[1.226892, "o", "received message on subject ships.47 with paylaod ship number 47\r\nreceived message on subject cars.58 with paylaod car number 58\r\nreceived message on subject planes.33 with paylaod plane number 33\r\nreceived message on subject ships.48 with paylaod ship number 48\r\nreceived message on subject cars.59 with paylaod car number 59\r\nreceived message on subject cars.60 with paylaod car number 60\r\nreceived message on subject planes.34 with paylaod plane number 34\r\nreceived message on subject ships.49 with paylaod ship number 49\r\n"] +[1.226907, "o", "received message on subject cars.61 with paylaod car number 61\r\n"] +[1.226955, "o", "received message on subject planes.35 with paylaod plane number 35\r\nreceived message on subject ships.50 with paylaod ship number 50\r\n"] +[1.226989, "o", "received message on subject cars.62 with paylaod car number 62\r\nreceived message on subject planes.36 with paylaod plane number 36\r\nreceived message on subject ships.51 with paylaod ship number 51\r\nreceived message on subject cars.63 with paylaod car number 63\r\n"] +[1.227019, "o", "received message on subject planes.37 with paylaod plane number 37\r\n"] +[1.326606, "o", "received message on subject ships.52 with paylaod ship number 52\r\nreceived message on subject cars.64 with paylaod car number 64\r\nreceived message on subject planes.38 with paylaod plane number 38\r\nreceived message on subject ships.53 with paylaod ship number 53\r\nreceived message on subject cars.65 with paylaod car number 65\r\nreceived message on subject planes.39 with paylaod plane number 39\r\nreceived message on subject ships.54 with paylaod ship number 54\r\nreceived message on subject cars.66 with paylaod car number 66\r\nreceived message on subject planes.40 with paylaod plane number 40\r\nreceived message on subject ships.55 with paylaod ship number 55\r\nreceived message on subject cars.67 with paylaod car number 67\r\nreceived message on subject planes.41 with paylaod plane number 41\r\nreceived message on subject ships.56 with paylaod ship number 56\r\nreceived message on subject cars.68 with paylaod car number 68\r\nreceived message on subject planes.42 with paylaod plane number 42\r\nreceived message on subject ships."] +[1.326765, "o", "57 with paylaod ship number 57\r\nreceived message on subject cars.69 with paylaod car number 69\r\nreceived message on subject planes.43 with paylaod plane number 43\r\nreceived message on subject ships.58 with paylaod ship number 58\r\nreceived message on subject cars.70 with paylaod car number 70\r\nreceived message on subject planes.44 with paylaod plane number 44\r\nreceived message on subject ships.59 with paylaod ship number 59\r\nreceived message on subject cars.71 with paylaod car number 71\r\nreceived message on subject planes.45 with paylaod plane number 45\r\nreceived message on subject ships.60 with paylaod ship number 60\r\nreceived message on subject cars.72 with paylaod car number 72\r\nreceived message on subject planes.46 with paylaod plane number 46\r\nreceived message on subject ships.61 with paylaod ship number 61\r\n"] +[1.326791, "o", "received message on subject cars.73 with paylaod car number 73\r\nreceived message on subject planes.47 with paylaod plane number 47\r\nreceived message on subject ships.62 with paylaod ship number 62\r\nreceived message on subject cars.74 with paylaod car number 74\r\nreceived message on subject planes.48 with paylaod plane number 48\r\nreceived message on subject ships.63 with paylaod ship number 63\r\nreceived message on subject cars.75 with paylaod car number 75\r\nreceived message on subject planes.49 with paylaod plane number 49\r\nreceived message on subject ships.64 with paylaod ship number 64\r\nreceived message on subject cars.76 with paylaod car number 76\r\nreceived message on subject planes.50 with paylaod plane number 50\r\n"] +[1.327067, "o", "received message on subject ships.65 with paylaod ship number 65\r\nreceived message on subject cars.77 with paylaod car number 77\r\nreceived message on subject planes.51 with paylaod plane number 51\r\nreceived message on subject ships.66 with paylaod ship number 66\r\nreceived message on subject cars.78 with paylaod car number 78\r\n"] +[1.327171, "o", "received message on subject planes.52 with paylaod plane number 52\r\nreceived message on subject ships.67 with paylaod ship number 67\r\nreceived message on subject cars.79 with paylaod car number 79\r\nreceived message on subject planes.53 with paylaod plane number 53\r\nreceived message on subject ships.68 with paylaod ship number 68\r\nreceived message on subject cars.80 with paylaod car number 80\r\nreceived message on subject planes.54 with paylaod plane number 54\r\nreceived message on subject ships.69 with paylaod ship number 69\r\nreceived message on subject cars.81 with paylaod car number 81\r\nreceived message on subject planes.55 with paylaod plane number 55"] +[1.327249, "o", "\r\nreceived message on subject ships.70 with paylaod ship number 70\r\nreceived message on subject cars.82 with paylaod car number 82\r\nreceived message on subject planes.56 with paylaod plane number 56\r\nreceived message on subject ships.71 with paylaod ship number 71\r\nreceived message on subject cars.83 with paylaod car number 83\r\nreceived message on subject planes.57 with paylaod plane number 57\r\nreceived message on subject ships.72 with paylaod ship number 72\r\nreceived message on subject cars.84 with paylaod car number 84\r\nreceived message on subject planes.58 with paylaod plane number 58\r\n"] +[1.327302, "o", "received message on subject ships.73 with paylaod ship number 73\r\nreceived message on subject cars.85 with paylaod car number 85\r\nreceived message on subject planes.59 with paylaod plane number 59\r\nreceived message on subject ships.74 with paylaod ship number 74\r\nreceived message on subject cars.86 with paylaod car number 86\r\n"] +[1.327553, "o", "received message on subject planes.60 with paylaod plane number 60\r\nreceived message on subject ships.75 with paylaod ship number 75\r\nreceived message on subject cars.87 with paylaod car number 87\r\nreceived message on subject planes.61 with paylaod plane number 61\r\nreceived message on subject ships.76 with paylaod ship number 76\r\nreceived message on subject cars.88 with paylaod car number 88\r\nreceived message on subject planes.62 with paylaod plane number 62\r\n"] +[1.327659, "o", "received message on subject ships.77 with paylaod ship number 77\r\nreceived message on subject cars.89 with paylaod car number 89\r\nreceived message on subject planes.63 with paylaod plane number 63\r\nreceived message on subject ships.78 with paylaod ship number 78\r\nreceived message on subject cars.90 with paylaod car number 90\r\nreceived message on subject planes.64 with paylaod plane number 64\r\nreceived message on subject ships.79 with paylaod ship number 79\r\nreceived message on subject cars.91 with paylaod car number 91\r\nreceived message on subject planes.65 with paylaod plane number 65\r\nreceived message on subject ships.80 with paylaod ship number 80\r\nreceived message on subject cars.92 with paylaod car number 92\r\nreceived message on subject planes.66 with paylaod plane number 66\r\nreceived message on subject ships.81 with paylaod ship number 81\r\nreceived message on subject cars.93 with paylaod car number 93\r\nreceived message on subject planes.67 with paylaod plane number 67\r\nreceived message on subject ships."] +[1.327732, "o", "82 with paylaod ship number 82\r\nreceived message on subject cars.94 with paylaod car number 94\r\nreceived message on subject planes.68 with paylaod plane number 68\r\nreceived message on subject ships.83 with paylaod ship number 83\r\nreceived message on subject cars.95 with paylaod car number 95\r\nreceived message on subject planes.69 with paylaod plane number 69\r\nreceived message on subject ships.84 with paylaod ship number 84\r\nreceived message on subject cars.96 with paylaod car number 96\r\nreceived message on subject planes.70 with paylaod plane number 70\r\nreceived message on subject ships.85 with paylaod ship number 85\r\nreceived message on subject cars.97 with paylaod car number 97\r\nreceived message on subject planes.71 with paylaod plane number 71\r\nreceived message on subject ships.86 with paylaod ship number 86\r\nreceived message on subject cars.98 with paylaod car number 98\r\nreceived message on subject planes.72 with paylaod plane number 72\r\nreceived message on subject ships.87 with paylaod ship number 87\r\nre"] +[1.327821, "o", "ceived message on subject cars.99 with paylaod car number 99\r\nreceived message on subject planes.73 with paylaod plane number 73\r\nreceived message on subject ships.88 with paylaod ship number 88\r\nreceived message on subject planes.74 with paylaod plane number 74\r\nreceived message on subject ships.89 with paylaod ship number 89\r\nreceived message on subject planes.75 with paylaod plane number 75\r\nreceived message on subject ships.90 with paylaod ship number 90\r\nreceived message on subject planes.76 with paylaod plane number 76\r\nreceived message on subject ships.91 with paylaod ship number 91\r\nreceived message on subject planes.77 with paylaod plane number 77\r\nreceived message on subject ships.92 with paylaod ship number 92\r\nreceived message on subject planes.78 with paylaod plane number 78\r\nreceived message on subject ships.93 with paylaod ship number 93\r\nreceived message on subject planes.79 with paylaod plane number 79\r\nreceived message on subject ships.94 with paylaod ship number 94\r\n"] +[1.327886, "o", "received message on subject planes.80 with paylaod plane number 80\r\nreceived message on subject ships.95 with paylaod ship number 95\r\nreceived message on subject planes.81 with paylaod plane number 81"] +[1.32797, "o", "\r\nreceived message on subject ships.96 with paylaod ship number 96\r\nreceived message on subject planes.82 with paylaod plane number 82\r\nreceived message on subject ships.97 with paylaod ship number 97\r\nreceived message on subject planes.83 with paylaod plane number 83\r\n"] +[1.328051, "o", "received message on subject ships.98 with paylaod ship number 98\r\nreceived message on subject planes.84 with paylaod plane number 84\r\nreceived message on subject ships.99 with paylaod ship number 99\r\nreceived message on subject planes.85 with paylaod plane number 85\r\nreceived message on subject planes.86 with paylaod plane number 86\r\nreceived message on subject planes.87 with paylaod plane number 87\r\nreceived message on subject planes.88 with paylaod plane number 88\r\n"] +[1.3281, "o", "received message on subject planes.89 with paylaod plane number 89\r\nreceived message on subject planes.90 with paylaod plane number 90\r\nreceived message on subject planes.91 with paylaod plane number 91\r\nreceived message on subject planes.92 with paylaod plane number 92\r\n"] +[1.328166, "o", "received message on subject planes.93 with paylaod plane number 93\r\nreceived message on subject planes.94 with paylaod plane number 94\r\nreceived message on subject planes.95 with paylaod plane number 95\r\nreceived message on subject planes.96 with paylaod plane number 96\r\nreceived message on subject planes.97 with paylaod plane number 97\r\nreceived message on subject planes.98 with paylaod plane number 98\r\nreceived message on subject planes.99 with paylaod plane number 99\r\n"] diff --git a/examples/messaging/iterating-multiple-subscriptions/rust/output.txt b/examples/messaging/iterating-multiple-subscriptions/rust/output.txt index 7a297c59..fe49abd3 100644 --- a/examples/messaging/iterating-multiple-subscriptions/rust/output.txt +++ b/examples/messaging/iterating-multiple-subscriptions/rust/output.txt @@ -1,301 +1,295 @@ -Network f105c02d_default Creating -Network f105c02d_default Created -Container f105c02d-nats-1 Creating -Container f105c02d-nats-1 Created -Container f105c02d-nats-1 Starting -Container f105c02d-nats-1 Started received message on subject cars.0 with paylaod car number 0 received message on subject ships.0 with paylaod ship number 0 received message on subject cars.1 with paylaod car number 1 -received message on subject ships.1 with paylaod ship number 1 received message on subject cars.2 with paylaod car number 2 received message on subject cars.3 with paylaod car number 3 -received message on subject ships.2 with paylaod ship number 2 +received message on subject ships.1 with paylaod ship number 1 received message on subject cars.4 with paylaod car number 4 -received message on subject ships.3 with paylaod ship number 3 +received message on subject ships.2 with paylaod ship number 2 received message on subject cars.5 with paylaod car number 5 +received message on subject ships.3 with paylaod ship number 3 received message on subject cars.6 with paylaod car number 6 received message on subject ships.4 with paylaod ship number 4 received message on subject cars.7 with paylaod car number 7 -received message on subject planes.0 with paylaod plane number 0 -received message on subject cars.8 with paylaod car number 8 received message on subject ships.5 with paylaod ship number 5 -received message on subject cars.9 with paylaod car number 9 +received message on subject cars.8 with paylaod car number 8 received message on subject ships.6 with paylaod ship number 6 -received message on subject planes.1 with paylaod plane number 1 -received message on subject cars.10 with paylaod car number 10 +received message on subject cars.9 with paylaod car number 9 received message on subject ships.7 with paylaod ship number 7 -received message on subject planes.2 with paylaod plane number 2 +received message on subject cars.10 with paylaod car number 10 received message on subject cars.11 with paylaod car number 11 received message on subject ships.8 with paylaod ship number 8 received message on subject cars.12 with paylaod car number 12 received message on subject ships.9 with paylaod ship number 9 -received message on subject planes.3 with paylaod plane number 3 -received message on subject planes.4 with paylaod plane number 4 received message on subject cars.13 with paylaod car number 13 -received message on subject ships.10 with paylaod ship number 10 -received message on subject planes.5 with paylaod plane number 5 received message on subject cars.14 with paylaod car number 14 +received message on subject ships.10 with paylaod ship number 10 received message on subject ships.11 with paylaod ship number 11 -received message on subject planes.6 with paylaod plane number 6 received message on subject cars.15 with paylaod car number 15 -received message on subject ships.12 with paylaod ship number 12 -received message on subject planes.7 with paylaod plane number 7 received message on subject cars.16 with paylaod car number 16 -received message on subject ships.13 with paylaod ship number 13 -received message on subject planes.8 with paylaod plane number 8 +received message on subject ships.12 with paylaod ship number 12 received message on subject cars.17 with paylaod car number 17 -received message on subject ships.14 with paylaod ship number 14 -received message on subject planes.9 with paylaod plane number 9 +received message on subject planes.0 with paylaod plane number 0 received message on subject cars.18 with paylaod car number 18 -received message on subject ships.15 with paylaod ship number 15 -received message on subject planes.10 with paylaod plane number 10 received message on subject cars.19 with paylaod car number 19 -received message on subject ships.16 with paylaod ship number 16 -received message on subject planes.11 with paylaod plane number 11 received message on subject cars.20 with paylaod car number 20 -received message on subject ships.17 with paylaod ship number 17 -received message on subject planes.12 with paylaod plane number 12 +received message on subject ships.13 with paylaod ship number 13 received message on subject cars.21 with paylaod car number 21 -received message on subject ships.18 with paylaod ship number 18 -received message on subject planes.13 with paylaod plane number 13 +received message on subject ships.14 with paylaod ship number 14 received message on subject cars.22 with paylaod car number 22 -received message on subject ships.19 with paylaod ship number 19 -received message on subject planes.14 with paylaod plane number 14 +received message on subject ships.15 with paylaod ship number 15 received message on subject cars.23 with paylaod car number 23 -received message on subject ships.20 with paylaod ship number 20 -received message on subject planes.15 with paylaod plane number 15 +received message on subject ships.16 with paylaod ship number 16 +received message on subject planes.1 with paylaod plane number 1 received message on subject cars.24 with paylaod car number 24 -received message on subject ships.21 with paylaod ship number 21 -received message on subject planes.16 with paylaod plane number 16 +received message on subject ships.17 with paylaod ship number 17 received message on subject cars.25 with paylaod car number 25 -received message on subject ships.22 with paylaod ship number 22 +received message on subject planes.2 with paylaod plane number 2 +received message on subject ships.18 with paylaod ship number 18 received message on subject cars.26 with paylaod car number 26 +received message on subject planes.3 with paylaod plane number 3 +received message on subject ships.19 with paylaod ship number 19 +received message on subject cars.27 with paylaod car number 27 +received message on subject planes.4 with paylaod plane number 4 +received message on subject ships.20 with paylaod ship number 20 +received message on subject cars.28 with paylaod car number 28 +received message on subject planes.5 with paylaod plane number 5 +received message on subject ships.21 with paylaod ship number 21 +received message on subject cars.29 with paylaod car number 29 +received message on subject planes.6 with paylaod plane number 6 +received message on subject ships.22 with paylaod ship number 22 +received message on subject planes.7 with paylaod plane number 7 received message on subject ships.23 with paylaod ship number 23 -received message on subject planes.17 with paylaod plane number 17 +received message on subject cars.30 with paylaod car number 30 +received message on subject planes.8 with paylaod plane number 8 received message on subject ships.24 with paylaod ship number 24 +received message on subject cars.31 with paylaod car number 31 +received message on subject planes.9 with paylaod plane number 9 received message on subject ships.25 with paylaod ship number 25 -received message on subject cars.27 with paylaod car number 27 -received message on subject planes.18 with paylaod plane number 18 +received message on subject cars.32 with paylaod car number 32 +received message on subject planes.10 with paylaod plane number 10 received message on subject ships.26 with paylaod ship number 26 -received message on subject cars.28 with paylaod car number 28 -received message on subject planes.19 with paylaod plane number 19 -received message on subject cars.29 with paylaod car number 29 +received message on subject cars.33 with paylaod car number 33 +received message on subject planes.11 with paylaod plane number 11 received message on subject ships.27 with paylaod ship number 27 -received message on subject planes.20 with paylaod plane number 20 +received message on subject cars.34 with paylaod car number 34 +received message on subject planes.12 with paylaod plane number 12 received message on subject ships.28 with paylaod ship number 28 -received message on subject planes.21 with paylaod plane number 21 -received message on subject planes.22 with paylaod plane number 22 +received message on subject cars.35 with paylaod car number 35 +received message on subject planes.13 with paylaod plane number 13 received message on subject ships.29 with paylaod ship number 29 -received message on subject cars.30 with paylaod car number 30 -received message on subject planes.23 with paylaod plane number 23 +received message on subject cars.36 with paylaod car number 36 +received message on subject planes.14 with paylaod plane number 14 +received message on subject cars.37 with paylaod car number 37 +received message on subject planes.15 with paylaod plane number 15 received message on subject ships.30 with paylaod ship number 30 -received message on subject planes.24 with paylaod plane number 24 -received message on subject cars.31 with paylaod car number 31 +received message on subject cars.38 with paylaod car number 38 +received message on subject planes.16 with paylaod plane number 16 received message on subject ships.31 with paylaod ship number 31 -received message on subject cars.32 with paylaod car number 32 -received message on subject planes.25 with paylaod plane number 25 +received message on subject cars.39 with paylaod car number 39 +received message on subject planes.17 with paylaod plane number 17 received message on subject ships.32 with paylaod ship number 32 -received message on subject cars.33 with paylaod car number 33 -received message on subject planes.26 with paylaod plane number 26 +received message on subject cars.40 with paylaod car number 40 +received message on subject planes.18 with paylaod plane number 18 received message on subject ships.33 with paylaod ship number 33 -received message on subject cars.34 with paylaod car number 34 -received message on subject planes.27 with paylaod plane number 27 +received message on subject cars.41 with paylaod car number 41 +received message on subject planes.19 with paylaod plane number 19 received message on subject ships.34 with paylaod ship number 34 -received message on subject cars.35 with paylaod car number 35 -received message on subject planes.28 with paylaod plane number 28 -received message on subject cars.36 with paylaod car number 36 +received message on subject cars.42 with paylaod car number 42 +received message on subject planes.20 with paylaod plane number 20 received message on subject ships.35 with paylaod ship number 35 -received message on subject planes.29 with paylaod plane number 29 -received message on subject cars.37 with paylaod car number 37 +received message on subject cars.43 with paylaod car number 43 +received message on subject planes.21 with paylaod plane number 21 received message on subject ships.36 with paylaod ship number 36 -received message on subject planes.30 with paylaod plane number 30 +received message on subject cars.44 with paylaod car number 44 +received message on subject planes.22 with paylaod plane number 22 received message on subject ships.37 with paylaod ship number 37 -received message on subject cars.38 with paylaod car number 38 -received message on subject planes.31 with paylaod plane number 31 +received message on subject cars.45 with paylaod car number 45 +received message on subject planes.23 with paylaod plane number 23 +received message on subject cars.46 with paylaod car number 46 received message on subject ships.38 with paylaod ship number 38 -received message on subject cars.39 with paylaod car number 39 -received message on subject planes.32 with paylaod plane number 32 +received message on subject planes.24 with paylaod plane number 24 +received message on subject cars.47 with paylaod car number 47 received message on subject ships.39 with paylaod ship number 39 -received message on subject cars.40 with paylaod car number 40 -received message on subject planes.33 with paylaod plane number 33 -received message on subject cars.41 with paylaod car number 41 +received message on subject planes.25 with paylaod plane number 25 +received message on subject cars.48 with paylaod car number 48 received message on subject ships.40 with paylaod ship number 40 -received message on subject planes.34 with paylaod plane number 34 -received message on subject cars.42 with paylaod car number 42 +received message on subject planes.26 with paylaod plane number 26 +received message on subject cars.49 with paylaod car number 49 received message on subject ships.41 with paylaod ship number 41 -received message on subject planes.35 with paylaod plane number 35 -received message on subject cars.43 with paylaod car number 43 +received message on subject planes.27 with paylaod plane number 27 received message on subject ships.42 with paylaod ship number 42 -received message on subject planes.36 with paylaod plane number 36 -received message on subject cars.44 with paylaod car number 44 +received message on subject cars.50 with paylaod car number 50 +received message on subject planes.28 with paylaod plane number 28 received message on subject ships.43 with paylaod ship number 43 -received message on subject planes.37 with paylaod plane number 37 -received message on subject cars.45 with paylaod car number 45 +received message on subject cars.51 with paylaod car number 51 +received message on subject planes.29 with paylaod plane number 29 received message on subject ships.44 with paylaod ship number 44 -received message on subject planes.38 with paylaod plane number 38 -received message on subject cars.46 with paylaod car number 46 +received message on subject cars.52 with paylaod car number 52 received message on subject ships.45 with paylaod ship number 45 +received message on subject planes.30 with paylaod plane number 30 +received message on subject cars.53 with paylaod car number 53 +received message on subject planes.31 with paylaod plane number 31 received message on subject ships.46 with paylaod ship number 46 -received message on subject planes.39 with paylaod plane number 39 -received message on subject cars.47 with paylaod car number 47 +received message on subject cars.54 with paylaod car number 54 +received message on subject planes.32 with paylaod plane number 32 +received message on subject cars.55 with paylaod car number 55 +received message on subject cars.56 with paylaod car number 56 +received message on subject cars.57 with paylaod car number 57 received message on subject ships.47 with paylaod ship number 47 -received message on subject planes.40 with paylaod plane number 40 -received message on subject cars.48 with paylaod car number 48 +received message on subject cars.58 with paylaod car number 58 +received message on subject planes.33 with paylaod plane number 33 received message on subject ships.48 with paylaod ship number 48 -received message on subject planes.41 with paylaod plane number 41 -received message on subject cars.49 with paylaod car number 49 +received message on subject cars.59 with paylaod car number 59 +received message on subject cars.60 with paylaod car number 60 +received message on subject planes.34 with paylaod plane number 34 received message on subject ships.49 with paylaod ship number 49 -received message on subject planes.42 with paylaod plane number 42 -received message on subject cars.50 with paylaod car number 50 +received message on subject cars.61 with paylaod car number 61 +received message on subject planes.35 with paylaod plane number 35 received message on subject ships.50 with paylaod ship number 50 -received message on subject planes.43 with paylaod plane number 43 -received message on subject cars.51 with paylaod car number 51 +received message on subject cars.62 with paylaod car number 62 +received message on subject planes.36 with paylaod plane number 36 received message on subject ships.51 with paylaod ship number 51 -received message on subject planes.44 with paylaod plane number 44 -received message on subject cars.52 with paylaod car number 52 +received message on subject cars.63 with paylaod car number 63 +received message on subject planes.37 with paylaod plane number 37 received message on subject ships.52 with paylaod ship number 52 -received message on subject planes.45 with paylaod plane number 45 -received message on subject cars.53 with paylaod car number 53 +received message on subject cars.64 with paylaod car number 64 +received message on subject planes.38 with paylaod plane number 38 received message on subject ships.53 with paylaod ship number 53 -received message on subject planes.46 with paylaod plane number 46 -received message on subject cars.54 with paylaod car number 54 +received message on subject cars.65 with paylaod car number 65 +received message on subject planes.39 with paylaod plane number 39 received message on subject ships.54 with paylaod ship number 54 -received message on subject planes.47 with paylaod plane number 47 -received message on subject cars.55 with paylaod car number 55 +received message on subject cars.66 with paylaod car number 66 +received message on subject planes.40 with paylaod plane number 40 received message on subject ships.55 with paylaod ship number 55 +received message on subject cars.67 with paylaod car number 67 +received message on subject planes.41 with paylaod plane number 41 received message on subject ships.56 with paylaod ship number 56 -received message on subject planes.48 with paylaod plane number 48 -received message on subject cars.56 with paylaod car number 56 +received message on subject cars.68 with paylaod car number 68 +received message on subject planes.42 with paylaod plane number 42 received message on subject ships.57 with paylaod ship number 57 -received message on subject planes.49 with paylaod plane number 49 -received message on subject cars.57 with paylaod car number 57 +received message on subject cars.69 with paylaod car number 69 +received message on subject planes.43 with paylaod plane number 43 received message on subject ships.58 with paylaod ship number 58 -received message on subject planes.50 with paylaod plane number 50 -received message on subject cars.58 with paylaod car number 58 +received message on subject cars.70 with paylaod car number 70 +received message on subject planes.44 with paylaod plane number 44 received message on subject ships.59 with paylaod ship number 59 -received message on subject planes.51 with paylaod plane number 51 -received message on subject cars.59 with paylaod car number 59 +received message on subject cars.71 with paylaod car number 71 +received message on subject planes.45 with paylaod plane number 45 received message on subject ships.60 with paylaod ship number 60 -received message on subject planes.52 with paylaod plane number 52 -received message on subject cars.60 with paylaod car number 60 +received message on subject cars.72 with paylaod car number 72 +received message on subject planes.46 with paylaod plane number 46 received message on subject ships.61 with paylaod ship number 61 -received message on subject planes.53 with paylaod plane number 53 -received message on subject cars.61 with paylaod car number 61 +received message on subject cars.73 with paylaod car number 73 +received message on subject planes.47 with paylaod plane number 47 received message on subject ships.62 with paylaod ship number 62 -received message on subject planes.54 with paylaod plane number 54 -received message on subject cars.62 with paylaod car number 62 +received message on subject cars.74 with paylaod car number 74 +received message on subject planes.48 with paylaod plane number 48 received message on subject ships.63 with paylaod ship number 63 -received message on subject planes.55 with paylaod plane number 55 -received message on subject cars.63 with paylaod car number 63 +received message on subject cars.75 with paylaod car number 75 +received message on subject planes.49 with paylaod plane number 49 received message on subject ships.64 with paylaod ship number 64 -received message on subject planes.56 with paylaod plane number 56 -received message on subject cars.64 with paylaod car number 64 +received message on subject cars.76 with paylaod car number 76 +received message on subject planes.50 with paylaod plane number 50 received message on subject ships.65 with paylaod ship number 65 -received message on subject planes.57 with paylaod plane number 57 -received message on subject cars.65 with paylaod car number 65 +received message on subject cars.77 with paylaod car number 77 +received message on subject planes.51 with paylaod plane number 51 received message on subject ships.66 with paylaod ship number 66 -received message on subject planes.58 with paylaod plane number 58 -received message on subject cars.66 with paylaod car number 66 +received message on subject cars.78 with paylaod car number 78 +received message on subject planes.52 with paylaod plane number 52 received message on subject ships.67 with paylaod ship number 67 -received message on subject planes.59 with paylaod plane number 59 -received message on subject cars.67 with paylaod car number 67 +received message on subject cars.79 with paylaod car number 79 +received message on subject planes.53 with paylaod plane number 53 received message on subject ships.68 with paylaod ship number 68 -received message on subject planes.60 with paylaod plane number 60 -received message on subject cars.68 with paylaod car number 68 +received message on subject cars.80 with paylaod car number 80 +received message on subject planes.54 with paylaod plane number 54 received message on subject ships.69 with paylaod ship number 69 -received message on subject planes.61 with paylaod plane number 61 -received message on subject cars.69 with paylaod car number 69 +received message on subject cars.81 with paylaod car number 81 +received message on subject planes.55 with paylaod plane number 55 received message on subject ships.70 with paylaod ship number 70 -received message on subject planes.62 with paylaod plane number 62 -received message on subject cars.70 with paylaod car number 70 +received message on subject cars.82 with paylaod car number 82 +received message on subject planes.56 with paylaod plane number 56 received message on subject ships.71 with paylaod ship number 71 -received message on subject planes.63 with paylaod plane number 63 -received message on subject cars.71 with paylaod car number 71 +received message on subject cars.83 with paylaod car number 83 +received message on subject planes.57 with paylaod plane number 57 received message on subject ships.72 with paylaod ship number 72 -received message on subject planes.64 with paylaod plane number 64 -received message on subject cars.72 with paylaod car number 72 +received message on subject cars.84 with paylaod car number 84 +received message on subject planes.58 with paylaod plane number 58 received message on subject ships.73 with paylaod ship number 73 -received message on subject planes.65 with paylaod plane number 65 -received message on subject cars.73 with paylaod car number 73 +received message on subject cars.85 with paylaod car number 85 +received message on subject planes.59 with paylaod plane number 59 received message on subject ships.74 with paylaod ship number 74 -received message on subject planes.66 with paylaod plane number 66 -received message on subject cars.74 with paylaod car number 74 +received message on subject cars.86 with paylaod car number 86 +received message on subject planes.60 with paylaod plane number 60 received message on subject ships.75 with paylaod ship number 75 -received message on subject planes.67 with paylaod plane number 67 -received message on subject cars.75 with paylaod car number 75 +received message on subject cars.87 with paylaod car number 87 +received message on subject planes.61 with paylaod plane number 61 received message on subject ships.76 with paylaod ship number 76 -received message on subject planes.68 with paylaod plane number 68 -received message on subject cars.76 with paylaod car number 76 +received message on subject cars.88 with paylaod car number 88 +received message on subject planes.62 with paylaod plane number 62 received message on subject ships.77 with paylaod ship number 77 -received message on subject planes.69 with paylaod plane number 69 -received message on subject cars.77 with paylaod car number 77 +received message on subject cars.89 with paylaod car number 89 +received message on subject planes.63 with paylaod plane number 63 received message on subject ships.78 with paylaod ship number 78 -received message on subject planes.70 with paylaod plane number 70 -received message on subject cars.78 with paylaod car number 78 +received message on subject cars.90 with paylaod car number 90 +received message on subject planes.64 with paylaod plane number 64 received message on subject ships.79 with paylaod ship number 79 -received message on subject planes.71 with paylaod plane number 71 -received message on subject cars.79 with paylaod car number 79 +received message on subject cars.91 with paylaod car number 91 +received message on subject planes.65 with paylaod plane number 65 received message on subject ships.80 with paylaod ship number 80 -received message on subject planes.72 with paylaod plane number 72 +received message on subject cars.92 with paylaod car number 92 +received message on subject planes.66 with paylaod plane number 66 received message on subject ships.81 with paylaod ship number 81 -received message on subject planes.73 with paylaod plane number 73 -received message on subject cars.80 with paylaod car number 80 +received message on subject cars.93 with paylaod car number 93 +received message on subject planes.67 with paylaod plane number 67 received message on subject ships.82 with paylaod ship number 82 -received message on subject cars.81 with paylaod car number 81 -received message on subject planes.74 with paylaod plane number 74 +received message on subject cars.94 with paylaod car number 94 +received message on subject planes.68 with paylaod plane number 68 received message on subject ships.83 with paylaod ship number 83 -received message on subject cars.82 with paylaod car number 82 -received message on subject planes.75 with paylaod plane number 75 +received message on subject cars.95 with paylaod car number 95 +received message on subject planes.69 with paylaod plane number 69 received message on subject ships.84 with paylaod ship number 84 -received message on subject cars.83 with paylaod car number 83 -received message on subject planes.76 with paylaod plane number 76 +received message on subject cars.96 with paylaod car number 96 +received message on subject planes.70 with paylaod plane number 70 received message on subject ships.85 with paylaod ship number 85 -received message on subject cars.84 with paylaod car number 84 -received message on subject planes.77 with paylaod plane number 77 +received message on subject cars.97 with paylaod car number 97 +received message on subject planes.71 with paylaod plane number 71 received message on subject ships.86 with paylaod ship number 86 -received message on subject cars.85 with paylaod car number 85 +received message on subject cars.98 with paylaod car number 98 +received message on subject planes.72 with paylaod plane number 72 received message on subject ships.87 with paylaod ship number 87 +received message on subject cars.99 with paylaod car number 99 +received message on subject planes.73 with paylaod plane number 73 +received message on subject ships.88 with paylaod ship number 88 +received message on subject planes.74 with paylaod plane number 74 +received message on subject ships.89 with paylaod ship number 89 +received message on subject planes.75 with paylaod plane number 75 +received message on subject ships.90 with paylaod ship number 90 +received message on subject planes.76 with paylaod plane number 76 +received message on subject ships.91 with paylaod ship number 91 +received message on subject planes.77 with paylaod plane number 77 +received message on subject ships.92 with paylaod ship number 92 received message on subject planes.78 with paylaod plane number 78 -received message on subject cars.86 with paylaod car number 86 +received message on subject ships.93 with paylaod ship number 93 received message on subject planes.79 with paylaod plane number 79 -received message on subject ships.88 with paylaod ship number 88 -received message on subject cars.87 with paylaod car number 87 +received message on subject ships.94 with paylaod ship number 94 received message on subject planes.80 with paylaod plane number 80 -received message on subject ships.89 with paylaod ship number 89 -received message on subject cars.88 with paylaod car number 88 +received message on subject ships.95 with paylaod ship number 95 received message on subject planes.81 with paylaod plane number 81 -received message on subject ships.90 with paylaod ship number 90 -received message on subject cars.89 with paylaod car number 89 +received message on subject ships.96 with paylaod ship number 96 received message on subject planes.82 with paylaod plane number 82 -received message on subject ships.91 with paylaod ship number 91 -received message on subject cars.90 with paylaod car number 90 +received message on subject ships.97 with paylaod ship number 97 received message on subject planes.83 with paylaod plane number 83 -received message on subject ships.92 with paylaod ship number 92 -received message on subject cars.91 with paylaod car number 91 +received message on subject ships.98 with paylaod ship number 98 received message on subject planes.84 with paylaod plane number 84 -received message on subject ships.93 with paylaod ship number 93 -received message on subject cars.92 with paylaod car number 92 +received message on subject ships.99 with paylaod ship number 99 received message on subject planes.85 with paylaod plane number 85 -received message on subject ships.94 with paylaod ship number 94 -received message on subject cars.93 with paylaod car number 93 received message on subject planes.86 with paylaod plane number 86 -received message on subject ships.95 with paylaod ship number 95 -received message on subject cars.94 with paylaod car number 94 received message on subject planes.87 with paylaod plane number 87 -received message on subject ships.96 with paylaod ship number 96 -received message on subject cars.95 with paylaod car number 95 received message on subject planes.88 with paylaod plane number 88 -received message on subject ships.97 with paylaod ship number 97 -received message on subject cars.96 with paylaod car number 96 received message on subject planes.89 with paylaod plane number 89 -received message on subject ships.98 with paylaod ship number 98 -received message on subject cars.97 with paylaod car number 97 received message on subject planes.90 with paylaod plane number 90 -received message on subject ships.99 with paylaod ship number 99 -received message on subject cars.98 with paylaod car number 98 received message on subject planes.91 with paylaod plane number 91 -received message on subject cars.99 with paylaod car number 99 received message on subject planes.92 with paylaod plane number 92 received message on subject planes.93 with paylaod plane number 93 received message on subject planes.94 with paylaod plane number 94 diff --git a/examples/messaging/json/rust/output.cast b/examples/messaging/json/rust/output.cast index 0947e196..90f2327a 100644 --- a/examples/messaging/json/rust/output.cast +++ b/examples/messaging/json/rust/output.cast @@ -1,8 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647976, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/json/rust"} -[0.456311, "o", "Network fede1cfd_default Creating\r\n"] -[0.479914, "o", "Network fede1cfd_default Created\r\n"] -[0.480015, "o", "Container fede1cfd-nats-1 Creating\r\n"] -[0.526313, "o", "Container fede1cfd-nats-1 Created\r\n"] -[0.526983, "o", "Container fede1cfd-nats-1 Starting\r\n"] -[0.747885, "o", "Container fede1cfd-nats-1 Started\r\n"] -[1.037525, "o", "received valid JSON payload: foo=\"bar\" bar=27\r\nreceived invalid JSON payload: b\"not json\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651648, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/json/rust"} +[1.268692, "o", "received valid JSON payload: foo=\"bar\" bar=27\r\nreceived invalid JSON payload: b\"not json\"\r\n"] diff --git a/examples/messaging/json/rust/output.txt b/examples/messaging/json/rust/output.txt index 912160b8..2c813c4a 100644 --- a/examples/messaging/json/rust/output.txt +++ b/examples/messaging/json/rust/output.txt @@ -1,8 +1,2 @@ -Network fede1cfd_default Creating -Network fede1cfd_default Created -Container fede1cfd-nats-1 Creating -Container fede1cfd-nats-1 Created -Container fede1cfd-nats-1 Starting -Container fede1cfd-nats-1 Started received valid JSON payload: foo="bar" bar=27 received invalid JSON payload: b"not json" diff --git a/examples/messaging/pub-sub/cli/output.cast b/examples/messaging/pub-sub/cli/output.cast index da0d36c3..88f85058 100644 --- a/examples/messaging/pub-sub/cli/output.cast +++ b/examples/messaging/pub-sub/cli/output.cast @@ -1,15 +1,8 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647568, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/cli"} -[0.720019, "o", "Network 6e8ab3db_default Creating\r\n"] -[0.78786, "o", "Network 6e8ab3db_default Created\r\n"] -[0.78805, "o", "Container 6e8ab3db-nats-1 Creating\r\n"] -[0.827481, "o", "Container 6e8ab3db-nats-1 Created\r\n"] -[0.829837, "o", "Container 6e8ab3db-nats-1 Starting\r\n"] -[1.349715, "o", "Container 6e8ab3db-nats-1 Started\r\n"] -[1.951261, "o", "14:59:30 Published 5 bytes to \"greet.joe\"\r\n"] -[2.009117, "o", "14:59:30 Subscribing on greet.* \r\n"] -[2.5199, "o", "14:59:30 Published 5 bytes to \"greet.joe\"\r\n"] -[2.520194, "o", "[#1] Received on \"greet.joe\"\r\nhello\r\n\r\n"] -[2.572611, "o", "[#2] Received on \"greet.pam\"\r\nhello\r\n\r\n14:59:30 Published 5 bytes to \"greet.pam\"\r\n"] -[2.625543, "o", "[#3] Received on \"greet.bob\"\r\n"] -[2.625794, "o", "hello\r\n\r\n14:59:30 Published 5 bytes to \"greet.bob\"\r\n"] -[2.694627, "o", "14:59:30 Published 5 bytes to \"greet.bob\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651412, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/cli"} +[1.085052, "o", "16:03:33 Published 5 bytes to \"greet.joe\"\r\n"] +[1.103965, "o", "16:03:33 Subscribing on greet.* \r\n"] +[1.615373, "o", "16:03:33 Published 5 bytes to \"greet.joe\"\r\n[#1] Received on \"greet.joe\"\r\nhello\r\n\r\n"] +[1.633884, "o", "16:03:33 Published 5 bytes to \"greet.pam\"\r\n[#2] Received on \"greet.pam\"\r\nhello\r\n\r\n"] +[1.654027, "o", "16:03:33 Published 5 bytes to \"greet.bob\"\r\n[#3] Received on \"greet.bob\"\r\n"] +[1.654078, "o", "hello\r\n\r\n"] +[1.674021, "o", "16:03:33 Published 5 bytes to \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/cli/output.txt b/examples/messaging/pub-sub/cli/output.txt index 1ca9350b..52fb62a7 100644 --- a/examples/messaging/pub-sub/cli/output.txt +++ b/examples/messaging/pub-sub/cli/output.txt @@ -1,21 +1,15 @@ -Network 6e8ab3db_default Creating -Network 6e8ab3db_default Created -Container 6e8ab3db-nats-1 Creating -Container 6e8ab3db-nats-1 Created -Container 6e8ab3db-nats-1 Starting -Container 6e8ab3db-nats-1 Started -14:59:30 Published 5 bytes to "greet.joe" -14:59:30 Subscribing on greet.* -14:59:30 Published 5 bytes to "greet.joe" +16:03:33 Published 5 bytes to "greet.joe" +16:03:33 Subscribing on greet.* +16:03:33 Published 5 bytes to "greet.joe" [#1] Received on "greet.joe" hello +16:03:33 Published 5 bytes to "greet.pam" [#2] Received on "greet.pam" hello -14:59:30 Published 5 bytes to "greet.pam" +16:03:33 Published 5 bytes to "greet.bob" [#3] Received on "greet.bob" hello -14:59:30 Published 5 bytes to "greet.bob" -14:59:30 Published 5 bytes to "greet.bob" +16:03:33 Published 5 bytes to "greet.bob" diff --git a/examples/messaging/pub-sub/deno/output.cast b/examples/messaging/pub-sub/deno/output.cast index 2ba5aa78..5853c86a 100644 --- a/examples/messaging/pub-sub/deno/output.cast +++ b/examples/messaging/pub-sub/deno/output.cast @@ -1,8 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647586, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/deno"} -[0.472634, "o", "Network bdc5037c_default Creating\r\n"] -[0.496389, "o", "Network bdc5037c_default Created\r\n"] -[0.4965, "o", "Container bdc5037c-nats-1 Creating\r\n"] -[0.524116, "o", "Container bdc5037c-nats-1 Created\r\n"] -[0.52475, "o", "Container bdc5037c-nats-1 Starting\r\n"] -[0.805096, "o", "Container bdc5037c-nats-1 Started\r\n"] -[1.121545, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\nhello on subject greet.sue\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651419, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/deno"} +[1.116497, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\nhello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/deno/output.txt b/examples/messaging/pub-sub/deno/output.txt index d1910628..f00614fe 100644 --- a/examples/messaging/pub-sub/deno/output.txt +++ b/examples/messaging/pub-sub/deno/output.txt @@ -1,9 +1,3 @@ -Network bdc5037c_default Creating -Network bdc5037c_default Created -Container bdc5037c-nats-1 Creating -Container bdc5037c-nats-1 Created -Container bdc5037c-nats-1 Starting -Container bdc5037c-nats-1 Started hello on subject greet.joe hello on subject greet.pam hello on subject greet.sue diff --git a/examples/messaging/pub-sub/go/output.cast b/examples/messaging/pub-sub/go/output.cast index ba78799e..7f32c1b5 100644 --- a/examples/messaging/pub-sub/go/output.cast +++ b/examples/messaging/pub-sub/go/output.cast @@ -1,9 +1,4 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647595, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/go"} -[0.537315, "o", "Network d42d9a81_default Creating\r\n"] -[0.562585, "o", "Network d42d9a81_default Created\r\n"] -[0.56277, "o", "Container d42d9a81-nats-1 Creating\r\n"] -[0.577466, "o", "Container d42d9a81-nats-1 Created\r\n"] -[0.578209, "o", "Container d42d9a81-nats-1 Starting\r\n"] -[0.818244, "o", "Container d42d9a81-nats-1 Started\r\n"] -[1.100129, "o", "subscribed after a publish...\r\nmsg is nil? true\r\n"] -[1.100354, "o", "msg data: \"hello\" on subject \"greet.joe\"\r\nmsg data: \"hello\" on subject \"greet.pam\"\r\nmsg data: \"hello\" on subject \"greet.bob\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651423, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/go"} +[1.055822, "o", "subscribed after a publish...\r\nmsg is nil? true\r\n"] +[1.055989, "o", "msg data: \"hello\" on subject \"greet.joe\"\r\n"] +[1.056039, "o", "msg data: \"hello\" on subject \"greet.pam\"\r\nmsg data: \"hello\" on subject \"greet.bob\"\r\n"] diff --git a/examples/messaging/pub-sub/go/output.txt b/examples/messaging/pub-sub/go/output.txt index 35810bd2..41554523 100644 --- a/examples/messaging/pub-sub/go/output.txt +++ b/examples/messaging/pub-sub/go/output.txt @@ -1,9 +1,3 @@ -Network d42d9a81_default Creating -Network d42d9a81_default Created -Container d42d9a81-nats-1 Creating -Container d42d9a81-nats-1 Created -Container d42d9a81-nats-1 Starting -Container d42d9a81-nats-1 Started subscribed after a publish... msg is nil? true msg data: "hello" on subject "greet.joe" diff --git a/examples/messaging/pub-sub/java/output.cast b/examples/messaging/pub-sub/java/output.cast index cbd59f47..7d4b338f 100644 --- a/examples/messaging/pub-sub/java/output.cast +++ b/examples/messaging/pub-sub/java/output.cast @@ -1,10 +1,4 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647623, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/java"} -[0.450764, "o", "Network cbcfe759_default Creating\r\n"] -[0.475332, "o", "Network cbcfe759_default Created\r\n"] -[0.475423, "o", "Container cbcfe759-nats-1 Creating\r\n"] -[0.51143, "o", "Container cbcfe759-nats-1 Created\r\n"] -[0.512416, "o", "Container cbcfe759-nats-1 Starting\r\n"] -[0.785045, "o", "Container cbcfe759-nats-1 Started\r\n"] -[1.239841, "o", "hello on subject greet.bob\r\n"] -[1.239983, "o", "hello on subject greet.sue\r\nhello on subject "] -[1.240033, "o", "greet.pam\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651437, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/java"} +[1.237915, "o", "hello on subject greet.bob\r\n"] +[1.237947, "o", "hello on subject greet.sue\r\n"] +[1.238045, "o", "hello on subject greet.pam\r\n"] diff --git a/examples/messaging/pub-sub/java/output.txt b/examples/messaging/pub-sub/java/output.txt index c491ab9f..d9594796 100644 --- a/examples/messaging/pub-sub/java/output.txt +++ b/examples/messaging/pub-sub/java/output.txt @@ -1,9 +1,3 @@ -Network cbcfe759_default Creating -Network cbcfe759_default Created -Container cbcfe759-nats-1 Creating -Container cbcfe759-nats-1 Created -Container cbcfe759-nats-1 Starting -Container cbcfe759-nats-1 Started hello on subject greet.bob hello on subject greet.sue hello on subject greet.pam diff --git a/examples/messaging/pub-sub/node/output.cast b/examples/messaging/pub-sub/node/output.cast index 44e0e8a4..0d49e355 100644 --- a/examples/messaging/pub-sub/node/output.cast +++ b/examples/messaging/pub-sub/node/output.cast @@ -1,9 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647636, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/node"} -[0.458812, "o", "Network 9f73132e_default Creating\r\n"] -[0.481679, "o", "Network 9f73132e_default Created\r\n"] -[0.481798, "o", "Container 9f73132e-nats-1 Creating\r\n"] -[0.515166, "o", "Container 9f73132e-nats-1 Created\r\n"] -[0.515847, "o", "Container 9f73132e-nats-1 Starting\r\n"] -[0.730001, "o", "Container 9f73132e-nats-1 Started\r\n"] -[1.112298, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\n"] -[1.112341, "o", "hello on subject greet.sue\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651441, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/node"} +[1.176999, "o", "hello on subject greet.joe\r\nhello on subject greet.pam\r\nhello on subject greet.sue\r\n"] diff --git a/examples/messaging/pub-sub/node/output.txt b/examples/messaging/pub-sub/node/output.txt index dcb5abc0..f00614fe 100644 --- a/examples/messaging/pub-sub/node/output.txt +++ b/examples/messaging/pub-sub/node/output.txt @@ -1,9 +1,3 @@ -Network 9f73132e_default Creating -Network 9f73132e_default Created -Container 9f73132e-nats-1 Creating -Container 9f73132e-nats-1 Created -Container 9f73132e-nats-1 Starting -Container 9f73132e-nats-1 Started hello on subject greet.joe hello on subject greet.pam hello on subject greet.sue diff --git a/examples/messaging/pub-sub/python/output.cast b/examples/messaging/pub-sub/python/output.cast index 01d1cc89..f0c5ebe7 100644 --- a/examples/messaging/pub-sub/python/output.cast +++ b/examples/messaging/pub-sub/python/output.cast @@ -1,8 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647648, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/python"} -[0.481041, "o", "Network 4ec1c651_default Creating\r\n"] -[0.504433, "o", "Network 4ec1c651_default Created\r\n"] -[0.504466, "o", "Container 4ec1c651-nats-1 Creating\r\n"] -[0.551863, "o", "Container 4ec1c651-nats-1 Created\r\n"] -[0.552908, "o", "Container 4ec1c651-nats-1 Starting\r\n"] -[0.749608, "o", "Container 4ec1c651-nats-1 Started\r\n"] -[1.181096, "o", "b'hello' on subject greet.joe\r\nb'hello' on subject greet.pam\r\nb'hello' on subject greet.bob\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651444, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/python"} +[1.331905, "o", "b'hello' on subject greet.joe\r\nb'hello' on subject greet.pam\r\nb'hello' on subject greet.bob\r\n"] diff --git a/examples/messaging/pub-sub/python/output.txt b/examples/messaging/pub-sub/python/output.txt index 464e88db..99c63346 100644 --- a/examples/messaging/pub-sub/python/output.txt +++ b/examples/messaging/pub-sub/python/output.txt @@ -1,9 +1,3 @@ -Network 4ec1c651_default Creating -Network 4ec1c651_default Created -Container 4ec1c651-nats-1 Creating -Container 4ec1c651-nats-1 Created -Container 4ec1c651-nats-1 Starting -Container 4ec1c651-nats-1 Started b'hello' on subject greet.joe b'hello' on subject greet.pam b'hello' on subject greet.bob diff --git a/examples/messaging/pub-sub/rust/output.cast b/examples/messaging/pub-sub/rust/output.cast index 10437606..e66ddf46 100644 --- a/examples/messaging/pub-sub/rust/output.cast +++ b/examples/messaging/pub-sub/rust/output.cast @@ -1,8 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647767, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/rust"} -[0.563771, "o", "Network debd5b0e_default Creating\r\n"] -[0.587401, "o", "Network debd5b0e_default Created\r\n"] -[0.58752, "o", "Container debd5b0e-nats-1 Creating\r\n"] -[0.624249, "o", "Container debd5b0e-nats-1 Created\r\n"] -[0.625067, "o", "Container debd5b0e-nats-1 Starting\r\n"] -[0.840402, "o", "Container debd5b0e-nats-1 Started\r\n"] -[1.298241, "o", "Ok(\"hello\") received on \"greet.sue\"\r\nOk(\"hello\") received on \"greet.bob\"\r\nOk(\"hello\") received on \"greet.pam\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651407, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/pub-sub/rust"} +[1.051982, "o", "Ok(\"hello\") received on \"greet.sue\"\r\nOk(\"hello\") received on \"greet.bob\"\r\nOk(\"hello\") received on \"greet.pam\"\r\n"] diff --git a/examples/messaging/pub-sub/rust/output.txt b/examples/messaging/pub-sub/rust/output.txt index fffebdb5..a2ecf54f 100644 --- a/examples/messaging/pub-sub/rust/output.txt +++ b/examples/messaging/pub-sub/rust/output.txt @@ -1,9 +1,3 @@ -Network debd5b0e_default Creating -Network debd5b0e_default Created -Container debd5b0e-nats-1 Creating -Container debd5b0e-nats-1 Created -Container debd5b0e-nats-1 Starting -Container debd5b0e-nats-1 Started Ok("hello") received on "greet.sue" Ok("hello") received on "greet.bob" Ok("hello") received on "greet.pam" diff --git a/examples/messaging/request-reply/go/output.cast b/examples/messaging/request-reply/go/output.cast index d8578f43..1b8a3180 100644 --- a/examples/messaging/request-reply/go/output.cast +++ b/examples/messaging/request-reply/go/output.cast @@ -1,11 +1,5 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647876, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/go"} -[0.54755, "o", "Network 8988bede_default Creating\r\n"] -[0.56904, "o", "Network 8988bede_default Created\r\n"] -[0.569192, "o", "Container 8988bede-nats-1 Creating\r\n"] -[0.583148, "o", "Container 8988bede-nats-1 Created\r\n"] -[0.583798, "o", "Container 8988bede-nats-1 Starting\r\n"] -[0.861352, "o", "Container 8988bede-nats-1 Started\r\n"] -[1.116926, "o", "hello, joe\r\n"] -[1.117057, "o", "hello, sue\r\n"] -[1.117102, "o", "hello, bob\r\n"] -[1.117188, "o", "nats: no responders available for request\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651449, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/go"} +[1.002074, "o", "hello, joe\r\n"] +[1.00218, "o", "hello, sue\r\n"] +[1.002245, "o", "hello, bob\r\n"] +[1.002281, "o", "nats: no responders available for request\r\n"] diff --git a/examples/messaging/request-reply/go/output.txt b/examples/messaging/request-reply/go/output.txt index 7efe2c61..ed83f273 100644 --- a/examples/messaging/request-reply/go/output.txt +++ b/examples/messaging/request-reply/go/output.txt @@ -1,9 +1,3 @@ -Network 8988bede_default Creating -Network 8988bede_default Created -Container 8988bede-nats-1 Creating -Container 8988bede-nats-1 Created -Container 8988bede-nats-1 Starting -Container 8988bede-nats-1 Started hello, joe hello, sue hello, bob diff --git a/examples/messaging/request-reply/python/output.cast b/examples/messaging/request-reply/python/output.cast index cc8d674b..8ed353b5 100644 --- a/examples/messaging/request-reply/python/output.cast +++ b/examples/messaging/request-reply/python/output.cast @@ -1,8 +1,2 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647771, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/python"} -[0.468259, "o", "Network 929cc7ad_default Creating\r\n"] -[0.489877, "o", "Network 929cc7ad_default Created\r\n"] -[0.490023, "o", "Container 929cc7ad-nats-1 Creating\r\n"] -[0.505067, "o", "Container 929cc7ad-nats-1 Created\r\n"] -[0.505678, "o", "Container 929cc7ad-nats-1 Starting\r\n"] -[0.767818, "o", "Container 929cc7ad-nats-1 Started\r\n"] -[1.115724, "o", "b'hello, joe'\r\nb'hello, sue'\r\nb'hello, bob'\r\nno responders\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651452, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/python"} +[1.090573, "o", "b'hello, joe'\r\nb'hello, sue'\r\nb'hello, bob'\r\nno responders\r\n"] diff --git a/examples/messaging/request-reply/python/output.txt b/examples/messaging/request-reply/python/output.txt index 2a7676e3..98a472f9 100644 --- a/examples/messaging/request-reply/python/output.txt +++ b/examples/messaging/request-reply/python/output.txt @@ -1,9 +1,3 @@ -Network 929cc7ad_default Creating -Network 929cc7ad_default Created -Container 929cc7ad-nats-1 Creating -Container 929cc7ad-nats-1 Created -Container 929cc7ad-nats-1 Starting -Container 929cc7ad-nats-1 Started b'hello, joe' b'hello, sue' b'hello, bob' diff --git a/examples/messaging/request-reply/rust/output.cast b/examples/messaging/request-reply/rust/output.cast index 463d0892..57f34d7a 100644 --- a/examples/messaging/request-reply/rust/output.cast +++ b/examples/messaging/request-reply/rust/output.cast @@ -1,10 +1,4 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669647869, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/rust"} -[0.522766, "o", "Network 86e57d08_default Creating\r\n"] -[0.547024, "o", "Network 86e57d08_default Created\r\n"] -[0.547136, "o", "Container 86e57d08-nats-1 Creating\r\n"] -[0.573136, "o", "Container 86e57d08-nats-1 Created\r\n"] -[0.573829, "o", "Container 86e57d08-nats-1 Starting\r\n"] -[0.886776, "o", "Container 86e57d08-nats-1 Started\r\n"] -[1.173039, "o", "got a response: \"hello, sue\"\r\n"] -[1.274361, "o", "got a response: \"hello, john\"\r\n"] -[1.375015, "o", "got a response: \"hello, bob\"\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669651549, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: messaging/request-reply/rust"} +[1.115891, "o", "got a response: \"hello, sue\"\r\n"] +[1.217399, "o", "got a response: \"hello, john\"\r\n"] +[1.317811, "o", "got a response: \"hello, bob\"\r\n"] diff --git a/examples/messaging/request-reply/rust/output.txt b/examples/messaging/request-reply/rust/output.txt index 0085b226..6cdb6d65 100644 --- a/examples/messaging/request-reply/rust/output.txt +++ b/examples/messaging/request-reply/rust/output.txt @@ -1,9 +1,3 @@ -Network 86e57d08_default Creating -Network 86e57d08_default Created -Container 86e57d08-nats-1 Creating -Container 86e57d08-nats-1 Created -Container 86e57d08-nats-1 Starting -Container 86e57d08-nats-1 Started got a response: "hello, sue" got a response: "hello, john" got a response: "hello, bob" diff --git a/examples/topologies/leafnode-jwt/cli/output.cast b/examples/topologies/leafnode-jwt/cli/output.cast index 148aef5c..eb4f217e 100644 --- a/examples/topologies/leafnode-jwt/cli/output.cast +++ b/examples/topologies/leafnode-jwt/cli/output.cast @@ -1,8 +1,36 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648455, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/leafnode-jwt/cli"} -[0.469815, "o", "Network 0b7cc74b_default Creating\r\n"] -[0.494987, "o", "Network 0b7cc74b_default Created\r\n"] -[0.49509, "o", "Container 0b7cc74b-nats-1 Creating\r\n"] -[0.532705, "o", "Container 0b7cc74b-nats-1 Created\r\n"] -[0.533399, "o", "Container 0b7cc74b-nats-1 Starting\r\n"] -[0.629799, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 0b7cc74b-nats-1 (46fb553045c9915d8d1e67638cfa96bb830202241927f3ed1ffbb542e950cf6e): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.773813, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653142, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/leafnode-jwt/cli"} +[1.147531, "o", "+ NATS_MAIN_URL=nats://0.0.0.0:4222\r\n+ NATS_LEAF_URL=nats://0.0.0.0:4223\r\n+ nsc add operator --generate-signing-key --sys --name local\r\n"] +[1.158105, "o", "[ OK ] generated and stored operator key \"OACNKX3BTBGNJZJMOFWUQNSZXNUEDJYHU5TMIB6MHFEREKTWWJBPRSYM\"\r\n[ OK ] added operator \"local\"\r\n[ OK ] When running your own nats-server, make sure they run at least version 2.2.0\r\n[ OK ] created operator signing key: OCIQZF4HFOG4UPDWUXPAAEK7ZF74YO2OBR364JXFM4RTKKTDDONAZGLI\r\n[ OK ] created system_account: name:SYS id:AC7EHSC4YWGU2VNJSBFTWO2QQZFYXYPVA2RW3G5ZLQAXSCEAEESDBXNG\r\n[ OK ] created system account user: name:sys id:UCCYKLEDEBMU3EBNFLG5BIDQFYKFOPJTI6Q45COWSWPLIB4N2HKRGMFW\r\n[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds`\r\n"] +[1.158828, "o", "+ nsc edit operator --require-signing-keys --account-jwt-server-url nats://0.0.0.0:4222\r\n"] +[1.164959, "o", "[ OK ] strict signing key usage set to: true\r\n[ OK ] set account jwt server url to \"nats://0.0.0.0:4222\"\r\n[ OK ] edited operator \"local\"\r\n"] +[1.165349, "o", "+ nsc add account APP\r\n"] +[1.171065, "o", "[ OK ] generated and stored account key \"AAU7IHCFQFI4C4ACZOFAN2HGVVZTY3WQOAVBYIZCYUMEAMQW42OJB44R\"\r\n[ OK ] added account \"APP\"\r\n"] +[1.171748, "o", "+ nsc edit account APP --sk generate\r\n"] +[1.182395, "o", "[ OK ] added signing key \"ACGU6K6VVWGW6RXU7CKFIBWZFXVWP5PSGO277QNAE3TX672OAKHTXWR2\"\r\n[ OK ] edited account \"APP\"\r\n"] +[1.182981, "o", "+ nsc add user --account APP user\r\n"] +[1.189297, "o", "[ OK ] generated and stored user key \"UCABFPW2AJOCASHBEGNF5RLPBAVOMFD2YPXBIMN6F7UKI2JOWUTDKHZD\"\r\n[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/user.creds`\r\n[ OK ] added user \"user\" to account \"APP\"\r\n"] +[1.18978, "o", "+ nsc env\r\n"] +[1.196087, "o", "+----------------------------------------------------------------------------------------------------------+\r\n| NSC Environment |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| Setting | Set | Effective Value |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| $NSC_CWD_ONLY | No | If set, default operator/account from cwd only |\r\n| $NSC_NO_GIT_IGNORE | No | If set, no .gitignore files written |\r\n| $NKEYS_PATH | Yes | /nsc/nkeys |\r\n| $NSC_HOME | No | /nsc/.config/nats/nsc |\r\n| $NATS_CA | No | If se"] +[1.196249, "o", "t, root CAs in the referenced file will be used for nats connections |\r\n| | | If not set, will default to the system trust store |\r\n| $NATS_KEY | No | If set, the tls key in the referenced file will be used for nats connections |\r\n| $NATS_CERT | No | If set, the tls cert in the referenced file will be used for nats connections |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n| From CWD | | No |\r\n| Default Stores Dir | | /nsc/nats/nsc/stores |\r\n| Current Store Dir | | /nsc/nats/nsc/stores |\r\n| Current Operator | | local |\r\n| Current Account | | APP "] +[1.19628, "o", " |\r\n| Root CAs to trust | | Default: System Trust Store |\r\n+--------------------+-----+-------------------------------------------------------------------------------+\r\n\r\n"] +[1.196693, "o", "+ nats context save main-user --server nats://0.0.0.0:4222 --nsc nsc://local/APP/user\r\n"] +[1.226096, "o", "NATS Configuration Context \"main-user\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Credentials: /nsc/nkeys/creds/local/APP/user.creds (OK)\r\n NSC Lookup: nsc://local/APP/user\r\n Path: /nsc/.config/nats/context/main-user.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.227398, "o", "+ nats context save main-sys --server nats://0.0.0.0:4222 --nsc nsc://local/SYS/sys\r\n"] +[1.25087, "o", "NATS Configuration Context \"main-sys\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Credentials: /nsc/nkeys/creds/local/SYS/sys.creds (OK)\r\n NSC Lookup: nsc://local/SYS/sys\r\n Path: /nsc/.config/nats/context/main-sys.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.251942, "o", "+ nats context save leaf-user --server nats://0.0.0.0:4223\r\n"] +[1.270463, "o", "NATS Configuration Context \"leaf-user\"\r\n\r\n Server URLs: nats://0.0.0.0:4223\r\n Path: /nsc/.config/nats/context/leaf-user.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.271243, "o", "+ nsc generate config --nats-resolver --sys-account SYS\r\n"] +[1.278629, "o", "Creating the main server conf...\r\n+ echo 'Creating the main server conf...'\r\n+ cat\r\n"] +[1.280258, "o", "+ echo 'Creating the leaf node conf...'\r\n+ cat\r\nCreating the leaf node conf...\r\n"] +[1.280864, "o", "+ MAIN_PID=93\r\n+ sleep 1\r\n+ nats-server -c main.conf\r\n"] +[2.282722, "o", "+ echo 'Pushing the account JWT...'\r\n+ nsc push -a APP\r\nPushing the account JWT...\r\n"] +[3.291158, "o", "[ OK ] push to nats-server \"nats://0.0.0.0:4222\" using system account \"SYS\":\r\n [ OK ] push APP to nats-server with nats account resolver:\r\n [ OK ] pushed \"APP\" to nats-server NAOVXXWDAQNC2IDHZDBEWXT2TLYNO3YUM6EBNPZ54DUXLLVLENQRKP33: jwt updated\r\n [ OK ] pushed to a total of 1 nats-server\r\n"] +[3.292776, "o", "+ LEAF_PID=109\r\n+ sleep 1\r\n+ nats-server -c leaf.conf\r\n"] +[4.293867, "o", "+ SERVICE_PID=119\r\n+ sleep 1\r\n+ nats --context main-user reply greet hello\r\n"] +[4.321226, "o", "16:32:26 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] +[5.294573, "o", "+ nats --context leaf-user request greet ''\r\n"] +[5.313789, "o", "16:32:27 Sending request on \"greet\"\r\n"] +[5.314161, "o", "\r\n\r\n"] +[5.314264, "o", "16:32:27 [#0] Received on subject \"greet\":\r\n"] +[5.31473, "o", "hello\r\n\r\n16:32:27 Received with rtt 655.5µs\r\n"] +[5.316233, "o", "+ kill 119\r\n+ kill 109\r\n+ kill 93\r\n"] diff --git a/examples/topologies/leafnode-jwt/cli/output.txt b/examples/topologies/leafnode-jwt/cli/output.txt index 35d423c8..29535ea3 100644 --- a/examples/topologies/leafnode-jwt/cli/output.txt +++ b/examples/topologies/leafnode-jwt/cli/output.txt @@ -1,7 +1,107 @@ -Network 0b7cc74b_default Creating -Network 0b7cc74b_default Created -Container 0b7cc74b-nats-1 Creating -Container 0b7cc74b-nats-1 Created -Container 0b7cc74b-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint 0b7cc74b-nats-1 (46fb553045c9915d8d1e67638cfa96bb830202241927f3ed1ffbb542e950cf6e): Bind for 0.0.0.0:18222 failed: port is already allocated -exit status 1 ++ NATS_MAIN_URL=nats://0.0.0.0:4222 ++ NATS_LEAF_URL=nats://0.0.0.0:4223 ++ nsc add operator --generate-signing-key --sys --name local +[ OK ] generated and stored operator key "OACNKX3BTBGNJZJMOFWUQNSZXNUEDJYHU5TMIB6MHFEREKTWWJBPRSYM" +[ OK ] added operator "local" +[ OK ] When running your own nats-server, make sure they run at least version 2.2.0 +[ OK ] created operator signing key: OCIQZF4HFOG4UPDWUXPAAEK7ZF74YO2OBR364JXFM4RTKKTDDONAZGLI +[ OK ] created system_account: name:SYS id:AC7EHSC4YWGU2VNJSBFTWO2QQZFYXYPVA2RW3G5ZLQAXSCEAEESDBXNG +[ OK ] created system account user: name:sys id:UCCYKLEDEBMU3EBNFLG5BIDQFYKFOPJTI6Q45COWSWPLIB4N2HKRGMFW +[ OK ] system account user creds file stored in `/nsc/nkeys/creds/local/SYS/sys.creds` ++ nsc edit operator --require-signing-keys --account-jwt-server-url nats://0.0.0.0:4222 +[ OK ] strict signing key usage set to: true +[ OK ] set account jwt server url to "nats://0.0.0.0:4222" +[ OK ] edited operator "local" ++ nsc add account APP +[ OK ] generated and stored account key "AAU7IHCFQFI4C4ACZOFAN2HGVVZTY3WQOAVBYIZCYUMEAMQW42OJB44R" +[ OK ] added account "APP" ++ nsc edit account APP --sk generate +[ OK ] added signing key "ACGU6K6VVWGW6RXU7CKFIBWZFXVWP5PSGO277QNAE3TX672OAKHTXWR2" +[ OK ] edited account "APP" ++ nsc add user --account APP user +[ OK ] generated and stored user key "UCABFPW2AJOCASHBEGNF5RLPBAVOMFD2YPXBIMN6F7UKI2JOWUTDKHZD" +[ OK ] generated user creds file `/nsc/nkeys/creds/local/APP/user.creds` +[ OK ] added user "user" to account "APP" ++ nsc env ++----------------------------------------------------------------------------------------------------------+ +| NSC Environment | ++--------------------+-----+-------------------------------------------------------------------------------+ +| Setting | Set | Effective Value | ++--------------------+-----+-------------------------------------------------------------------------------+ +| $NSC_CWD_ONLY | No | If set, default operator/account from cwd only | +| $NSC_NO_GIT_IGNORE | No | If set, no .gitignore files written | +| $NKEYS_PATH | Yes | /nsc/nkeys | +| $NSC_HOME | No | /nsc/.config/nats/nsc | +| $NATS_CA | No | If set, root CAs in the referenced file will be used for nats connections | +| | | If not set, will default to the system trust store | +| $NATS_KEY | No | If set, the tls key in the referenced file will be used for nats connections | +| $NATS_CERT | No | If set, the tls cert in the referenced file will be used for nats connections | ++--------------------+-----+-------------------------------------------------------------------------------+ +| From CWD | | No | +| Default Stores Dir | | /nsc/nats/nsc/stores | +| Current Store Dir | | /nsc/nats/nsc/stores | +| Current Operator | | local | +| Current Account | | APP | +| Root CAs to trust | | Default: System Trust Store | ++--------------------+-----+-------------------------------------------------------------------------------+ + ++ nats context save main-user --server nats://0.0.0.0:4222 --nsc nsc://local/APP/user +NATS Configuration Context "main-user" + + Server URLs: nats://0.0.0.0:4222 + Credentials: /nsc/nkeys/creds/local/APP/user.creds (OK) + NSC Lookup: nsc://local/APP/user + Path: /nsc/.config/nats/context/main-user.json + +WARNING: Shell environment overrides in place using NATS_URL ++ nats context save main-sys --server nats://0.0.0.0:4222 --nsc nsc://local/SYS/sys +NATS Configuration Context "main-sys" + + Server URLs: nats://0.0.0.0:4222 + Credentials: /nsc/nkeys/creds/local/SYS/sys.creds (OK) + NSC Lookup: nsc://local/SYS/sys + Path: /nsc/.config/nats/context/main-sys.json + +WARNING: Shell environment overrides in place using NATS_URL ++ nats context save leaf-user --server nats://0.0.0.0:4223 +NATS Configuration Context "leaf-user" + + Server URLs: nats://0.0.0.0:4223 + Path: /nsc/.config/nats/context/leaf-user.json + +WARNING: Shell environment overrides in place using NATS_URL ++ nsc generate config --nats-resolver --sys-account SYS +Creating the main server conf... ++ echo 'Creating the main server conf...' ++ cat ++ echo 'Creating the leaf node conf...' ++ cat +Creating the leaf node conf... ++ MAIN_PID=93 ++ sleep 1 ++ nats-server -c main.conf ++ echo 'Pushing the account JWT...' ++ nsc push -a APP +Pushing the account JWT... +[ OK ] push to nats-server "nats://0.0.0.0:4222" using system account "SYS": + [ OK ] push APP to nats-server with nats account resolver: + [ OK ] pushed "APP" to nats-server NAOVXXWDAQNC2IDHZDBEWXT2TLYNO3YUM6EBNPZ54DUXLLVLENQRKP33: jwt updated + [ OK ] pushed to a total of 1 nats-server ++ LEAF_PID=109 ++ sleep 1 ++ nats-server -c leaf.conf ++ SERVICE_PID=119 ++ sleep 1 ++ nats --context main-user reply greet hello +16:32:26 Listening on "greet" in group "NATS-RPLY-22" ++ nats --context leaf-user request greet '' +16:32:27 Sending request on "greet" + + +16:32:27 [#0] Received on subject "greet": +hello + +16:32:27 Received with rtt 655.5µs ++ kill 119 ++ kill 109 ++ kill 93 diff --git a/examples/topologies/simple-leafnode/cli/output.cast b/examples/topologies/simple-leafnode/cli/output.cast index 91f16422..dcd2b3de 100644 --- a/examples/topologies/simple-leafnode/cli/output.cast +++ b/examples/topologies/simple-leafnode/cli/output.cast @@ -1,8 +1,33 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648451, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/simple-leafnode/cli"} -[0.452739, "o", "Network a2c6eebf_default Creating\r\n"] -[0.476978, "o", "Network a2c6eebf_default Created\r\n"] -[0.477085, "o", "Container a2c6eebf-nats-1 Creating\r\n"] -[0.492064, "o", "Container a2c6eebf-nats-1 Created\r\n"] -[0.492721, "o", "Container a2c6eebf-nats-1 Starting\r\n"] -[0.556532, "o", "Error response from daemon: driver failed programming external connectivity on endpoint a2c6eebf-nats-1 (72a2a0144acf58914632139f7d9d1b6ec6d5c2525f8e3488800da40a03b168ab): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.706268, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653134, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/simple-leafnode/cli"} +[1.571718, "o", "+ NATS_MAIN_URL=nats://0.0.0.0:4222\r\n+ NATS_LEAF_URL=nats://0.0.0.0:4223\r\n+ nats context save main --server nats://0.0.0.0:4222\r\n"] +[1.591561, "o", "NATS Configuration Context \"main\"\r\n\r\n Server URLs: nats://0.0.0.0:4222\r\n Path: /nsc/.config/nats/context/main.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.593237, "o", "+ nats context save leaf --server nats://0.0.0.0:4223\r\n"] +[1.613873, "o", "NATS Configuration Context \"leaf\"\r\n\r\n Server URLs: nats://0.0.0.0:4223\r\n Path: /nsc/.config/nats/context/leaf.json\r\n\r\nWARNING: Shell environment overrides in place using NATS_URL\r\n"] +[1.615023, "o", "+ echo 'Creating the main server conf...'\r\n+ cat\r\nCreating the main server conf...\r\n"] +[1.615709, "o", "Creating the leaf node conf...\r\n+ echo 'Creating the leaf node conf...'\r\n+ cat\r\n"] +[1.616379, "o", "+ MAIN_PID=31\r\n+ sleep 1\r\n"] +[1.616481, "o", "+ nats-server -c main.conf\r\n"] +[2.617508, "o", "+ + nats-server -c LEAF_PID=41\r\nleaf.conf\r\n+ sleep 1\r\n"] +[3.619675, "o", "+ SERVICE_PID=51\r\n+ + nats sleep --context 1\r\nmain reply greet 'hello from main'\r\n"] +[3.639653, "o", "16:32:17 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] +[4.620481, "o", "+ nats --context leaf request greet ''\r\n"] +[4.642481, "o", "16:32:18 Sending request on \"greet\"\r\n"] +[4.642668, "o", "16:32:18 [#0] Received on subject \"greet\":\r\n\r\n\r\n"] +[4.642819, "o", "hello from main\r\n\r\n16:32:18 Received with rtt 268.509µs\r\n"] +[4.64433, "o", "+ SERVICE2_PID=74\r\n+ nats --context leaf request greet ''\r\n+ nats --context leaf reply greet 'hello from leaf'\r\n"] +[4.672242, "o", "16:32:18 Sending request on \"greet\"\r\n"] +[4.672737, "o", "\r\n\r\nhello from main\r\n\r\n16:32:18 [#1] Received on subject \"greet\":\r\n16:32:18 Received with rtt 287.714µs\r\n"] +[4.674677, "o", "+ nats --context leaf request greet ''\r\n"] +[4.680281, "o", "16:32:18 Listening on \"greet\" in group \"NATS-RPLY-22\"\r\n"] +[4.705834, "o", "16:32:18 Sending request on \"greet\"\r\n"] +[4.706156, "o", "16:32:18 [#2] Received on subject \"greet\":\r\n\r\n\r\n"] +[4.706402, "o", "hello from main\r\n\r\n16:32:18 Received with rtt 402.772µs\r\n"] +[4.707935, "o", "+ nats --context leaf request greet ''\r\n"] +[4.734598, "o", "16:32:18 Sending request on \"greet\"\r\n"] +[4.734864, "o", "\r\n\r\n16:32:18 [#0] Received on subject \"greet\":\r\n"] +[4.735104, "o", "16:32:18 Received with rtt 337.057µs\r\nhello from leaf\r\n\r\n"] +[4.739432, "o", "+ kill 74\r\n+ nats --context leaf request greet ''\r\n"] +[4.764605, "o", "16:32:18 Sending request on \"greet\"\r\n"] +[4.764882, "o", "16:32:18 [#3] Received on subject \"greet\":\r\n\r\n\r\n"] +[4.765216, "o", "16:32:18 Received with rtt 407.417µs\r\nhello from main\r\n\r\n"] +[4.766406, "o", "+ kill 51\r\n+ kill 41\r\n+ kill 31\r\n"] diff --git a/examples/topologies/simple-leafnode/cli/output.txt b/examples/topologies/simple-leafnode/cli/output.txt index 8059b77c..45b9d774 100644 --- a/examples/topologies/simple-leafnode/cli/output.txt +++ b/examples/topologies/simple-leafnode/cli/output.txt @@ -1,7 +1,79 @@ -Network a2c6eebf_default Creating -Network a2c6eebf_default Created -Container a2c6eebf-nats-1 Creating -Container a2c6eebf-nats-1 Created -Container a2c6eebf-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint a2c6eebf-nats-1 (72a2a0144acf58914632139f7d9d1b6ec6d5c2525f8e3488800da40a03b168ab): Bind for 0.0.0.0:18222 failed: port is already allocated -exit status 1 ++ NATS_MAIN_URL=nats://0.0.0.0:4222 ++ NATS_LEAF_URL=nats://0.0.0.0:4223 ++ nats context save main --server nats://0.0.0.0:4222 +NATS Configuration Context "main" + + Server URLs: nats://0.0.0.0:4222 + Path: /nsc/.config/nats/context/main.json + +WARNING: Shell environment overrides in place using NATS_URL ++ nats context save leaf --server nats://0.0.0.0:4223 +NATS Configuration Context "leaf" + + Server URLs: nats://0.0.0.0:4223 + Path: /nsc/.config/nats/context/leaf.json + +WARNING: Shell environment overrides in place using NATS_URL ++ echo 'Creating the main server conf...' ++ cat +Creating the main server conf... +Creating the leaf node conf... ++ echo 'Creating the leaf node conf...' ++ cat ++ MAIN_PID=31 ++ sleep 1 ++ nats-server -c main.conf ++ + nats-server -c LEAF_PID=41 +leaf.conf ++ sleep 1 ++ SERVICE_PID=51 ++ + nats sleep --context 1 +main reply greet 'hello from main' +16:32:17 Listening on "greet" in group "NATS-RPLY-22" ++ nats --context leaf request greet '' +16:32:18 Sending request on "greet" +16:32:18 [#0] Received on subject "greet": + + +hello from main + +16:32:18 Received with rtt 268.509µs ++ SERVICE2_PID=74 ++ nats --context leaf request greet '' ++ nats --context leaf reply greet 'hello from leaf' +16:32:18 Sending request on "greet" + + +hello from main + +16:32:18 [#1] Received on subject "greet": +16:32:18 Received with rtt 287.714µs ++ nats --context leaf request greet '' +16:32:18 Listening on "greet" in group "NATS-RPLY-22" +16:32:18 Sending request on "greet" +16:32:18 [#2] Received on subject "greet": + + +hello from main + +16:32:18 Received with rtt 402.772µs ++ nats --context leaf request greet '' +16:32:18 Sending request on "greet" + + +16:32:18 [#0] Received on subject "greet": +16:32:18 Received with rtt 337.057µs +hello from leaf + ++ kill 74 ++ nats --context leaf request greet '' +16:32:18 Sending request on "greet" +16:32:18 [#3] Received on subject "greet": + + +16:32:18 Received with rtt 407.417µs +hello from main + ++ kill 51 ++ kill 41 ++ kill 31 diff --git a/examples/topologies/supercluster-arbiter/cli/output.cast b/examples/topologies/supercluster-arbiter/cli/output.cast index 251e3b8b..7fe2748d 100644 --- a/examples/topologies/supercluster-arbiter/cli/output.cast +++ b/examples/topologies/supercluster-arbiter/cli/output.cast @@ -1,8 +1,3 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648467, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-arbiter/cli"} -[0.446493, "o", "Network 31fb0d7e_default Creating\r\n"] -[0.469073, "o", "Network 31fb0d7e_default Created\r\n"] -[0.469213, "o", "Container 31fb0d7e-nats-1 Creating\r\n"] -[0.516706, "o", "Container 31fb0d7e-nats-1 Created\r\n"] -[0.517584, "o", "Container 31fb0d7e-nats-1 Starting\r\n"] -[0.606434, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 31fb0d7e-nats-1 (cff794c45b734caa55d97520334e7e5a88717570e10fb854104c8621980e656a): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.751356, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653167, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-arbiter/cli"} +[1.274671, "o", "Starting the servers...\r\n"] +[9.788068, "o", "exit status 22\r\n"] diff --git a/examples/topologies/supercluster-arbiter/cli/output.txt b/examples/topologies/supercluster-arbiter/cli/output.txt index 108785af..26702ea9 100644 --- a/examples/topologies/supercluster-arbiter/cli/output.txt +++ b/examples/topologies/supercluster-arbiter/cli/output.txt @@ -1,7 +1,2 @@ -Network 31fb0d7e_default Creating -Network 31fb0d7e_default Created -Container 31fb0d7e-nats-1 Creating -Container 31fb0d7e-nats-1 Created -Container 31fb0d7e-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint 31fb0d7e-nats-1 (cff794c45b734caa55d97520334e7e5a88717570e10fb854104c8621980e656a): Bind for 0.0.0.0:18222 failed: port is already allocated -exit status 1 +Starting the servers... +exit status 22 diff --git a/examples/topologies/supercluster-jetstream/cli/output.cast b/examples/topologies/supercluster-jetstream/cli/output.cast index ad2d9ba1..6066dcfb 100644 --- a/examples/topologies/supercluster-jetstream/cli/output.cast +++ b/examples/topologies/supercluster-jetstream/cli/output.cast @@ -1,8 +1,3 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648463, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-jetstream/cli"} -[0.450941, "o", "Network bda190e0_default Creating\r\n"] -[0.483303, "o", "Network bda190e0_default Created\r\n"] -[0.48343, "o", "Container bda190e0-nats-1 Creating\r\n"] -[0.498887, "o", "Container bda190e0-nats-1 Created\r\n"] -[0.499993, "o", "Container bda190e0-nats-1 Starting\r\n"] -[0.576845, "o", "Error response from daemon: driver failed programming external connectivity on endpoint bda190e0-nats-1 (47b0459bafa010489da9736e200d4983d032f20d55d9fe443216d11851b7d7de): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.741424, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653159, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: topologies/supercluster-jetstream/cli"} +[4.209836, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[4.726645, "o", "exit status 1\r\n"] diff --git a/examples/topologies/supercluster-jetstream/cli/output.txt b/examples/topologies/supercluster-jetstream/cli/output.txt index 752f51b5..aba1a8ba 100644 --- a/examples/topologies/supercluster-jetstream/cli/output.txt +++ b/examples/topologies/supercluster-jetstream/cli/output.txt @@ -1,7 +1,2 @@ -Network bda190e0_default Creating -Network bda190e0_default Created -Container bda190e0-nats-1 Creating -Container bda190e0-nats-1 Created -Container bda190e0-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint bda190e0-nats-1 (47b0459bafa010489da9736e200d4983d032f20d55d9fe443216d11851b7d7de): Bind for 0.0.0.0:18222 failed: port is already allocated +nats: error: no results received, ensure the account used has system privileges and appropriate permissions exit status 1 diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.cast b/examples/use-cases/cross-region-streams-cluster/cli/output.cast index 328ff836..e1404974 100644 --- a/examples/use-cases/cross-region-streams-cluster/cli/output.cast +++ b/examples/use-cases/cross-region-streams-cluster/cli/output.cast @@ -1,8 +1,15 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648486, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-cluster/cli"} -[0.519618, "o", "Network e48ee9a3_default Creating\r\n"] -[0.544137, "o", "Network e48ee9a3_default Created\r\n"] -[0.544278, "o", "Container e48ee9a3-nats-1 Creating\r\n"] -[0.559691, "o", "Container e48ee9a3-nats-1 Created\r\n"] -[0.560664, "o", "Container e48ee9a3-nats-1 Starting\r\n"] -[0.62888, "o", "Error response from daemon: driver failed programming external connectivity on endpoint e48ee9a3-nats-1 (a6c18327a36da708d0e26678b27e023dd13386c638c031d4dd2c968fe67d1b97): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.805042, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653229, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-cluster/cli"} +[1.198751, "o", "Starting server rg1-az1\r\n"] +[2.199644, "o", "Starting server rg1-az2\r\n"] +[3.200726, "o", "Starting server rg1-az3\r\n"] +[4.201688, "o", "Starting server rg2-az1\r\n"] +[5.202691, "o", "Starting server rg2-az2\r\n"] +[6.20338, "o", "Starting server rg2-az3\r\n"] +[7.204145, "o", "Starting server rg3-az1\r\n"] +[8.205165, "o", "Starting server rg3-az2\r\n"] +[9.206583, "o", "Starting server rg3-az3\r\n"] +[10.207806, "o", "Healthy?\r\n"] +[10.210298, "o", "{\"status\":\"ok\"}"] +[10.210736, "o", "\r\n"] +[10.232065, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[10.701669, "o", "exit status 1\r\n"] diff --git a/examples/use-cases/cross-region-streams-cluster/cli/output.txt b/examples/use-cases/cross-region-streams-cluster/cli/output.txt index 882d31ce..a48568dd 100644 --- a/examples/use-cases/cross-region-streams-cluster/cli/output.txt +++ b/examples/use-cases/cross-region-streams-cluster/cli/output.txt @@ -1,7 +1,13 @@ -Network e48ee9a3_default Creating -Network e48ee9a3_default Created -Container e48ee9a3-nats-1 Creating -Container e48ee9a3-nats-1 Created -Container e48ee9a3-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint e48ee9a3-nats-1 (a6c18327a36da708d0e26678b27e023dd13386c638c031d4dd2c968fe67d1b97): Bind for 0.0.0.0:18222 failed: port is already allocated +Starting server rg1-az1 +Starting server rg1-az2 +Starting server rg1-az3 +Starting server rg2-az1 +Starting server rg2-az2 +Starting server rg2-az3 +Starting server rg3-az1 +Starting server rg3-az2 +Starting server rg3-az3 +Healthy? +{"status":"ok"} +nats: error: no results received, ensure the account used has system privileges and appropriate permissions exit status 1 diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.cast b/examples/use-cases/cross-region-streams-supercluster/cli/output.cast index 87db7ac6..46286bae 100644 --- a/examples/use-cases/cross-region-streams-supercluster/cli/output.cast +++ b/examples/use-cases/cross-region-streams-supercluster/cli/output.cast @@ -1,8 +1,26 @@ -{"version": 2, "width": 92, "height": 58, "timestamp": 1669648483, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-supercluster/cli"} -[0.501577, "o", "Network 91393348_default Creating\r\n"] -[0.52479, "o", "Network 91393348_default Created\r\n"] -[0.524888, "o", "Container 91393348-nats-1 Creating\r\n"] -[0.539238, "o", "Container 91393348-nats-1 Created\r\n"] -[0.539927, "o", "Container 91393348-nats-1 Starting\r\n"] -[0.609323, "o", "Error response from daemon: driver failed programming external connectivity on endpoint 91393348-nats-1 (dbf9869d7f947445f701fe65dac7aad75eba822984469dd50723f0fc9bd47f3c): Bind for 0.0.0.0:18222 failed: port is already allocated\r\n"] -[0.735127, "o", "exit status 1\r\n"] +{"version": 2, "width": 92, "height": 58, "timestamp": 1669653209, "env": {"SHELL": "/bin/bash", "TERM": "xterm-color"}, "title": "NATS by Example: use-cases/cross-region-streams-supercluster/cli"} +[1.243015, "o", "Starting server rg1-az1-x"] +[1.243637, "o", "\r\n"] +[2.24536, "o", "Starting server rg1-az1\r\n"] +[3.246845, "o", "Starting server rg1-az2\r\n"] +[4.248156, "o", "Starting server rg1-az3\r\n"] +[5.24998, "o", "Starting server rg2-az1\r\n"] +[6.250974, "o", "Starting server rg2-az2-x\r\n"] +[7.252379, "o", "Starting server rg2-az2\r\n"] +[8.253454, "o", "Starting server rg2-az3\r\n"] +[9.254825, "o", "Starting server rg3-az1\r\n"] +[10.256315, "o", "Starting server rg3-az2\r\n"] +[11.257453, "o", "Starting server rg3-az3-x\r\n"] +[12.25844, "o", "Starting server rg3-az3\r\n"] +[13.260767, "o", "Cluster 1 healthy?\r\n"] +[16.286683, "o", "{\"status\":\"ok\"}"] +[16.287523, "o", "\r\nCluster 2 healthy?\r\n"] +[16.292071, "o", "{\"status\":\"ok\"}"] +[16.292365, "o", "\r\n"] +[16.292499, "o", "Cluster 3 healthy?\r\n"] +[16.297225, "o", "{\"status\":\"ok\"}"] +[16.297927, "o", "\r\nCluster 4 healthy?\r\n"] +[16.300226, "o", "{\"status\":\"ok\"}"] +[16.300568, "o", "\r\n"] +[16.333002, "o", "nats: error: no results received, ensure the account used has system privileges and appropriate permissions\r\n"] +[16.80061, "o", "exit status 1\r\n"] diff --git a/examples/use-cases/cross-region-streams-supercluster/cli/output.txt b/examples/use-cases/cross-region-streams-supercluster/cli/output.txt index 9552c746..f01c615b 100644 --- a/examples/use-cases/cross-region-streams-supercluster/cli/output.txt +++ b/examples/use-cases/cross-region-streams-supercluster/cli/output.txt @@ -1,7 +1,22 @@ -Network 91393348_default Creating -Network 91393348_default Created -Container 91393348-nats-1 Creating -Container 91393348-nats-1 Created -Container 91393348-nats-1 Starting -Error response from daemon: driver failed programming external connectivity on endpoint 91393348-nats-1 (dbf9869d7f947445f701fe65dac7aad75eba822984469dd50723f0fc9bd47f3c): Bind for 0.0.0.0:18222 failed: port is already allocated +Starting server rg1-az1-x +Starting server rg1-az1 +Starting server rg1-az2 +Starting server rg1-az3 +Starting server rg2-az1 +Starting server rg2-az2-x +Starting server rg2-az2 +Starting server rg2-az3 +Starting server rg3-az1 +Starting server rg3-az2 +Starting server rg3-az3-x +Starting server rg3-az3 +Cluster 1 healthy? +{"status":"ok"} +Cluster 2 healthy? +{"status":"ok"} +Cluster 3 healthy? +{"status":"ok"} +Cluster 4 healthy? +{"status":"ok"} +nats: error: no results received, ensure the account used has system privileges and appropriate permissions exit status 1 From e0289467eef135a7f1bd04937b16735ba2f964b6 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Wed, 30 Nov 2022 09:03:59 -0500 Subject: [PATCH 08/11] Add example for cross-leaf mirror Signed-off-by: Byron Ruth --- .../use-cases/cross-leaf-mirror/cli/main.sh | 484 ++++++++++++++++++ .../use-cases/cross-leaf-mirror/meta.yaml | 3 + 2 files changed, 487 insertions(+) create mode 100644 examples/use-cases/cross-leaf-mirror/cli/main.sh create mode 100644 examples/use-cases/cross-leaf-mirror/meta.yaml diff --git a/examples/use-cases/cross-leaf-mirror/cli/main.sh b/examples/use-cases/cross-leaf-mirror/cli/main.sh new file mode 100644 index 00000000..bc35e857 --- /dev/null +++ b/examples/use-cases/cross-leaf-mirror/cli/main.sh @@ -0,0 +1,484 @@ +#!/bin/bash + +#set -euo pipefail + +unset NATS_URL + +# Create the operator, generate a signing key (which is a best practice), +# and initialize the default SYS account and sys user. +nsc add operator --generate-signing-key --sys --name local + +# A follow-up edit of the operator enforces signing keys are used for +# accounts as well. Setting the server URL is a convenience so that +# it does not need to be specified with call `nsc push`. +nsc edit operator --require-signing-keys \ + --account-jwt-server-url "nats://127.0.0.1:4222" + +# This command generates the bit of configuration to be used by the server +# to setup the embedded JWT resolver. +nsc generate config --nats-resolver --sys-account SYS > resolver.conf + +cat <<- EOF > hub-shared.conf +jetstream: { + domain: hub +} +include resolver.conf +EOF + +cat <<- EOF > gateway-routes.conf +gateways: [ + {name: east, urls: [ + nats://localhost:7222, + nats://localhost:7223, + nats://localhost:7224, + ]}, + {name: west, urls: [ + nats://localhost:7225, + nats://localhost:7226, + nats://localhost:7227, + ]}, + {name: central, urls: [ + nats://localhost:7228, + nats://localhost:7229, + nats://localhost:7230, + ]}, +] +EOF + +# Define the server configs for region 1 cluster. +cat <<- EOF > "east-az1.conf" +server_name: east-az1 +port: 4222 +http_port: 8222 +include hub-shared.conf +cluster: { + name: east + port: 6222 + routes: [ + nats-route://127.0.0.1:6222, + nats-route://127.0.0.1:6223, + nats-route://127.0.0.1:6224, + ] +} +gateway { + name: east + port: 7222 + include gateway-routes.conf +} +leafnodes { + port: 7422 +} +EOF + +cat <<- EOF > "east-az2.conf" +server_name: east-az2 +port: 4223 +include hub-shared.conf +cluster: { + name: east + port: 6223 + routes: [ + nats-route://127.0.0.1:6222, + nats-route://127.0.0.1:6223, + nats-route://127.0.0.1:6224, + ] +} +gateway { + name: east + port: 7223 + include gateway-routes.conf +} +leafnodes { + port: 7423 +} +EOF + +cat <<- EOF > "east-az3.conf" +server_name: east-az3 +port: 4224 +include hub-shared.conf +cluster: { + name: east + port: 6224 + routes: [ + nats-route://127.0.0.1:6222, + nats-route://127.0.0.1:6223, + nats-route://127.0.0.1:6224, + ] +} +gateway { + name: east + port: 7224 + include gateway-routes.conf +} +leafnodes { + port: 7424 +} +EOF + +# Server configs for region 2 cluster. +cat <<- EOF > "west-az1.conf" +server_name: west-az1 +port: 4225 +http_port: 8223 +include hub-shared.conf +cluster: { + name: west + port: 6225 + routes: [ + nats-route://127.0.0.1:6225, + nats-route://127.0.0.1:6226, + nats-route://127.0.0.1:6227, + ] +} +gateway { + name: west + port: 7225 + include gateway-routes.conf +} +leafnodes { + port: 7425 +} +EOF + +cat <<- EOF > "west-az2.conf" +server_name: west-az2 +port: 4226 +include hub-shared.conf +cluster: { + name: west + port: 6226 + routes: [ + nats-route://127.0.0.1:6225, + nats-route://127.0.0.1:6226, + nats-route://127.0.0.1:6227, + ] +} +gateway { + name: west + port: 7226 + include gateway-routes.conf +} +leafnodes { + port: 7426 +} +EOF + +cat <<- EOF > "west-az3.conf" +server_name: west-az3 +port: 4227 +include hub-shared.conf +cluster: { + name: west + port: 6227 + routes: [ + nats-route://127.0.0.1:6225, + nats-route://127.0.0.1:6226, + nats-route://127.0.0.1:6227, + ] +} +gateway { + name: west + port: 7227 + include gateway-routes.conf +} +leafnodes { + port: 7427 +} +EOF + +# Server configs for region 3 cluster. +cat <<- EOF > "central-az1.conf" +server_name: central-az1 +port: 4228 +http_port: 8224 +include hub-shared.conf +cluster: { + name: central + port: 6228 + routes: [ + nats-route://127.0.0.1:6228, + nats-route://127.0.0.1:6229, + nats-route://127.0.0.1:6230, + ] +} +gateway { + name: central + port: 7228 + include gateway-routes.conf +} +leafnodes { + port: 7428 +} +EOF + +cat <<- EOF > "central-az2.conf" +server_name: central-az2 +port: 4229 +include hub-shared.conf +cluster: { + name: central + port: 6229 + routes: [ + nats-route://127.0.0.1:6228, + nats-route://127.0.0.1:6229, + nats-route://127.0.0.1:6230, + ] +} +gateway { + name: central + port: 7229 + include gateway-routes.conf +} +leafnodes { + port: 7429 +} +EOF + +cat <<- EOF > "central-az3.conf" +server_name: central-az3 +port: 4230 +include hub-shared.conf +cluster: { + name: central + port: 6230 + routes: [ + nats-route://127.0.0.1:6228, + nats-route://127.0.0.1:6229, + nats-route://127.0.0.1:6230, + ] +} +gateway { + name: central + port: 7230 + include gateway-routes.conf +} +leafnodes { + port: 7430 +} +EOF + +cat <<- EOF > "central-az3.conf" +server_name: central-az3 +port: 4230 +include hub-shared.conf +cluster: { + name: central + port: 6230 + routes: [ + nats-route://127.0.0.1:6228, + nats-route://127.0.0.1:6229, + nats-route://127.0.0.1:6230, + ] +} +gateway { + name: central + port: 7230 + include gateway-routes.conf +} +leafnodes { + port: 7431 +} +EOF + +# Start a server for each configuration and sleep a second in +# between so the seeds can startup and get healthy. +for c in $(ls *-az*.conf); do + echo "Starting.. $c" + nats-server -c $c > /dev/null 2>&1 & + sleep 1 +done + +# Wait until the servers up and healthy. +echo 'East cluster healthy?' +curl --fail --silent \ + --retry 5 \ + --retry-delay 1 \ + http://localhost:8222/healthz; echo + +echo 'West cluster healthy?' +curl --fail --silent \ + --retry 5 \ + --retry-delay 1 \ + http://localhost:8223/healthz; echo + +echo 'Central cluster healthy?' +curl --fail --silent \ + --retry 5 \ + --retry-delay 1 \ + http://localhost:8224/healthz; echo + +# ### Setup APP account +# +# Next we need to create an account intended for application usage. It is +# currently a two-step process to create the account, followed by +# generating the signing key and setting JetStream limits (default is disabled). +nsc add account APP +nsc edit account APP \ + --sk generate \ + --js-disk-storage -1 \ + --js-mem-storage -1 + + +# Push to the cluster. +nsc push -a APP + +# ### Setup users for leaf connections + +# The `leaf-east` user has restricted permissions to allow for mirrors +# of the "events" stream to be created. The sub is required since +# creating a stream with a mirror internally sends a "create consumer" +# request which needs to traverse the leaf node. The `$JS.M.*` pub +# permission is required since this this is the default "deliver subject" +# structure for mirrors. A concrete subject may look like this `$JS.M.iRg4nabNe`. +# There is an option to override the deliver prefix in the mirror config +# to have more control over permissions. The `_GR_.>` pub permission is the +# standard reply subject across gateways(?). +nsc add user --account APP leaf-east \ + --allow-sub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ + --allow-pub '$JS.M.*' \ + --allow-pub '_GR_.>' + +# The `leaf-west` user needs to be able to create a consumer (implicitly) +# when the local stream mirror is setup and subscribe to the deliver subject +# `$JS.M.*`. The `$JSC.R.*` subject is the default reply subject(?). +nsc add user --account APP leaf-west \ + --allow-pub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ + --allow-sub '$JS.M.*' \ + --allow-sub '$JSC.R.*' + +# ### Create the leaf configurations +# +# The leafs do not have their own authentication nor +# do they extend the operator of the hub. + +cat <<- EOF > "leaf-east.conf" +server_name: leaf-east +port: 4231 +jetstream: { + domain: leaf-east + store_dir: /tmp/leaf-east +} +leafnodes { + remotes: [ + { + urls: [ + "nats-leaf://127.0.0.1:7422" + "nats-leaf://127.0.0.1:7423" + "nats-leaf://127.0.0.1:7424" + ] + credentials: "/nsc/nkeys/creds/local/APP/leaf-east.creds" + } + ] +} +EOF + +cat <<- EOF > "leaf-west.conf" +server_name: leaf-west +port: 4232 +jetstream: { + domain: leaf-west + store_dir: /tmp/leaf-west +} +leafnodes { + remotes: [ + { + urls: [ + "nats-leaf://127.0.0.1:7425" + "nats-leaf://127.0.0.1:7426" + "nats-leaf://127.0.0.1:7427" + ] + credentials: "/nsc/nkeys/creds/local/APP/leaf-west.creds" + } + ] +} +EOF + +# Startup leaf nodes. +nats-server -DV -c leaf-east.conf > /dev/null 2>&1 & +nats-server -DV -c leaf-west.conf > /dev/null 2>&1 & + +sleep 1 + +# ### Setup leaf contexts +# +# Save a context for the east and west leaf node. Notice there +# are no permissions setup since the leaf nodes do not require +# any local authentication. +nats context save leaf-east \ + --server 'nats://127.0.0.1:4231' + +nats context save leaf-west \ + --server 'nats://127.0.0.1:4232' + +# Next we create the origin stream in the "east" leaf node. +cat <<- EOF > leaf-east-origin.json +{ + "name": "events", + "subjects": [ + "events.*" + ], + "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, + "sealed": false, + "deny_delete": false, + "deny_purge": false, + "allow_rollup_hdrs": false, + "allow_direct": false, + "mirror_direct": false +} +EOF + +nats --context leaf-east stream add \ + --config leaf-east-origin.json + +# Now we can create the mirror in the west leaf node. +cat <<- EOF > leaf-west-mirror.json +{ + "name": "events", + "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, + "mirror": { + "name": "events", + "external": { + "api": "\$JS.leaf-east.API", + "deliver": "" + } + }, + "sealed": false, + "deny_delete": false, + "deny_purge": false, + "allow_rollup_hdrs": false, + "allow_direct": false, + "mirror_direct": false +} +EOF + +nats --context leaf-west stream add \ + --config leaf-west-mirror.json + +# Publish a few events to the origin stream in east. +nats --context leaf-east req 'events.1' '' +nats --context leaf-east req 'events.2' '' +nats --context leaf-east req 'events.3' '' + +# List the streams in both east and west to observe the state. +nats --context leaf-east stream list +nats --context leaf-west stream list diff --git a/examples/use-cases/cross-leaf-mirror/meta.yaml b/examples/use-cases/cross-leaf-mirror/meta.yaml new file mode 100644 index 00000000..cbd1bc9d --- /dev/null +++ b/examples/use-cases/cross-leaf-mirror/meta.yaml @@ -0,0 +1,3 @@ +title: Cross-leaf mirror +description: |- + From 44876075c16137157c6e97460d848b1db3f3435c Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Wed, 30 Nov 2022 11:09:16 -0500 Subject: [PATCH 09/11] Add more comments Signed-off-by: Byron Ruth --- .../use-cases/cross-leaf-mirror/cli/main.sh | 60 ++++++++----------- 1 file changed, 24 insertions(+), 36 deletions(-) diff --git a/examples/use-cases/cross-leaf-mirror/cli/main.sh b/examples/use-cases/cross-leaf-mirror/cli/main.sh index bc35e857..adc405dc 100644 --- a/examples/use-cases/cross-leaf-mirror/cli/main.sh +++ b/examples/use-cases/cross-leaf-mirror/cli/main.sh @@ -1,9 +1,11 @@ #!/bin/bash -#set -euo pipefail +set -euo pipefail unset NATS_URL +# ### Bootstrap the operator + # Create the operator, generate a signing key (which is a best practice), # and initialize the default SYS account and sys user. nsc add operator --generate-signing-key --sys --name local @@ -18,6 +20,11 @@ nsc edit operator --require-signing-keys \ # to setup the embedded JWT resolver. nsc generate config --nats-resolver --sys-account SYS > resolver.conf +# ### Server configs for supercluster +# +# This emulates a supercluster consisting of three clusters with +# three nodes each. + cat <<- EOF > hub-shared.conf jetstream: { domain: hub @@ -45,7 +52,7 @@ gateways: [ ] EOF -# Define the server configs for region 1 cluster. +# Define the server configs for east cluster. cat <<- EOF > "east-az1.conf" server_name: east-az1 port: 4222 @@ -116,7 +123,7 @@ leafnodes { } EOF -# Server configs for region 2 cluster. +# Server configs for west cluster. cat <<- EOF > "west-az1.conf" server_name: west-az1 port: 4225 @@ -187,7 +194,7 @@ leafnodes { } EOF -# Server configs for region 3 cluster. +# Server configs for central cluster. cat <<- EOF > "central-az1.conf" server_name: central-az1 port: 4228 @@ -258,28 +265,7 @@ leafnodes { } EOF -cat <<- EOF > "central-az3.conf" -server_name: central-az3 -port: 4230 -include hub-shared.conf -cluster: { - name: central - port: 6230 - routes: [ - nats-route://127.0.0.1:6228, - nats-route://127.0.0.1:6229, - nats-route://127.0.0.1:6230, - ] -} -gateway { - name: central - port: 7230 - include gateway-routes.conf -} -leafnodes { - port: 7431 -} -EOF +# ### Bring up the supercluster # Start a server for each configuration and sleep a second in # between so the seeds can startup and get healthy. @@ -319,7 +305,6 @@ nsc edit account APP \ --js-disk-storage -1 \ --js-mem-storage -1 - # Push to the cluster. nsc push -a APP @@ -328,30 +313,33 @@ nsc push -a APP # The `leaf-east` user has restricted permissions to allow for mirrors # of the "events" stream to be created. The sub is required since # creating a stream with a mirror internally sends a "create consumer" -# request which needs to traverse the leaf node. The `$JS.M.*` pub -# permission is required since this this is the default "deliver subject" -# structure for mirrors. A concrete subject may look like this `$JS.M.iRg4nabNe`. -# There is an option to override the deliver prefix in the mirror config -# to have more control over permissions. The `_GR_.>` pub permission is the -# standard reply subject across gateways(?). +# request which needs to traverse the leaf node. The two forms account for +# the non-filtered and filtered forms. +# The `$JS.M.*` pub permission is required since this this is the default +# "deliver subject" structure for mirrors. A concrete subject may look like +# this `$JS.M.iRg4nabNe`. There is an option to override the deliver prefix +# in the mirror config to have more control over permissions. +# The `_GR_.>` pub permission is the standard reply subject across gateways. nsc add user --account APP leaf-east \ --allow-sub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ + --allow-sub '$JS.leaf-east.API.CONSUMER.CREATE.events.>' \ --allow-pub '$JS.M.*' \ --allow-pub '_GR_.>' # The `leaf-west` user needs to be able to create a consumer (implicitly) # when the local stream mirror is setup and subscribe to the deliver subject -# `$JS.M.*`. The `$JSC.R.*` subject is the default reply subject(?). +# `$JS.M.*`. The `$JSC.R.*` subject is the default reply subject between a +# leaf node to a cluster. nsc add user --account APP leaf-west \ --allow-pub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ + --allow-pub '$JS.leaf-east.API.CONSUMER.CREATE.events.>' \ --allow-sub '$JS.M.*' \ --allow-sub '$JSC.R.*' # ### Create the leaf configurations -# + # The leafs do not have their own authentication nor # do they extend the operator of the hub. - cat <<- EOF > "leaf-east.conf" server_name: leaf-east port: 4231 From 39a4509a337423d86258bdc25be90c6dcf954b3c Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Mon, 5 Dec 2022 09:16:37 -0500 Subject: [PATCH 10/11] Update to include request-reply example Signed-off-by: Byron Ruth --- .../use-cases/cross-leaf-mirror/cli/main.sh | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/examples/use-cases/cross-leaf-mirror/cli/main.sh b/examples/use-cases/cross-leaf-mirror/cli/main.sh index adc405dc..ee813c9f 100644 --- a/examples/use-cases/cross-leaf-mirror/cli/main.sh +++ b/examples/use-cases/cross-leaf-mirror/cli/main.sh @@ -323,8 +323,10 @@ nsc push -a APP nsc add user --account APP leaf-east \ --allow-sub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ --allow-sub '$JS.leaf-east.API.CONSUMER.CREATE.events.>' \ - --allow-pub '$JS.M.*' \ - --allow-pub '_GR_.>' + --allow-sub 'leaf-east.>' \ + --allow-pub 'leaf-west.events.M.*' \ + --allow-pub '_GR_.>' \ + --allow-pub '_INBOX_west.>' # The `leaf-west` user needs to be able to create a consumer (implicitly) # when the local stream mirror is setup and subscribe to the deliver subject @@ -333,7 +335,9 @@ nsc add user --account APP leaf-east \ nsc add user --account APP leaf-west \ --allow-pub '$JS.leaf-east.API.CONSUMER.CREATE.events' \ --allow-pub '$JS.leaf-east.API.CONSUMER.CREATE.events.>' \ - --allow-sub '$JS.M.*' \ + --allow-pub 'leaf-east.hello' \ + --allow-sub '_INBOX_west.>' \ + --allow-sub 'leaf-west.events.M.*' \ --allow-sub '$JSC.R.*' # ### Create the leaf configurations @@ -447,7 +451,7 @@ cat <<- EOF > leaf-west-mirror.json "name": "events", "external": { "api": "\$JS.leaf-east.API", - "deliver": "" + "deliver": "leaf-west.events" } }, "sealed": false, @@ -470,3 +474,16 @@ nats --context leaf-east req 'events.3' '' # List the streams in both east and west to observe the state. nats --context leaf-east stream list nats --context leaf-west stream list + +# Start up a reply service in east. +nats --context leaf-east reply \ + leaf-east.hello 'hello from leaf-east' & +sleep 1 + +# Send a request to the `leaf-east.hello` subject +# that only exists in the leaf-east. This also uses an +# inbox-prefix so the pub permission in east can be constrained. +nats --context leaf-west \ + --inbox-prefix _INBOX_west \ + request leaf-east.hello \ + 'hi from leaf-west!' From 3332d45763c4b187017f0bdb9395a85b2fcf9595 Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Wed, 14 Dec 2022 12:56:19 -0500 Subject: [PATCH 11/11] Add example of auth error for creds after import Signed-off-by: Byron Ruth --- examples/auth/import-user/cli/main.sh | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 examples/auth/import-user/cli/main.sh diff --git a/examples/auth/import-user/cli/main.sh b/examples/auth/import-user/cli/main.sh new file mode 100644 index 00000000..338f834f --- /dev/null +++ b/examples/auth/import-user/cli/main.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +NATS_URL="nats://0.0.0.0:4222" + +nsc add operator --generate-signing-key --sys --name local + +nsc edit operator --require-signing-keys \ + --account-jwt-server-url "$NATS_URL" + +nsc generate config --nats-resolver --sys-account SYS > resolver.conf + +# Start the server. +nats-server -c resolver.conf 2> /dev/null & + +sleep 1 + +# Print the creds before a fresh import.. +cat /nsc/nkeys/creds/local/SYS/sys.creds + +# Import (introducing the newline) and generate new creds. +nsc describe user -a SYS -n sys --raw > sys.jwt +nsc import user --overwrite -f sys.jwt + +# Print the creds after the import.. they remain without +# the newline. +cat /nsc/nkeys/creds/local/SYS/sys.creds + +# Generating the creds (with newline) to use for the client. +nsc generate creds -a SYS -n sys > sys.creds + +# Authorization error... +nats --creds sys.creds server list + +# Try with original on disk (without a newline). +nats --creds /nsc/nkeys/creds/local/SYS/sys.creds server list