Help Center > > FAQs> What Is the Maximum Size of a Message?

What Is the Maximum Size of a Message?

Updated at: Mar 14, 2019 GMT+08:00

The size of each message, including the message body, labels and attributes, cannot exceed 512 KB.

On the DMS console, only one message can be sent at a time. The Message Body input box displays the remaining number of bytes allowed in a message as you are creating the message. If the message size exceeds 512 KB, you cannot click OK to create the message.

Multiple messages can be sent at a time through APIs, but the aggregated message size cannot exceed 512 KB. If the aggregated message size exceeds 512 KB, messages fail to be created and the API caller receives an error message "The message size is {message size}, larger than the size limit {max allowed size}.

If a Kafka SDK API is used to create messages in a Kafka queue, the maximum size of a single message is 10 MB. If the DMS console is used to create messages in a Kafka queue, the maximum size of a single message is 512 KB.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel