This topic describes how to get started with Message Service (MNS).
Background information
MNS provides the queue-based messaging model and the topic-based messaging model.
Queue-based messaging model: MNS queues are used to send messages from a producer to a consumer.
Topic-based messaging model: MNS topics are used to send messages from a publisher to multiple subscribers.
Get started with the queue-based messaging model
In this example, messages are sent and received in the MNS console. Figure 1 shows the procedure for using the queue-based messaging model.
To use the queue-based messaging model to send and receive messages in the MNS console, perform the following steps:
Get started with the topic-based messaging model
The topic-based messaging model supports multiple types of endpoints, such as email addresses, mobile numbers, queues, and HTTP or HTTPS servers. In this example, messages are sent to a queue. Figure 2 shows the procedure for using the topic-based messaging model.
To use the topic-based messaging model to send messages to a queue in the MNS console, perform the following steps:
References
For information about how to use SDKs for different programming languages to send and receive messages, see SDK reference.