Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Azure Service Bus

Similar presentations


Presentation on theme: "Windows Azure Service Bus"— Presentation transcript:

1 Windows Azure Service Bus
SDK 2.0 features

2 Agenda New features in Azure SDK 2.0 Authentication and Security
Management in HTML Portal

3 New features in SDK 2.0 OnMessage programing model Message Browse
New enable/disable options for entities Auto-Delete on idle

4 OnMessage programing model
Can replace many/most custom receive loop Event-like/push semantics Allows for processing at variable rates Supports concurrent processing Coming Soon! support for Sessions & MessageReciever QueueClient queueClient = QueueClient.Create("myQ"); queueClient.OnMessage((message) => { //process message });

5 Demo: OnMessage usage

6 Message Browse Allows viewing available message without locking
Returns all properties and message body (counts as a message for billing) Enables debugging and monitoring scenarios QueueClient queueClient = QueueClient.Create("myQ"); var message = queueClient.Peek(); // does not lock the message var message = queueClient.Peek(fromSequenceNumber: 4); //specific starting point var messages = queueClient.PeekBatch(messageCount: 10); // supports batching

7 Demo: Message Browse

8 New enable and disable options
Added SendDisabled and ReceiveDisabled Useful in multi-tenant apps Can pause en-queue / de-queue and both QueueDescription qd = namespaceManager.GetQueue("myQ"); qd.Status = EntityStatus.Disabled; //all operations blocked qd.Status = EntityStatus.SendDisabled; //can continue to de-queue qd.Status = EntityStatus.ReceiveDisabled; //can continue to en-queue qd.Status = EntityStatus.Active; //all operations allowed namespaceManager.UpdateQueue(qd);

9 Auto delete for Idle entities
Supports dynamic topologies for messaging Minimum duration is 5mins Activity includes Send-Receive as well as Metadata updates TopicDescription topicDescription = new TopicDescription("myTopic"); topicDescription.AutoDeleteOnIdle = TimeSpan.FromMinutes(30); namespaceManager.CreateTopic(topicDescription);

10 Task based async APIs Task APIs as additional option to IAsyncResult operations Allows usage of async/await semantics in .NET 4.5 Client library still targets .NET 40 QueueClient queueClient = QueueClient.Create("myQ"); await queueClient.SendAsync(currentOrder);

11 Breaking changes in SDK 2.0
MessageBuffer APIs now removed Symmetric Server-Service development Service Bus client library in Azure SDK 2.0 is Not compatible with Service Bus 1.0 for Windows Server No corresponding On-premise release at this time SDK 1.8 remains supported for both Server and Service applications Can use Service Bus client library independent of any Azure SDK version used Will release next symmetric SDK at time of on-premise Service Bus release

12 Authentication and Security

13 Shared Access Signature Authentication
Introducing support for a new “Shared Access Signature” (SAS) authentication model Ability to configure Authorization Rules at the Service Bus namespace or entity level Authorization rules configured at namespace root grant rights to all entities in the namespace Each rule has an associated key Clients authenticate to Service Bus by signing the URI of accessed resource and an expiry with the key

14 SAS Configuration SharedAccessAuthorizationRule class consists of:
KeyName Rights (any of Listen, Send, Manage) Primary Key Secondary Key SharedAccessSignature should be computed as the signature of URI of accessed resource and an Expiry with the Primary Key

15 Demo: SAS Auth

16 Azure Portal updates

17 New portal & Management capabilities
Updates Customer KPIs: Successful operations, failed operations, total operations Configure page Management API docs/samples Portal operations can be performed thru APIs A management certificate has to be uploaded before user can access the APIs Sample is coming soon!

18 Demo: Service Bus portal

19 Resources Service Bus SDK 2.0 Release notes What’s new in SDK 2.0
Documentation Subscribe! Tutorials Samples

20 3/31/ :16 PM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Windows Azure Service Bus"

Similar presentations


Ads by Google