Message/Service Bus – Mass Transit

 

I’ve been reading several blogs about event-driven/event broker/message bus.  I have used the Castle Windsor EventWiringFacility which allows you to setup a component to publisher with subscribers defined either in the xml or through the windsor fluent interface.  I have blogged about that here.

Taking this a step further is the concept of an event ‘broker’ or ‘message bus’ – where messages are published to the broker that then can send these to subscribers (in a publish-subscriber setup) without setting up delegates/events for the publisher.  One such message bus available in .net is ‘Mass Transit’.

MassTransit is lean service bus implementation for building loosely coupled applications using the .NET framework.

The lean implementation is supported by the YAGNI principle. By focusing on a tight set of specific concerns, the touch points between Mass Transit and the application are minimized resulting in a clear and concise set of interfaces.

Mass Transit offers a ‘how to get started’ example that shows how rather easy it is to get this setup.  In this example it uses Castle Windsor.

I’m a tad bias (lol) toward Castle Windsor, as I find it easy to setup and use, and quite powerful.  The community offers several options, in this case, Mass Transit has started with Castle Windsor and provides a good set of examples to get started.  Using an IoC container makes it very easy to register components to be used by the message bus.

The next step will be create a sample with a test to get this rolling…  off I go, to the Mass Transit wiki to get it all set up…

Edit:  a good ‘how to get msmq installed’:

http://msdn.microsoft.com/en-us/library/aa967729.aspx

Then, ‘setting up the ‘standard-services’ for Mass Transit’:

http://masstransit.pbwiki.com/Standard-Services

Also, a ‘Using the host service’  –

The Host service allows the easy configuration of a Windows service for handling messages on the service bus

http://code.google.com/p/masstransit/wiki/UsingTheHostService

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s