Skip to content

Windows Azure Service Bus Queues, Topics / Subscriptions

September 14, 2011

We just released to production the Queues, Publish-Subscribe with Topics / Subscriptions features that were earlier showcased in Community Technology Preview for Service Bus. For an introductory period these Brokered Messaging features are free, but you continue to pay Azure data transfer. Also the Relay features continue to be charged as before. Following are steps to quickly get started, and the links to additional resources:

The steps below are to download and run a simple application that showcases the publish-subscribe capabilities of Service Bus. You will need to have Visual Studio and NuGet installed. We will start by creating a new console application in VS:

1blog

 

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

2blog

 

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).

3blog

 

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

4blog

 

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

5blog

 

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://windows.azure.com/

6blog

 

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

7blog

These values can now be used in the Console application:

8blog

At this point you can run thru the different scenarios showcased by the sample. Following are some additional resources:

Download page for SDK and Samples

Documentation for Service Bus September Release

Forum for feedback

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

Advertisements
6 Comments
  1. Mikel permalink

    Hello Abhishek,

    we use the Windows Service Bus to publish and subscribe messages. I want to develop a C# application. The application should check performance counters on the Service Bus like

    • The current number of messages per Topic / Queue
    • The average processing time per message
    • The number of messages processed per unit of time

    I saw that there is a package for C# available named “Service Bus 1.0 for Windows Server” but with that you can’t check performance counters, am I right?

    But then I found the Windows Azure Monitoring Services Management Library:
    http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Monitoring/

    I tried to check performance counters with the help of the Microsoft.WindowsAzure.Diagnostics.dll. But I looked at the online documentation and I found out that you can use this library only if you use the whole Windows Azure Suit, am I right? We only use the Servis Bus for Windows Server.

    Do you have any suggestions how to check the performance counters on the Service Bus for Windows Server?

    Best regards and thank you for your help

Trackbacks & Pingbacks

  1. Windows Azure and Cloud Computing Posts for 9/19/2011+ - Windows Azure Blog
  2. A Conceptual Understanding of Azure ServiceBus Topics | blog.mexia.com.au
  3. A Conceptual Understanding of Azure AppFabric ServiceBus Topics

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: