[Service Bus] Limits on ServiceBusMessageBatch
See original GitHub issueIssue
There is a limit of 4500 messages that can be sent on the link
To repro
- put a byte of buffer in the body for each message
- keep adding messages with the
tryAdd
method - A total of 33K messages will be added
- Upon sending the batch, service throws an error
- If stopped adding messages at 4500, send works perfectly fine
Thanks to @MiYanni for the find!
TODO
- Reach out to the service team on the limit
- Ideal solution: link should have the max_number_of_messages that can be sent along with the max_size, which could be used to restrict adding messages when tried to add more with
tryAdd()
- Add a test upon clarifying
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Microsoft Azure Service Bus quotas and limits
Quota name Scope Value
Number of concurrent connections on a namespace Namespace Net Messaging: 1,000. A...
Maximum size of a message ID Entity 128
Maximum size...
Read more >Service Bus Batching | The Long Walk
You can batch these; and, in fact, Azure Service Bus has a little feature that allows you to do this: ServiceBusMessageBatch.
Read more >c# - Best practice for receiving large messages on ServiceBus ...
The maximum size of the messages that can be processed in batch is 256 KB. The batch gets rejected if the size id...
Read more >Sending Large Batches to Azure Service Bus | Mikhail Shilkov
Azure Service Bus client supports sending messages in batches ... To limit the scope, I will restrict the article to the following ...
Read more >Class ServiceBusMessageBatch | Azure SDK for .NET
A set of ServiceBusMessage with size constraints known up-front, ... ServiceBus.dll. Syntax. public sealed class ServiceBusMessageBatch : IDisposable ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just tested event-hubs, it doesn’t seem to have the same limit. I was able to add the messages until I maxed out w.r.t max_batch_size and could send the batch.
No service doc available about this limit yet. Moving into backlog.