Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure ServiceBus: limitations to send a batch via the REST API?

I'm using the Azure Service Bus REST API to send a batch of messages to a topic. My namespace is a "Standard" SKU, it means that I have a maximum message size of 256KB.

When using the batch send, it sounds like the limit is per batch (max is 256KB for the batch) and not per message. Nothing is really explained in the documentation, am I right?

And unfortunately, I receive a "Bad Request" error instead of a "Quota exceeded or message too large." error (status 403).

I want to know if I missed something here or if the batch size is also limited to 256KB? And why I didn't receive a 403 error in this case?

Thanks.

like image 437
David GROSPELIER Avatar asked Nov 29 '25 06:11

David GROSPELIER


1 Answers

The batch is treated no different from a single message. It's a payload. Payload cannot exceed 256KB on Standard Tier (1MB on Premium). Batch dodo cannot contain more than a 100 messages.

You can find more info on the topic and how to handle it in my blog post.

like image 146
Sean Feldman Avatar answered Dec 01 '25 20:12

Sean Feldman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!