Increasing the message size of the Service Bus

PK 316 Reputation points
2021-04-20T06:42:03.677+00:00

Hello,

From the specification here - https://azure.microsoft.com/en-au/pricing/details/service-bus/

I understand that the message size a service bus can carry for a single transaction is 1 MB for premium and 256 kb for standard.

I'm reaching out to check if there are any tweaks which can be made to increase the size. We need to support request body upto 3 MB.

Is it possible by any means?

Thanks,
PK

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
543 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,471 Reputation points
    2021-04-20T07:05:56.407+00:00

    Hi @PK

    Unfortunately, this is the hard limit for the message size for service bus SKUs and cannot be changed.
    Alternatively, if your business requirement needs more than 1 MB then your sender application should have the logic to split the message to the supported size and at the receiver side, you need to consume/join those messages together. You can leverage sessions in this case where all messages send a particular session will be received in FIFO order i.e. maintaining the order.

    The other option would be storing the message content in the azure storage blob/or any other storage. The sender application needs to store that message and now pass the storage URL while sending the message. At the receiver end, they need to pull the message content from the storage URL.

    If you want to go with premium SKU then there is a private preview to explore this new feature service bus premium supporting 100 MB of message size. Please let me know is you are interested in exploring it so we can enable this on your subscription.

    Note: This is a private preview and should not be used in your production environment until it is GA.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    4 people found this answer helpful.

0 additional answers

Sort by: Most helpful