Skip to content

Bump the nats group with 1 update#11

Merged
boblangley merged 1 commit into
mainfrom
dependabot/nuget/src/Community.NServiceBus.Transport.Nats/nats-316beca773
Feb 18, 2026
Merged

Bump the nats group with 1 update#11
boblangley merged 1 commit into
mainfrom
dependabot/nuget/src/Community.NServiceBus.Transport.Nats/nats-316beca773

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Feb 16, 2026

Copy link
Copy Markdown
Contributor

Updated NATS.Net from 2.7.1 to 2.7.2.

Release notes

Sourced from NATS.Net's releases.

2.7.2

Excited to announce a new patch release of NATS .NET client library version 2.7.2 with an important fix to slow consumers improving reliability and performance.

Please see Preview 1 release notes for details.

Additionally added SlowConsumerDetected event and logging to make sure applications will be aware of he slow consumers and can look into adjusting channel size or application logic to handle slow message processors when identified.

We also have lots of other minor and important fixes and improvements. Please see the full list below.

What's Changed

Preview 1:

Preview 2:

In this release:

New Contributors

Full Changelog: nats-io/nats.net@v2.7.1...v2.7.2

Huge thank you to our community for helping with this release ❤️

Download from NuGet https://www.nuget.org/packages/NATS.Net/2.7.2

2.7.2-preview.2

This is another bug fix preview release possibly last before a stable 2.7.2 release. Please test this release as much as you can and provide feedback. Thank you.

What's Changed

New Contributors

Full Changelog: nats-io/nats.net@v2.7.2-preview.1...v2.7.2-preview.2

Huge thanks to our contributors and the awesome NATS community ❤️

Download from NuGet at https://www.nuget.org/packages/NATS.Net/2.7.2-preview.2

2.7.2-preview.1

This is a preview release of NATS .NET version 2.7.2 fixing an important slow consumer issue as well as timeout option correction.

What's Changed

Slow Consumer Fix

Although we are happy that we believe slow consumer fix will solve a lot of the performance issues under load, please test this release as much as you can since there maybe behavioral changes that might affect your application. Please see #​1041 for more information.

Here are suggested changes after upgrading to 2.7.2-preview.1 or above:

Observing Slow Consumer Events

In NATS .NET you can watch for slow consumer events by subscribing to MessageDropped event on the INatsConnection object and set the internal channel capacity using the SubPendingChannelCapacity option:

await using var client = new NatsClient(
    opts : new NatsOpts
    {
        // Default is 1024, however, this may be too small for
        // high throughput scenarios. 16K is more reasonable for these cases.
        // Tradeoff is more memory usage especially because over 1024 messages
        // the backing array will be allocated on the LOH (large object heap).
        SubPendingChannelCapacity = 16384,
    },

    // This option may be deprecated in the future and set to DropNewest by default
    pending: BoundedChannelFullMode.DropNewest); 

client.Connection.MessageDropped += (sender, args) =>
{
    Console.WriteLine($"Message dropped. Subject:{args.Subject} Pending:{args.Pending}");
    return default;
};

Trade-offs of SubPendingChannelCapacity

Setting Pros Cons
Lower capacity (1024) Avoids LOH allocations Higher chance of message drops under load
Higher capacity (16384) Handles burst traffic better More memory usage, potential LOH allocations

You should watch LOH memory usage and slow consumer events using MessageDropped handler.

Also note that channel doesn't allocate this immediately. The backing array grows twice as much each time there is need for more space.

Differences between NatsClient and NatsConnection

NatsClient sets SubPendingChannelFullMode option to BoundedChannelFullMode.Wait by default which means you won't take advantage of this fix if you're using NatsClient to setup your connection.

If you are using NatsClient this fix won't affect your applications.
... (truncated)

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps NATS.Net from 2.7.1 to 2.7.2

---
updated-dependencies:
- dependency-name: NATS.Net
  dependency-version: 2.7.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: nats
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Feb 16, 2026
@boblangley
boblangley merged commit 58696e7 into main Feb 18, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/nuget/src/Community.NServiceBus.Transport.Nats/nats-316beca773 branch February 18, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant