EightyDecibel.AsyncNats 1.0.2

.NET Standard 2.1
Additional Details

This version contains memory corruption in high load Request/Response/RPC scenarios, upgrade to 1.0.5 asap!

There is a newer version of this package available.
See the version list below for details.
dotnet add package EightyDecibel.AsyncNats --version 1.0.2
NuGet\Install-Package EightyDecibel.AsyncNats -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EightyDecibel.AsyncNats" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EightyDecibel.AsyncNats --version 1.0.2
#r "nuget: EightyDecibel.AsyncNats, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EightyDecibel.AsyncNats as a Cake Addin
#addin nuget:?package=EightyDecibel.AsyncNats&version=1.0.2

// Install EightyDecibel.AsyncNats as a Cake Tool
#tool nuget:?package=EightyDecibel.AsyncNats&version=1.0.2


A Nats.IO client specifically written with new C# features in mind. Internally it uses the new System.IO.Pipelines and System.Threading.Channels libraries that were released last year. It also uses the new IAsyncEnumerable as a way to listen to messages published to subjects.

The end result is very fast Nats.io client that, in our opinion, fits the C# 8.0 language features better than the currently existing libraries.

Release history


  • Breaking changes:
    • Removed the PublishMemoryAsync/PublishTextAsync methods in favour of a single PublishAsync that handles both string and byte[] types
    • Removed the RequestMemory/RequestText methods in favour of a single Request that handles both string and byte[] types
    • Removed various added PublishAsync overrides in favour of a single PublishAsync with optional parameters
  • Overridden NatsKey.ToString for logging purposes
  • Added header support to Request methods
  • Note: if headers are passed to any function it will always do a HPUB, if headers are null it will always do a PUB


  • @israellot improved performance / memory allocations
  • @israellot added a more realistic benchmark
  • @israellot added header support


  • Requests will only use a single subscription instead of setting up a new subscription every request/response
  • Moved request/response handling to it's own separate class
  • Added ILoggerFactory support, RPC is logged, raw request/response/publish is not
  • Bumped to v1.0.0 - This library has been tested in a production environment that handles 50-100k messages/sec
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 74 1/23/2023
1.0.4 95 1/18/2023
1.0.2 257 8/23/2022
1.0.1 208 8/23/2022
1.0.0 218 7/21/2022
0.8.5 553 2/5/2021
0.8.4 396 10/30/2020
0.8.3 440 7/28/2020
0.8.2 351 7/28/2020
0.8.1 338 7/27/2020
0.8.0 328 7/24/2020
0.7.1 345 7/6/2020
0.7.0 486 7/6/2020
0.6.5 314 6/30/2020
0.6.4 368 2/24/2020
0.6.3 350 2/5/2020
0.6.2 371 2/5/2020
0.6.0 355 1/31/2020
0.5.1 391 11/10/2019
0.5.0 385 11/8/2019
0.4.0 381 10/20/2019
0.3.0 367 10/17/2019
0.2.0 382 10/16/2019
0.1.0 403 10/16/2019