NServiceBus installation and commissioning

Outline

NServiceBus is an open source communications framework for building enterprise .NET system. It is in a message publish / subscribe support, workflow aspects of integration and high scalability and other performance is excellent, so is the ideal choice for many distributed system infrastructure platform. It can help developers avoid many of the common problems typical build enterprise .NET system. At the same time, the framework also provides some key features Scalable, such as publish / subscribe support, integrated workflow and in-depth long expansion capabilities. According to the authors, their intention is to create an ideal infrastructure for building distributed applications.

The core NServiceBus does not depend on MSMQ. NServiceBus scalability allows us to insert their own communication transmitter prepared subscription implement the memory ,, and workflow. I have implemented a transmitter based on MSMQ, and one of the means of the WCF NetTCP. Developers can use either of these conventional components may also be customized as required. We know that many of the current SOA products are tightly coupled with HTTP, therefore NServiceBus of this implementation will also be a new path design.
We chose to use MSMQ, because it is one of Microsoft's two main communications technology (the other is the SQL Server Service Broker). MSMQ allow the two sides to communicate in an offline state, and it provides a set of easy-to-use API, and has been integrated into the .NET framework, Service Broker much better than this. I personally think that support offline communications is a key part of any SOA must consider the basic framework - as Tenet of Service Autonomy does not guarantee that the other end of the current communication in a usable state.

NServiceBus is inside dotnet world's most popular open source enterprise service bus which has the following characteristics: 1. strong, lightweight 2. pluggable, easy to use 3. support enterprise development...

 

NServiceBus official website: http://www.nservicebus.com   be there to download the most recent version of the code.

 

After extracting shown below

image


RunMeFirst.bat first run and then run build.bat (because I was vs2008) results as shown below:

image

 

It will be more binaries and build two folders

 

Then you need to install windows message queue (Baidu, you know).

 

image

In the management of which you can see there is a message queueing Next development installation

image

As I have shown, what you need is generated in the build folder in the build host inside NServiceBus.Host.exe installation. I started in this src code to run inside all wrong.

After the work compile.

image

Run MyPublisher, you will find the following results:

image

View msessage queue you will find:

image

 

9 has already stored the message in the subscriber1 inputqueue

Then you will find running subscriber1

image

It has received the information in the message queue.

 

Author: the Spring Yang

Source: http://www.cnblogs.com/springyangwc/

This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise the right to pursue legal responsibilities.

Reproduced in: https: //www.cnblogs.com/springyangwc/archive/2011/12/15/2288941.html

Guess you like

Origin blog.csdn.net/weixin_34068198/article/details/94228234