This topic describes how to get started with MNS.

Background information

MNS provides the following two types of message services: queue-based message services and topic-based message services.

Get started with queue-based message services

In this example, messages are sent and received in the MNS console. The procedure is shown in Figure 1.

Figure 1. Procedure of queue-based message services
Queues

To send and receive messages in the MNS console, perform the following steps:

  1. Activate Message Service
  2. Create a queue
  3. Send messages
  4. Receive messages

Get started with topic-based message services

Topic-based message services support multiple endpoints, such as email addresses, mobile numbers, queues, and HTTP or HTTPS servers. In this example, messages are sent to queues. The procedure is shown in Figure 2.

Figure 2. Procedure of topic-based message services
Queues

To send messages to a queue in the MNS console, perform the following steps:

  1. Activate Message Service
  2. Create a queue
  3. Create a topic
  4. Create a subscription
  5. Publish a message
  6. Receive messages

References

For information about how to use multi-language SDKs to send and receive messages, see SDK reference.