Release history
42 releases of NTDLS.ReliableMessaging.
Be sure to check out the NuGet package 📦
New 🎉
- Added
RmConfiguration.MaxPendingNotifications(default 10,000): the most notifications from one connection that can be waiting for their handlers. When this many are waiting, the connection stops reading until there is room, so TCP slows the sender down. - Added
RmConfiguration.MaxConcurrentQueries(default 1,000): the most query handlers that can run at once for one connection. When this many are running, the connection stops reading until one finishes, so TCP slows the sender down.
Changed 😎
- Each connection's receive thread now decodes its own frames (decryption, decompression and deserialization), instead of handing every frame to the thread pool.
- Replies complete their waiting query directly on the receive thread. The code that sent the query still resumes on the thread pool.
- Notification handlers for a connection now run one at a time, in the order the notifications arrived, instead of all at once. A slow notification handler delays the notifications behind it, but not replies or queries, unless the notification queue is full.
- Query handlers still run on the thread pool, so several queries from one connection are handled at once, now up to
MaxConcurrentQueries. - With
AsynchronousNotificationsorAsynchronousQueryWaitingset tofalse, those handlers run on the receive thread, which reads nothing else from the connection until each handler returns. An asynchronous query handler that is still pending replies when it completes, and does not hold up the receive thread. RmConfiguration.AsynchronousFrameProcessingis obsolete and no longer has any effect.- Caution: a handler that sends a query on the same connection and waits for the reply can wait forever if that connection's notification queue or query limit is full, because the reply cannot be read until there is room.
Fixed 🐛
- Fixed notifications from one connection being handled out of order. Every frame was processed on its own thread-pool task, so notifications sent in order could be handled in any order. In CatMQ, 35–53% of fire-and-forget publishes from a single client were stored out of order.
- Fixed connections having no backpressure. A peer that sent faster than its messages could be handled filled the receiving process's memory with queued work, instead of being slowed down by TCP.
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/3.6.0...4.0.0
- Added async query reply handlers.
Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ReliableMessaging 📦
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/3.5.0...3.6.0
- Added support for IPv6
Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ReliableMessaging 📦
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/3.4.7...3.5.0
Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/3.4.0 📦
What's Changed
- Added default serialization provider.
- Updates NuGet package dependencies
- .NET 10 support.
- Streamlines the query timeout check by removing unnecessary boolean comparison.
- Nullable query timeouts for more flexible overloading.
- AES cryptography provider with key derivation
- Removed Task ambiguity for non async methods.
- Frame skipping, exception handling, compression clear error resolved.
- Improved concurrency and exception propagation.
- Added auto-reconnect.
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/3.3.1...3.4.0
- Optimizations and refactoring.
Be sure to check out the NuGet package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/3.2.6
Be sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/3.2.5
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/3.2.4...3.2.5
- Added support for generic typed payloads.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/2.0.0
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.12.0...2.0.0
-Dependency updates.
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.11.3...1.11.4
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.11.4
- Removed strong versioning of serialized types.
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.11.2...1.11.3
Be sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.11.3
- Added public listen port.
- Connection race condition.
- Sync/async changes.
- Nullability disambiguation.
- Threaded collection modification.
- Ditched dedicated threads for asynchronous query waiting.
- Handle asynchronous query waiting thread exception.
- Moved query meta to context, reducing contention. Kill queries on client disconnect.
- Writable query timeout.
- Added public QueryTimeout, converted it to a TimeSpan.
Be sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.11.2
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.9.1...1.11.2
- Dependency updates.
Be sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.9.1
- Changes to async tasks and changed the way exceptions are communicated back to the query caller.
Be sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.9.0
- Added default query timeout (30 seconds).
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.8.4
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.8.3...1.8.4
- Added additional exception handling and resumption of frame ingestion.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.8.3
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.8.1...1.8.3
- Added custom serialization, compression and encryption provider support.
- Added Context.Endpoint.Parameter to allow user to pass some parameter to the events.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.8.1
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.8.0...1.8.1
- Added methods to get encryption provider at last second.
- Handled remainder of server threaded exceptions.
- Fixed query reply encryption.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.7.6
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.7.4...1.7.6
- Added advanced Server and Client options.
Bes sure to check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.7.0
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.6.2...1.7.0
- Resolved issue with senders not utilizing encryption providers
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.6.2
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.6.0...1.6.2
- Added encryption support.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.6.0
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.5.5...1.6.0
- Spelling and null checks.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.5.5
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.5.4...1.5.5
- Removed nullability from server Query() to match client.
- Resolved issue with reconnecting client.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.5.4
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.5.3...1.5.4
- Resolved issue with reconnecting client.
Check out the nuget package: https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.5.3
Full Changelog: https://github.com/NTDLS/NTDLS.ReliableMessaging/compare/1.5.1...1.5.3
- Changed exception handling to throw base exception.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.5.1
- Added thread protection to queries awaiting replies.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.5.0
- Added convention-based message handling in addition to the existing events.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.4.0
- Added slightly more robust exception handling.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.6
- Added query timeout.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.5
- Added QueryAsync().
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.4
- Added exception handling to peer data pump and query reply.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.3
- Added server Disconnect()
- Added GetClient() to get underlying TcpClient.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.1
- Added tcpClient to OnConnected event.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.3.0
- Added missing call to OnConnected().
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.2.4
- Added exception handling.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.2.3
- Added .net 8.0 target.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.2.2
- Updated StreamFraming framework.
https://www.nuget.org/packages/NTDLS.ReliableMessaging/1.2.1