question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Service Bus] Limits on ServiceBusMessageBatch

See original GitHub issue

Issue

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 image
  • 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:open
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
HarshaNallurucommented, Oct 26, 2020

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.

0reactions
jeremymengcommented, Apr 15, 2022

No service doc available about this limit yet. Moving into backlog.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found