Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Azure Development Cookbook Second Edition

You're reading from   Microsoft Azure Development Cookbook Second Edition Over 70 advanced recipes for developing scalable services with the Microsoft Azure platform

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781782170327
Length 422 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Developing Cloud Services for Microsoft Azure FREE CHAPTER 2. Deploying Quickly with Azure Websites 3. Getting Storage with Blobs in Azure 4. Going Relational with the Azure SQL Database 5. Going NoSQL with Azure Tables 6. Messaging and Queues with the Storage and Service Bus 7. Managing Azure Resources with the Azure Management Libraries 8. Going In-memory with Azure Cache Index

Adding messages to a Service Bus queue


In the chapter introduction, there is a comprehensive comparison between Service Bus queues and Storage queues. However, from the producer's perspective (which is the purpose of this recipe), we must keep in mind the following constraints:

  • The total message must be maximum 256 KB (quadruple of the Storage service)

  • The total queue size is up to 5 GB (significantly smaller than the Storage service)

  • In the case of TCP communication, there is a cap on the concurrent connections (currently the value is 100)

We are comparing the two platforms by pursuing the same goals; the Service Bus queue adds more advanced features that the Storage service does not implement.

In this recipe, we'll learn how to add messages to a Service Bus queue.

Getting ready

This recipe assumes the following code is in the application configuration file:

<appSettings>
  <add key="ServiceBusConnectionString" 
        value="Endpoint=sb://[your namespace].servicebus.windows.net;SharedSecretIssuer...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime