Кількість переглядів 604
Анотація
Distributed message exchange is a fundamental mechanism for achieving reliable communication and coordination in distributed software systems. Asynchronous messaging is widely used in domains such as financial systems, logistics platforms, cloud services, and real-time data processing to enable asynchronous interaction, fault tolerance, and system decoupling. Despite the wide adoption of messaging frameworks in the .NET ecosystem, there is limited comparative experimental data on their performance and practical characteristics.
This study presents a systematic comparison of five widely used .NET messaging libraries – DotNetCore.CAP, MassTransit, NServiceBus, Rebus, and Wolverine. The comparison addresses architectural design, features, ecosystem maturity, ease of integration, and runtime performance. Two sets of benchmarks were developed using BenchmarkDotNet to evaluate message publication latency and end-to-end message delivery latency using RabbitMQ as the transport layer. The results show that Wolverine provides the lowest publication latency, whereas MassTransit demonstrates the fastest consumption throughput with high stability. Rebus offers simplicity but displays limited scalability underload. CAP exhibits significant performance variability due to its storage-oriented design, while NServiceBus provides reliable but comparatively slower performance associated with extensive messaging guarantees. The findings offer guidance for selecting an appropriate library depending on performance or reliability requirements.
Посилання
Home | BenchmarkDotNet. Home | BenchmarkDotNet. URL: https://benchmarkdotnet.org/ (date of access: 25.11.2025).
Introduction - CAP. CAP. URL: https://cap.dotnetcore.xyz/user-guide/en/getting-started/introduction (date of access: 25.11.2025).
MassTransit. MassTransit · MassTransit. URL: https://masstransit.io (date of access: 25.11.2025).
NServiceBus. Particular Software. URL: https://particular.net/nservicebus (date of access: 25.11.2025).
Understanding Rebus: A Powerful .NET Service Bus for Asynchronous Messaging. Medium. URL: https://medium.com/@farkhondepeyali/understanding-rebus-a-powerful-net-service-bus-for-asynchronous-messaging-bab4e2de1a6d (date of access: 25.11.2025).
Wolverine | Robust Event Driven Architectures with Simpler Code. Wolverine | Robust Event Driven Architectures with Simpler Code. URL: https://wolverinefx.net (date of access: 25.11.2025).
Comparison of Rebus, NServiceBus, and MassTransit in .NET – Code Maze. Code Maze. URL: https://code-maze.com/aspnetcore-comparison-of-rebus-nservicebus-and-masstransit (date of access: 25.11.2025).
MassTransit. Fossed. URL: https://dariusz-wozniak.github.io/fossed/library/masstransit (date of access: 25.11.2025).
Kravets N. S. Processing Events in a Cloud Application Using Serverless Computing. Management Information System and Devises. 2021. No. 177. P. 47–51.
Introducing Wolverine for Effective Server-Side .NET Development. The Shade Tree Developer. URL: https://jeremydmiller.com/2022/12/12/introducing-wolverine-for-effective-server-side-net-development (date of access: 25.11.2025).

Тези доступні на умовах Creative Commons Attribution-ShareAlike 4.0 International License.
