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

Chapter 2. Messaging Patterns

Sending messages is powerful, but still assumes coupling between the sender and the receiver. In this chapter we'll first delve deeper into the concept of asynchronous messaging, and then explore the Publish/Subscribe model, and discover how publishing events allows us to decouple services from one another.

By the end of the chapter, we will have updated our solution from the previous chapter to publish an event once the user has been created, and then we will show how we can create multiple subscribers to add functionality to a system without requiring changes to the original publisher.

Commands versus events

In the previous chapter, the MVC website sent a command to the NServiceBus endpoint, commanding it to perform ...

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