O'Reilly logo

Learning NServiceBus by David Boike

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scalability

One of the greatest strengths of NServiceBus is that it allows you to easily add scalability to any system. We can easily add more threads to scale up, or distribute the processing of messages among multiple servers to scale out.

Scaling up

Multithreading is hard. If you've ever tried to design a multithreaded program then you already know this. NServiceBus makes this a lot easier because it has already divided up all our work into messages that represent discrete, independent tasks. So, as long as we don't do anything stupid in our message handlers (such as sharing state) then we can allow NServiceBus to ramp up the number of threads processing messages with relative safety.

This gives service applications the same flexibility that web ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required