Simple Message Queue (SMQ, formerly MNS) supports pushing messages published to a topic to a queue. This topic describes how to push messages to a queue.
Step 1: Create a topic
Log on to the SMQ console.
In the left-side navigation pane, choose Topic Model > Topics.
In the top navigation bar, select a region.
On the Topics page, click Create Topic.
In the Create Topic panel, configure the following parameters, and then click OK.
Name: the name of the topic.
Maximum Message Length: the maximum length of the message body sent to the topic.
Enable Logging Feature: specifies whether to enable log management.
The Topic Details page of the target topic appears.
Step 2: Create a subscription
Log on to the SMQ console.
In the left-side navigation pane, choose Topic Model > Topics.
In the top navigation bar, select a region.
- On the Topics page, find the topic for which you want to create a subscription. Click Subscriptions in the Actions column.
In the View Subscriptions to {topic} Topic panel, click Subscriptions.
- On the Manage Subscriptions page, click Create Subscription.
In the Create Subscription panel, configure the following parameters, and then click OK.
Topic Name: the name of the topic to which the subscription belongs.
Subscription Name: Enter the subscription name.
Subscription: Select Queue.
Receiver Endpoint: Select an existing queue name.
(Optional) Message Filtering Tag: Enter a tag to filter messages.
Retry Policy: Select a retry policy.
Message Format: Select a message push format.
Step 3: Publish a message
Log on to the SMQ console.
In the left-side navigation pane, choose Topic Model > Topics.
In the top navigation bar, select a region.
On the Topics page, find the topic, and click Publish Message in the Actions column.
On the Try Publishing Message To Topic page, configure the following parameters, and then click Publish Message.
Message Content: Enter the message body.
Optional:Message Tag: Enter a tag to filter messages.
Subscription Type: Select Queue.