3.0.8 • Published 1 year ago

@randomrod/lib-nats-client v3.0.8

Weekly downloads
73
License
ISC
Repository
github
Last release
1 year ago

Library: lib-nats-client

NodeJS base class providing a NATS.io interface

The intention is to derive a class from this library, which provides specific message handling logic as part of a NATS.io microservices mesh. This is the documentation for the support of NATS v2, which is a significant departure from the original v1. This lists the changes from v1

Logging Logging is now a dependency of this library, which must be injected by the deriving module. This keeps this client clean and single-purpose

Configuration The following configuration item replacements have been made:

  • NATS_SERVER & NATS_CLUSTER have been replaced by NATS_SERVERS (plural)
  • NATS_SERVERS is a comma-separated list of :,:,
  • NATS_PORT has been removed
  • NATS_PASSWORD have been replaced by NATS_SEED
  • NATS_SEED is an NKey Seed for the service/user account
  • NATS_USER has been removed. If NATS_JWT is not specified, then NATS_SEED is used to get the User NKey.
  • NATS_JWT is for "hardcoded" clients (only used for STS services currently).
  • STS_ENDPOINT is a NEW variable that provides the URI for the Security Token Service, used to exchange NKeys for JWTs
  • NATS_NAMESPACE is a NEW variable, required by the STS to segment identities
3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.3.0

2 years ago

2.2.7

2 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.5

4 years ago

2.2.4

4 years ago

2.2.6

4 years ago

2.1.3

4 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago