Azure Queue body is too large and exceeds the maximum permissible limit

谁说胖子不能爱 提交于 2019-12-01 11:44:24

The maximum size for a message in the Azure storage queue is 64KB (48 KB when using Base64 encoding) based on the latest Azure Storage Service Limits documentation as below.

It is non-configurable and at the moment Azure support also will not increase the size upon request.

https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#storage-limits

I will suggest you to reduce the size of your JSON message e.g. JSON minify

As others have stated, the Azure Storage Queue message size limit (64K) is a hard limit.

Aside from encoding, compression (minification), etc: The most common pattern to work around this limit is to not store your payload in the queue message; rather, store it in something like Blob storage, and only store the message type & metadata (if needed), along with a URI pointing to the blob containing your payload to process.

By following this pattern, and using blob storage for your payload, you effectively have potential payload size of 4+ TB. And you also have the ability to persist your payload if needed (whereas queue messages are deleted after processing).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!