Product Reviews

Free Tool: Create Reliable Services with NServiceBus

NServiceBus can help you create more reliable .NET services. It may not be as "free" as it appears, though.

NServiceBus was suggested by a reader who commented on my WCF article about handling long-running processes in an SOA environment. NServiceBus is an open-source tool for creating services in .NET. But I'm stretching the definition of "free tool" a little because NServiceBus is only "sort of" free. The Express Edition is free but has some limitations: It's a single threaded application (able to handle up to 30 requests a second), and can only be run on a single production server with a maximum of four cores.

NServiceBus is a flexible tool, though. It handles creating a wide variety of services (including full duplex services where the consumer can call the server and the server can call the consumer). Unlike WCF, NServiceBus is a lot more about writing code and defining interfaces than putting entries in config or XAML files. The publish/subscribe model is also an important part of the NServiceBus way of doing things.

The major difference between WCF and NServiceBus is message handling. WCF is based around remote procedure calls: A request is sent by a consumer, caught by some host, and then passed to a "WCF-enabled" class for processing. With NServiceBus, on the other hand, incoming requests are queued. Those requests are pulled from the queue and handed over to an "NServiceBus-enabled" class for processing. This makes fault tolerance considerably easier to implement in NServiceBus than in WCF (in a queuing system, it's very difficult to lose a request). You can get to that level of reliability with WCF but it will require an additional tool (probably an enterprise service bus that implements queuing).

If you decide to investigate NServiceBus and, eventually, decide to upgrade to the standard edition it'll cost you either $25 a month or a single payment of $500 to $2000. Like I said: Not really free, just "sort of" free. But if reliability is what matters to you then this is a tool worth looking at.

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube