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

  • GitHub Expands Copilot Enterprise Search in Visual Studio and VS Code

    GitHub supercharged search for its Copilot Enterprise AI assistant in both Microsoft's Visual Studio IDE and Visual Studio Code so developers can now get results from well beyond local codebases, including the internet.

  • What's New in TypeScript 5.5, Now Generally Available

    Microsoft shipped the latest iteration of its type-infused superset of JavaScript, TypeScript 5.5, introducing inferred type predicates, control flow narrowing, JSDoc @import and other enhancements.

  • GitHub Copilot for Azure Gets Preview Glitches

    This reporter, recently accepted to preview GitHub Copilot for Azure, has thus far found the tool to be, well, glitchy.

  • New .NET 9 Templates for Blazor Hybrid, .NET MAUI

    Microsoft's fifth preview of .NET 9 nods at AI development while also introducing new templates for some of the more popular project types, including Blazor Hybrid and .NET MAUI.

  • What's Next for ASP.NET Core and Blazor

    Since its inception as an intriguing experiment in leveraging WebAssembly to enable dynamic web development with C#, Blazor has evolved into a mature, fully featured framework. Integral to the ASP.NET Core ecosystem, Blazor offers developers a unique combination of server-side rendering and rich client-side interactivity.

Subscribe on YouTube