• Distributed Message Service

dms
  1. Help Center
  2. Distributed Message Service
  3. User Guide
  4. FAQs
  5. What Is the Maximum Size of a Message?

What Is the Maximum Size of a Message?

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

Messages are sent one by one on the DMS console. 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 by a single API, 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 the Kafka SDK is used to produce messages, the maximum size of a single message is 10 MB. If the DMS console is used to produce messages, the maximum size of a single message is 512 KB.