Friday Fact: You can now send a 100 MB message to a Service Bus Queue or Topic

Azure Service Bus has several size limits and restrictions that developers should be aware of when designing and deploying their messaging solutions. These limits vary depending on the type of Service Bus entity (queues, topics, and subscriptions) and the pricing tier (Basic, Standard, or Premium).

Until recently, the maximum limit of a message that we could send to a Queue or Topic on a Service Bus was 1MB, and we had to use the Service Bus premium tier. Now, we can send a message up to a maximum of 100MB on the same premium tier

Here’s an overview of the key size limits and restrictions:

  • Message Size Limits
    • Maximum Message Size:
      • Basic and Standard Tiers: 256 KB per message.
      • Premium Tier: 100 MB per message.

Note: The total message size includes both the message body and headers (properties). If you need to send larger payloads, consider using Azure Blob Storage for large data and passing the Blob URL in the message.

  • Queue and Topic Size Limits
    • Maximum Size of Queues and Topics:
      • When creating queues and topics, you can configure their maximum size, which determines the total storage limit for all messages in the entity.
      • The Basic and Standard tiers offer 1 GB, 2 GB, 3 GB, 4 GB, and 5 GB size options.
      • In the Premium tier, you can scale up to 80 GB per messaging unit (MU), and each namespace can have up to 4 MUs, allowing for a maximum of 320 GB per namespace.

Community Note: It is very important to note that the 100MB message size is only for AMQP and not for HTTP and SBMP. For these protocols it is still 1 MB, even at the premium tier. – contribution from Chadi Al Souliman.

To lazy to read? We’ve got you covered! Check out our video version of this content!

I hope you find this helpful! If you liked the content or found it helpful and want to help me write more content, you can buy (or help buy) my son a Star Wars Lego! 

Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

turbo360

Back to Top