All Products
Search
Document Center

Message Service:TopicMessage

Last Updated:Dec 25, 2023

This topic describes the parameters of topic messages. A message can be retained for up to one day in a topic. After the retention period ends, the message is collected by garbage collector regardless of whether the message is pushed to the endpoints.

Parameters

  • MessageId

    • The ID of the message.

    • The message ID is unique in the topic.

  • Message

    • The body of the message.

  • MessageMD5

    • The MD5 hash of the message body.

  • MessageTag

    • The tag of the message.

    • If you specify a tag when you publish the message, Message Service (MNS) pushes the message to the endpoints based on the tag.

  • PublishTime

    • The time when the message was published. The value is a UNIX timestamp. It is the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970.