All Products
Search
Document Center

Simple Message Queue (formerly MNS):Overview

Last Updated:Oct 18, 2024

Simple Message Queue (formerly MNS) allows you to use the queue-based messaging model or the topic-based messaging model to send or receive messages. This helps implement the one-to-one or one-to-many consumption mode. This topic describes how to get started with SMQ.

Background information

SMQ provides the queue-based messaging model and the topic-based messaging model.

Get started with the queue-based messaging model

In this example, messages are sent or received in the SMQ console, as shown in the Use the queue-based messaging model to send or receive messages figure.

Figure 1. Use the queue-based messaging model to send or receive messages队列模型

To use the queue-based messaging model to send or receive messages in the SMQ console, perform the following steps:

  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 the Use the topic-based messaging model to send or receive messages figure.

Figure 2. Use the topic-based messaging model to send or receive messages主题模型

To use the topic-based messaging model to send or receive messages in the SMQ console, perform the following steps:

  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

For information about how to use SDKs for different programming languages to send and receive messages, see SDK reference.