All Products
Search
Document Center

:Endpoint

Last Updated:Sep 02, 2024

An endpoint is the address that you specify for a subscription to receive messages. When messages are published to a topic, Simple Message Queue (formerly 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-reserved-.

    • SMQ 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.

    • SMQ 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.