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

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube