Friday, September 24, 2010

Message Queue using cloud computing – Azure and Amazon

Recently I was involved in an assignment which involved using messagequeue. We ended up implementing both Amazon and Azure as Queue providers. With libraries available for both of them, its very easy to integrate both in application.

Amazon Web Services

Amazon provides SDK for many platforms such as Java, PHP, Python, Ruby and .Net. SDK makes it very easy to incorporate any cloud computing service in your application.

Three simple Steps to incorporate Amazon Queue in .Net apps:

  1. Download the SDK
  2. Reference AWSSDK.dll in your project
  3. Write code (Found the SDK samples to be very helpful and easy to understand)

Windows Azure

Just like Amazon, Azure provides SDKs for Java and .Net. I liked Amazons approach that they give you the code samples with SDK. Azure does give you some code samples but they don’t include samples for Queue and not for every services which it provides. To get all the samples, you can get them from here (Make sure to download samples which are marked as Additional C# Samples)

Same with Azure, simple steps to incorporate

  1. Download the SDK from here .
  2. Reference  Microsoft.WindowsAzure.StorageClient.dll in your project
  3. Write code

One thing I noticed is that Queue names has to be in a certain format else you’ll get an exception response. Naming conventions are found here.

Enjoy Cloud computing!

No comments: