Overview

更新时间:
复制 MD 格式

Simple Message Queue (formerly MNS) supports one-to-one messaging via queues and one-to-many messaging via topics. This guide helps you get started with SMQ.

Messaging models

SMQ provides two messaging models:

Get started with the queue-based messaging model

Messages are sent and received in the SMQ console as shown in Queue-based messaging workflow.

Figure 1. Queue-based messaging workflowQueue model

To send and receive messages using the queue model in the SMQ console:

  1. Create a queue.

  2. Send messages

  3. Receive messages

  4. Delete a queue

Get started with the topic-based messaging model

The topic-based messaging model allows you to send messages to a queue as shown in Topic-based messaging workflow.

Figure 2. Topic-based messaging workflowTopic model

To send and receive messages using the topic model in the SMQ console:

  1. Create a queue

  2. Create a topic

  3. Create a subscription

  4. Publish messages

  5. Receive messages

  6. Delete a queue

  7. Delete a topic

References

To send and receive messages programmatically, use Console SDKs or Client SDKs.