Scaling Applications with Microservices and NServiceBus 5

Implement a microservice-oriented architecture with NServiceBus.
Course info
Rating
(164)
Level
Advanced
Updated
Aug 25, 2015
Duration
3h 13m
Table of contents
Microservices and the Service Bus
Starting with NServiceBus
Sagas
Advanced NServiceBus Messaging and Configuration
Accelerating Development and Better Monitoring
Description
Course info
Rating
(164)
Level
Advanced
Updated
Aug 25, 2015
Duration
3h 13m
Description

This course teaches .NET programmers what microservices are and how to implement them with NServiceBus messaging. After learning what both microservices and service buses are and how they help you solve performance, scalability, and availability issues in your applications, I'll dive into the code. Throughout the course I will write software for a virtual company that is growing fast. More advanced scenarios like sagas are also covered, and I'll show you the NServiceBus tooling. After watching this course you will be able to implement a microservice architecture with NServiceBus!

About the author
About the author

Roland is a Microsoft MVP enjoying a constant curiosity around new techniques in software development. His focus is on all things .Net and browser technologies.

More from the author
Getting Started with ASP.NET Core SignalR
Beginner
1h 11m
Jun 22, 2018
A Practical Start with React
Beginner
1h 28m
Apr 21, 2018
Understanding ASP.NET Core 2.x
Beginner
2h 48m
Oct 20, 2017
More courses by Roland Guijt
Section Introduction Transcripts
Section Introduction Transcripts

Microservices and the Service Bus
Hello. This is Roland Guijt. Welcome to the course Scaling Applications with Microservices and NServiceBus. The microservice architecture is a great option if you want to keep complex applications manageable and at the same time optimize the user experience. As we will see, the NServiceBus framework is a great tool to support this architecture. Let's go and have a look at what I'm going to talk about in the first module. After following the first module, you will be able to determine if microservices are suitable for your solution. To illustrate, I want to start with looking at other architectures to give you a sense of what problems microservices are trying to solve. The first one is a monolithic application where everything is developed as one big package. Then we expand this thought by entering the distributed computing realm. First some theory about distributed applications, and then the techniques RPC and REST within service- oriented architecture. This leads to the topic where we want to be, microservices, which is also a distributed computing architecture, and the service bus. But first things first. In the next clip I will talk about monoliths.

Starting with NServiceBus
After this module you'll know everything that is needed to implement a microservice architecture with NServiceBus. First you will have to know what NServiceBus is and how to prepare your machine for it. Then I'll dive right in with a demo, after which we will take a look at the different kinds of messages and how they are routed. There's also lots to tell you about the configuration of NServiceBus. In this section, you'll also see the different transports NServiceBus can use. NServiceBus is fault tolerant by default, and we'll see the ins and outs of that. And lastly, the request/response messaging pattern.

Sagas
After watching this module, you will be able to model sagas in NServiceBus. Sagas are long-running business processes. First, I'll explain what a saga is. They you'll see how to define a saga right away. The next topic is about the various patterns you could use. Timeouts are next, which are like an alarm clock, and you should know a few things about persistence in relation to sagas.

Advanced NServiceBus Messaging and Configuration
This module is about advanced NServiceBus topics. I'll dive into messaging a bit deeper, and we'll see that NServiceBus offers not only flexibility in configuration, but is also fairly easy to customize. First, I'll look at how transactions work in NServiceBus with the DTC and the Add box. You'll also see a lot of features of messaging we didn't cover in the second module. I'll tell you about a messaging pipeline of NServiceBus with steps and behaviors. And performance counters are a great way to monitor what's going on in your applications, but what if a service can't handle what you throw at it? You learn the answer in the section about scaling of services. And finally, I'm going to unit test the Fire on Wheels solution.

Accelerating Development and Better Monitoring
This module is about the applications the particular platform offers that support NServiceBus. After watching this module, you are well on your way to use these applications and even write customizations for them. The four applications we are going to talk about are ServiceControl, ServicePulse, ServiceInsight, and ServiceMatrix. Remember the screen you saw when you installed NServiceBus? If you left all the checkmarks, you'll already have everything installed to get going. If not, please download the setup file from Particular and run it with all the checks selected. In the next clip, we'll start with the spider in the web called ServiceControl.