The helper account cannot be used for CMQ operations at this time.
Terminology | Full name | English | Description |
CMQ | Cloud Message Queue | Cloud message queue | Tencent Cloud's message service includes queue model, topic model, high-performance message service and so on. |
Queue | Queue | Queue | Queue is a first-in-first-out data model. Producers can add data to the end of the queue by Concurrence, and consumers can pull (pull) data from the head of the queue by Concurrence. |
Active | Active | Can be consumed (visible) state | When the message is in Active state, it can be consumed by all consumers, but only one consumer can successfully consume it. At this time, the message becomes Inactive and is not visible to other consumers. |
Inactive | Inactive | Non-consumable (invisible) state | When a message is in the Inactive state, it indicates that the message is being consumed by a consumer, and other consumers cannot consume the message. |
(Batch) ReceiveMessage | (Batch) Receive Message | Consumption message | The ReceiveMessage operation simply sets the message from the Active state to the Inactive state so that the message cannot be consumed by other consumers. However, after consumption, Explicit has to call the (Batch) DeleteMessage operation to delete the message from the queue, otherwise, after the time specified by visibilityTimeout, the message becomes Active again and can be consumed by other consumers, resulting in unexpected duplicate messages. |
MaxMsgHeapNum | Maximum Message Heap Number | Maximum number of Message Retention | In order to prevent the message from being lost because the message is not consumed in time, the message service has the function of heap message. Heap has an upper limit on the number of messages. Producers can no longer add messages to the queue after the limit is exceeded. After the message is consumed and deleted, the producer can add the message to the queue. |
PollingWaitSeconds | Polling Wait Seconds | Long-polling Waiting Time for Message Receipt | When consumers want to pull messages from the queue for consumption, the queue may have no data for the time being. Consumers may not want to return immediately (similar to non-blocking mode) and want to wait for a period of time to see if a message will come. (similar to blocking mode), pollingWaitSeconds is similar to the timeout in blocking mode. After this time, it will return regardless of whether there is a message or not. If you want to consume messages nonblocking, set the value to 0. |
MsgRetentionSeconds | Message Retention Seconds | Message Lifecycle | Heap's message in the queue has a retention time, after which it has not been consumed by consumers, it will be deleted by the queue, and consumers can no longer consume it. |
ReceiptHandle | Receipt Handle | Message receipt handle | This handle is returned when the message is consumed, and only the handle that is currently consuming the message can delete the message. If the consumption time is too long and exceeds the visibilityTimeout, the message will be consumed by other consumers, and the previous consumer's handle to get the message will become invalid and cannot be used to delete the message. |
Qps throttling | QPS Throttling | QPS restriction | The term originally means a limit on the number of requests per second, but it is actually a limit on the number of messages per second. The number of requests per second for a single interface (SendMessage, ReceiveMessage, DeleteMessage),). But for batch interfaces (BatchSendMessage, BatchReceiveMessage, BatchDeleteMessage),), it is the sum of all batch values within 1 second. The purpose of this restriction is to provide users with a more stable and fair product. If you need a larger message limit, you can Submit a ticket Apply to us. |
cmq-queue-region.api.qcloud.com/v2/index.php
The region field needs to replace: gz (Guangzhou), sh (Shanghai) and bj (Beijing) with a specific region. If the machine used by the user is a Tencent Cloud server, the private network domain name should be preferred, otherwise the public network domain name should be selected.Terminology | English | Description |
Subscriber | Subscriber | Refers to the subscriber of the service in CMQ-Topic mode. |
Production | Produce | Refers to the operation of the producer to write a message to the Topic. |
Shipping | Subscription | Refers to the process of Topic's message to subscriber shipping. |
Message receiving mode (PUSH) | Message-receiving model (PUSH) | The Topic model of CMQ, which already supports the PUSH mode of active push. |
Retry policy | NotifyStrategy | The NotifyStrategy property of the subscription, which is the retry policy when an error occurs in pushing the message to the receiver. This policy is enabled by default. There are two options, one of which must be checked. <br> a. Backoff retry: retry 3 times with a random value between 10 and 20 seconds. After more than 3 times, the message is discarded for the subscriber and will not be retried. <br> b. Recession index retry (default check): retry 176 times, the total retry time is 1 day, the interval is: 2 ^0,2^ 1,. , 512, 512,. , 512 seconds. |
Message Lifecycle | MsgRetentionSeconds | The longest survival time of a message in TOPIC. After the time specified by this parameter from sending to the queue, the message will be deleted regardless of whether the message has been fetched or not. The default value is 86400s (1 day), and modification is not allowed. |
Max Message Length | MaxMsgSize | Limits the maximum length of the message body allowed to be sent to the queue; in units, byte, valid values range from 1024 to 65536byte, that is, 1K to 64K. |
Message Retention | MessageRetentionPeriod | On by default. There is a message from the producer, which has not yet triggered shipping to the subscriber, or the subscriber failed to receive the message. For the time being, heap went to the Topic and tried again. The project cannot be configured. The maximum heap time is 1 day. |
Retry verification | Status code | After Topic shipping arrives at the subscriber, if the HTTPS return code is 200, it will be considered successful. |
Add subscriber tags | FilterTag | When you add a subscriber, you can add FilterTag,. After adding FilterTag, the subscriber can only receive messages with that FilterTag. A single Tag is a string of no more than 16 characters, and a single subscriber can add up to 5 Tag. As long as one of the Tag, matches the filter tag of Topic, you can receive the message from Topic shipping. If the message does not have any tags, the subscriber cannot receive this type of message. |
Add message filter tags | Messagetag | That is, message label and message type, which are used to distinguish the message classification under the Topic of a certain CMQ. MQ allows consumers to filter messages by Tag, ensuring that consumers end up consuming only the types of messages they care about. This feature is not enabled by default. When it is not enabled, all messages are sent to all subscribers. When the subscriber sets Tag, the subscriber cannot receive the message because of a mismatch. The message filtering tag describes the label of message filtering in the subscription (only messages with consistent labels are pushed). A string with no more than 16 characters in a single Tag, and a single Message can add up to 5 Tag. |
Open log track | LoggingEnabled | Whether to enable the log management feature. True: enable, False: disable. When enabled, the original Log of CMQ is written to Cloud Object Storage COS. And users can do Log aggregation query through the CMQ console to avoid the tedious need to build their own analysis system. |
cmq-topic-region.api.qcloud.com/v2/index.php
The region field needs to replace: gz (Guangzhou), sh (Shanghai) and bj (Beijing) with a specific region. If the machine used by the user is a Tencent Cloud server, the private network domain name should be preferred, otherwise the public network domain name should be selected.
Was this page helpful?