All Products
Search
Document Center

:Create a subscription

Last Updated:Sep 25, 2023

You can create a subscription for a topic and push messages that are sent to the topic to the subscription. This article describes how to create a subscription in the Message Service (MNS) console. In this example, messages are pushed to a queue.

Prerequisites

Procedure

  1. Log on to the MNS console.
  2. In the left-side navigation pane, click Topics.
  3. In the top navigation bar, select a region.
  4. On the Topics page, find the topic. Click View Subscriptions in the Actions column.

  5. In the View Subscriptions to Topic panel, click Subscriptions.

  6. On the Manage Subscriptions page, click Create Subscription.

  7. In the Create Subscription dialog box, set the following parameters and click OK.

    • Name: the name of the subscription.

    • Push Type: the push type of the subscription. In this example, set this parameter to Queue.

      The Push Type parameter can be set to one of the following values:

    • Receiver Endpoint: the endpoint of the receiver.

    • Optional:Message Filtering Tag: the tag that is used to filter messages.

    • Retry Policy: the retry policy that is applied if an error occurs during message delivery from an MNS topic to the receiver.

      The Retry Policy parameter can be set to one of the following values:

      • Backoff Retry

      • Exponential Decay Retry

    • Message Pushing Format: the format of the message that is pushed to the receiver.

      The Message Pushing Format parameter can be set to one of the following values:

      • SIMPLIFIED

      • JSON

      • XML

    The subscription appears on the Manage Subscription page.