Skip to content

Exploring messaging features in Azure AppFabric Service Bus

May 24, 2011

We just released a Community Technology Preview for Service Bus that provides a rich set of messaging capabilities. Service Bus is already unique amongst platform-as-a-service offerings in providing relay capability for services that allows for global endpoint federation across network and trust boundaries. In this release we focused on providing cloud-based, message-oriented-middleware technologies that include reliable message queuing and durable publish/subscribe messaging. These are accessible both over a simple and broadly interoperable REST-style HTTPS protocol with long-polling support and a throughput-optimized, connection-oriented, duplex TCP protocol.

In this post we will walk through the steps to download and run a simple application that showcases the publish-subscribe capabilities of Service Bus. You will need to have Visual Studio 2010 and NuGet installed.

We will start by creating a new console application in VS:

image

Open the Project –> Properties and change the Target framework to .NET Framework 4

image

From the References node in Solution Explorer click on the context menu item for Add Library Package Reference. This will show only if you have NuGet Extension installed. (To learn more about NuGet see this TechEd video).

image

Search for “AppFabric” and select the Windows Azure AppFabric Service Bus Samples – PublishSubscribe item. Then complete the Install and close this dialog.

image

Note that the required client assemblies are now referenced and some new code files are added.

image

Add the following line to the main method in Program.cs and hit F5

 Microsoft.Samples.PublishSubscribe.Program.Start(null);

At this point you will be prompted to provide a ServiceNamespace and Issuer Name and Key. You can create your own namespace from https://portal.appfabriclabs.com/Default.aspx 

image

Once a new namespace has been created you can retrieve the key from the Properties section by clicking View under Default Key:

image

These values can now be used in the Console application:

image

At this point you can run thru the different scenarios showcased by the sample.

Following are some additional resources:

Windows Azure AppFabric SDK V2.0 CTP – May Update

User Guide for Service Bus CTP

Forum for feedback

Looking forward to your feedback / questions / concerns / suggestions.

Advertisements
One Comment
  1. You really make it appear so easy together with your presentation but I find this matter
    to be really one thing that I believe I might
    never understand. It seems too complex and extremely extensive for me.
    I am looking forward for your next put up, I’ll try to
    get the hold of it!

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

%d bloggers like this: