All Products
Search
Document Center

Message Service:Endpoint

Last Updated:Dec 25, 2023

An endpoint is the address that you specify for a subscription to receive messages. When messages are published to a topic, Message Service (MNS) pushes the messages to the specified endpoints. You can specify an endpoint for multiple subscriptions.

  • HttpEndpoint

    • You can use HTTP URIs as endpoints.

    • Format: http://$example.com[/uri]. You can specify a multi-level directory in a URI.

    • Limit: The directory that you specify in a URI cannot start with mns-reserverd-.

    • MNS sends HTTP requests to the specified endpoints. You can process the requests at the endpoints.

  • QueueEndpoint

    • You can use queue URIs as endpoints.

    • Format: acs:mns:{REGION}:{AccountID}:queues/{QueueName}.

    • Limit: Messages can be pushed only to the queues that belong to the same region and account as topics.

    • MNS writes messages to the specified queues. You can call the ReceiveMessage operation to receive the messages. For more information about how to push messages and specify endpoints, see Push messages to a queue.