file

Getting Started with Topic Models

important

This article contains important information that needs your attention. Ignoring this information may affect your business. Please read it carefully.

This article shows you how to Message Service MNS Console Start using queue model quickly.

prerequisite

Activate the message service MNS and authorize it

Create Queue

  1. Sign in Message Service MNS Console

  2. On the left navigation bar, click Queue List

  3. In the top menu bar, select Region.

  4. stay Queue List Page, click Create Queue

  5. stay Create Queue The panel configures the following parameters, and then click determine

    • name : Queue name.

    • Maximum message length : The maximum length of the message body sent to the queue.

    • Long polling time : When there is no message in the queue, the maximum waiting time of the ReceiveMessage request of the queue.

    • Message visibility timeout : The duration after the message is taken from the queue and changed from Active to Inactive.

    • Message saving duration : The longest message lifetime in the queue. After the time specified by this parameter has elapsed since the message was sent to the queue, the message will be deleted regardless of whether it is retrieved.

    • Message timing time : All messages sent to the queue will be consumed after the time specified by this parameter.

    • Enable logging : Whether to enable the log management function.

    Queue List Page target queue has been created.

create themes

  1. Sign in Message Service MNS Console

  2. On the left navigation bar, click Topic list

  3. In the top menu bar, select Region.

  4. stay Topic list Page, click create themes

  5. stay create themes Panel, configure the following parameters, and then click determine

    • name : Topic name.

    • Maximum message length : The maximum length of the message body sent to the subject.

    • Enable logging : Whether to enable the log management function.

    The page jumps to the Subject details Page.

Create Subscription

You can create a subscription for a topic and push the messages sent to the topic to the queue that subscribes to the topic.

  1. stay Topic list Page, find the target topic, on its right operation Column Click View Subscription

  2. stay View subscriptions to topics Panel, click subscription management

  3. stay subscription management Page, click Create Subscription

  4. stay Create Subscription Panel, configure the following parameters, and then click determine

    • name : subscription name.

    • Push Type : The push type of the subscription. The default is HTTP.

    • Receiving end address : Address of the receiving end of the push type.

    • Optional: Message Filter Label : Filter messages through the set label.

    • Retry Policy : The retry policy when an error occurs in pushing a message to the receiving end.

      The retry policy supports selecting any of the following types:

      • Back off retry

      • Exponential decay retry

    • Message push format : Set the message format of the push message to the receiver.

      The message push format can be any of the following types:

      • SIMPLIFIED

      • JSON

      • XML

    subscription management Page target subscription has been created.

Publish message

You can push the messages published to the topic to the target queue of the subscription on the console.

  1. stay Topic list Page, find the target topic, on its right operation Column Click Publish message

  2. stay Quick experience to publish messages to topics Page, configure the following parameters, and then click Publish message

    • Message content : The body of the message to be published.

    • (Optional) Message label : Label used for message filtering.

    • Push subscription type : The subscription type of the message pushed to the topic. This article takes queues as an example.

    The page shows that the message was sent successfully.

receive messages

After the message is published successfully, you can take the message from the queue and compare it with the message published to the topic to confirm whether the received message is consistent with the published message. This article describes how to receive messages pushed to the queue by topics on the console.

  1. stay Queue List Page, find the target queue, on its right operation Column Selection more > Send and receive messages

  2. Optional: stay Queue messaging quick experience Of the page receive messages Area, click Edit receive message parameters , on Edit receive message parameters Panel Configuration Maximum number of pieces obtained at a time and poll time , and then click determine

  3. stay Queue messaging quick experience Of the page receive messages Area, click receive messages

    receive messages The area displays a list of messages for the queue.

  4. Optional: Find the target message in the message list, on the right side operation Column Click details , on Message Details View the message content and other information in the dialog box.

Delete Queue

  1. stay Queue List Page, find the target queue, on its right operation Column Selection more > delete

  2. stay Tips Dialog box, read the prompt, and then click confirm

    Queue List Page target queue has been deleted.

Delete Topic

  1. stay Topic list Page, find the target topic, on its right operation Column Selection more > delete

  2. stay Tips Dialog box, read the prompt, and then click confirm

    Topic list Page target theme has been deleted.

    warning

    Once the topic is deleted, the data cannot be recovered.

  • Introduction to this page (1)