How to implement message queuing and handling in AWS with NServiceBus

Posted by Pete Lunenfeld on Stack Overflow See other posts from Stack Overflow or by Pete Lunenfeld
Published on 2012-10-13T15:33:30Z Indexed on 2012/10/13 15:36 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

I am creating a new ASP MVC order application in the Amazon (AWS) cloud with the persistence layer at my local datacenter. I will be using the CQRS pattern. The goal of the project is high availability using Queue(s) to store and forward writes (commands/events) that can be picked up and handled asynchronously at my local datacenter. Then, ff the WAN or my local datacenter fails, my cloud MVC app can still take orders and just queue them up until processing can resume.

My first thought was to use AWS SQS for the queuing and create my own queue consumer/dispatcher/handler in my own c# application to process the incoming messages/events.

MVC (@ Amazon) --> Event/POCO --> SQS --> QueueReader (@ my datacenter) --> DB

Then I found NServiceBus. NSB seems to handle lots of details very nicely: message handling, retries, error handling, etc. I hate to reinvent the wheel, and NServiceBus seems like a full featured and mature product that would be perfect for me.

But on further research, it does NOT look like NServiceBus is really meant to be used over the WAN in physically separated environments (Cloud to my Datacenter). Google and SO don't really paint a good picture of using NServiceBus across the WAN like I need.

How can I use NServiceBus across the WAN? Or is there a better solution to handle queuing and message handling between Amazon an my local datacenter?

© Stack Overflow or respective owner

Related posts about c#

Related posts about nservicebus