6 releases

0.10.4 May 18, 2021
0.10.3 Mar 18, 2021
0.10.1 Feb 11, 2021
0.9.2 Jan 13, 2021

#1485 in WebAssembly

Download history 2/week @ 2024-02-25 1/week @ 2024-03-10 70/week @ 2024-03-31

71 downloads per month

Apache-2.0

14KB
273 lines

crates.io Rust license documentation

wasmCloud NATS Provider

The wasmCloud NATS capability provider exposes publish and subscribe functionality to actors. The following configuration values can be passed to the wasmCloud host runtime for each actor binding:

  • SUBSCRIPTION - The subscription string. This can contain wildcards. Use a comma-separated list for multiple subscriptions.
  • QUEUEGROUP_NAME - If you want all instances of the same actor to share round-robin delivery of messages, then set a unique queue group name for them. This queue group name will apply to all configured subscriptions.
  • URL - The URL to initially connect with a server. Should use the nats:// scheme prefix.
  • CREDSFILE - The path to a .creds file (which can be generated via NATS client(s)) containing the client JWT and the seed used to sign the nonce. If this value is not included in the binding, the provider will use anonymous authentication.
  • CLIENT_JWT - Supported prior to 0.9, not currently supported.
  • CLIENT_SEED - Supported prior to 0.9, not currently supported.

Dependencies

~18–30MB
~523K SLoC