Description
NATS .NET is the .NET client for NATS, a distributed messaging system. It is written for asynchronous I/O only, so its APIs use async and await. The client covers publish and subscribe and request and reply on Core NATS. It also covers JetStream for streaming and persistence, the Key-Value Store, the Object Store and Services. Version 3 added OpenTelemetry tracing and metrics and support for .NET 10, and it dropped .NET 6.0. The library targets netstandard2.0, netstandard2.1, net8.0 and net10.0, so it can also be used from .NET Framework 4.6.2 and later and from Unity 2018.1 and later. The NuGet package is named NATS.Net. An older package, NATS.Client, will eventually be deprecated. The repository links to guides and examples, and a quick start shows a subscriber app and a publisher app running against a local NATS server. The project is open source on GitHub.…
Highlights
- Pub/sub and request/reply on Core NATS
- JetStream streaming and persistence
- Key-Value Store, Object Store and Services
- OpenTelemetry tracing and metrics in v3
- Targets .NET 8, .NET 10 and .NET Standard 2.0/2.1
Ratings & Reviews
No ratings yet
Be the first to rate Nats.net.
People also visit
Nats Server
High-Performance server for NATS.io, the cloud and edge native messaging system
Nats.net FAQ
What is NATS .NET used for?
Messaging between services in a distributed system, with publish and subscribe, request and reply, and JetStream for persisted streams.
Which .NET versions are supported?
The library targets netstandard2.0, netstandard2.1, net8.0 and net10.0. It can also be used with .NET Framework 4.6.2 and later and Unity 2018.1 and later.
What is the NuGet package name?
NATS.Net. A separate package called NATS.Client is the older client and will eventually be deprecated.
What changed in version 3?
Version 3 adds OpenTelemetry tracing and metrics and .NET 10 support, and it drops .NET 6.0.
Where do I start?
Start a NATS server, then follow the quick start with a subscriber app and a publisher app. The repository links to guides and to NATS by Example, a collection of runnable examples.
What are the best Nats.net alternatives?
Popular alternatives to Nats.net include Nats.rs, Nats Server and Nats.c. See all Nats.net alternatives
