This topic describes how to increase the maximum size of a message in MNS.

To increase the maximum size of the message, call the SetQueueAttributes operation to set the MaximumMessageSize parameter. The MaximumMessageSize parameter specifies the maximum size of a message that can be sent to the queue. Unit: bytes. The MaximumMessageSize parameter can be set to a value that ranges from 1,024 bytes (1 KB) to 65,536 bytes (64 KB). If the message size exceeds 64 KB, we recommend that you store data in Object Storage Service (OSS). MNS stores only the URL that points to the data. For more information, see Transfer oversized messages.