Inactive message refers to the
InactiveMessages attribute, i.e., the total number of messages with the inactive status in the queue (approximate value).
Long polling refers to a mechanism where when the client sends a request to the server, the server will hold the connection when receiving the request and return a response message and close the connection until a new message arrives, and the client will send a new request to the server after processing the response message.
A message consumption request will return a response only after a valid message is fetched or the long-polling time elapses, which can avoid repeated invalid polling.
Retry policy refers to the
NotifyStrategy attribute of a subscription in CMQ, i.e., the policy used to perform retry when an error occurs during message push to receivers.
The retry policy is enabled by default, and you must select one of the following two options:
For retry verification, after a message is delivered to a subscriber, an HTTPS return code of 200 indicates a success.
A subscriber refers to a subscriber to a service in topic mode in CMQ.
ReceiptHandleis used to uniquely identify messages.
Active message refers to the
Activemessages attribute, i.e., the total number of messages with the active status in the queue (approximate value).
Polling wait time (
PollingWaitSeconds) refers to the maximum wait time for a polling to time out in seconds. Its value ranges from 0 to 30 seconds.
A request refers to the content sent by a consumer to a queue in order to get a message.
Hidden duration of fetched message (
VisibilityTimeout) refers to the duration after which a message will be sent to and processed by another process if it fails to be processed after being received. It will be counted in seconds immediately after a message is received, and its value ranges from 1 second to 43,200 seconds (i.e., 1 second–12 hours).
Produce) refers to an operation of writing a message into a topic by a CMQ producer.
A producer refers to a role that sends messages.
A dead letter queue is used to process messages that fail to be processed properly. After it is enabled, undeleted messages with consumption times that exceed the limit and expired messages will be delivered to the dead letter queue according to applicable rules.
A consumer refers to a role that receives messages.
A message ID is the unique identifier of a message, which consists of four parts:
Each message will receive a message ID assigned by the Tencent Cloud system, which can be returned to you through the
SendMessage API request.
Message retention (
MessageRetentionPeriod) refers to a process where messages that are produced by a producer but have not triggered delivery to subscribers or failed to be received by subscribers will be retained in the topic temporarily and be delivered again for multiple times. It is enabled by default and is not configurable. The maximum retention period is 1 day.
TDMQ for CMQ allows consumers to filter messages by tags, which ensures that they only consume messages that are relevant to them. After a tag is added, subscribers will receive only messages with the tag. If no tag is set, all messages will be sent to all subscribers.
Message receipt mode refers to the method for a consumer to get messages. Currently, only the pull mode is supported, that is, the consumer actively gets messages.
The message receipt mode (push) is the topic model of TDMQ for CMQ, which already supports active pushes.
A message handler (
ReceiptHandle) marks a message as manipulatable. Every time you read a message from a message receipt queue, you will receive a handler (
Handle) that can be used to manipulate the message at the same time.
You can use a message handler to delete or modify some attributes of a message. It is relevant to the message receipt operation rather than the message itself. To delete or modify a message, the message handler instead of the message ID must be provided, which means that a message can be modified/deleted only after it is received.
Message handlers provided by CMQ have a validity period and will expire after the preset duration (which is 30 seconds by default and can be customized) elapses. This effectively avoids faulty data operations and greatly reduces the risks that may be caused by handler disclosure.
Message content (
Message Body) refers to the received message body. The default encoding format of messages received and sent in Tencent Cloud is Base64, which is the same as that of the official SDK of Message Service.
Message lifecycle (
msgRetentionSeconds) refers to the maximum period of time during which a message can be retained. After the period specified by this parameter has elapsed since a message is sent to the queue, the message will be deleted no matter whether it has been fetched. It is measured in seconds.
The first consumption time of a message (
FirstDequeueTime) refers to the time when a message in a queue is consumed for the first time.
The next consumption time of a message (
NextVisibleTime) refers to the time when a received message can be consumed again.
Message consumption count (
DequeueCount) refers to the total number of times that a message is consumed in a queue.
Message digest (
MsgBodyMD5) is a fixed-length value uniquely corresponding to a message or piece of text, which is used to check whether the information is tampered with during consumption.
Maximum message length (
MaxMsgSize) refers to the maximum length of a message body that can be sent to a queue. It is measured in bytes and ranges from 1,024 to 65,536 bytes (i.e., 1–64 KB).