MSMQ for CQRS -- Building Service Bus

1k Views Asked by At

How can i build by own service Bus? i know there are Plenty of open source service bus available like NService Bus,Rhino Bus etc... But i want to learn by doing it..

1)How will you build the Bus? what the characteristics of it

2)How can i make it independent of the Queue technology.. ie it should work with MSMQ as azure queue(never worked with azure queue)

3)How Can i Implement Listener to to it? I got a link .. is it how Nservice Bus has done (MSMQListner)

4) How can i activate the Queue .. can i host my service in IIS so that handling load will not be a problem (I hope so)

5)How will the Host option for MSMQ will be?

Please i dont want to use WCF .Just because it makes Messaging architecture as RPC calls

1

There are 1 best solutions below

0
On BEST ANSWER

Here are a few lessons I've learned while building Lokad.CQRS (service bus infrastructure for Windows Azure):

  • Learn by reading sources of the other service buses and then picking the best ideas. Try to implement. After a few iterations you'll be getting the idea.
  • Actual service bus code is simple. But it takes time to get it done right (I'm still far from it).
  • It's easier to build service bus for a queue tech, than trying to make it decoupled from queue implementation
  • Azure Queues are not close to MSMQ (no DTC, much smaller message size limit, cloud specifics)

Hope this helps, Rinat