BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Windows Azure Notification Hubs with Common API

| by Anand Narayanaswamy Follow 0 Followers on Jan 24, 2013. Estimated reading time: 2 minutes |

Windows Azure Notification Hubs recently released as an enhancement to Windows Azure Management Portal provides a common API to send push notifications to applications built using multiple device platforms such as Windows 8 and iOS. According to Microsoft, support for Android and Windows Phone will be added in the near future.

Microsoft has optimized the hubs in such a way to fire millions of push notifications when a single message is fired into the notification hub with an ability to specify number of per user tags when registering with a hub.

These tags consists of app-specific strings such as user ids and stock symbols which eliminates the need to store and manage device handles or implement their own per-user notification routing information. Moreover, the sub routing mechanism enables you to route and deliver notification messages to users without having to build your own routing infrastructure.

Windows Azure Notification Hubs can be used by server apps hosted within Infrastructure-as-a-Service (IaaS) Virtual Machines which can be either Windows or Linux including cloud services or Websites.

"Notification Hubs enable your push notification logic significantly simpler and more scalable," says Scott Guthrie, Corporate Vice President, Server and Tools Business, Microsoft.

In order to create a new notification hub from within the Windows Azure Management Portal, you need to select the Service Bus Notification Hub item located under the App Services category. Once created, you will be able to view the number of devices that has been registered, pushed, delivered and those might have failed to reach recipients.

The notification hub can be registered with Microsoft Windows Notification System and Apple Push Notification service (APNS) service by clicking the Configure tab from within the management portal. After successful registration, you will be able to register any client app/device with a notification hub by associating tags to enable automatic filtering. Once this process is completed you will be able to broadcast messages to your users with minimum amount of code.

Claus Nielsen asked the following query:

Great news Scott, but what happened to Windows 7 in areas like push notifications and smooth streaming?

Elio Damaggio, Program Manager, Service Bus commented:

Regarding support for Windows 7 push. The Notification Hub feature is designed to push notification directly to the OS, for the platforms that support this capability (e.g. mobile platforms like Windows 8, Windows Phone, Android, iOS).

In order to push messages into a running app (Windows 7 or other) you can use Service Bus Topics, which, like you correctly pointed out, have to be sharded when dealing with more than 2000 subscriptions, or use SignalR (http://signalr.net/), which is already designed to be deployed in a scaled-out configuration using Service Bus.

Tomasz Wisniewski wants to know how Windows Azure Mobile Service with their Push Notifications align with Notification Hubs to which Elio commented

Notification Hubs will not replace the push functionality in Windows Azure Mobile Services, they will be a complement to it. Notification Hubs will be able to be used from any Mobile Service back-end very soon, adding high-scale broadcast capabilities and tag support.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT