全部产品
Search
文档中心

消息服务:Endpoint

更新时间:Apr 17, 2024

Endpoint是订阅主题时,指定接收消息的终端地址。当有消息发布到主题时,消息服务MNS会主动将消息推送到对应的Endpoint。多个Subscription可以指定同一个Endpoint。

  • HttpEndpoint

      • HTTP格式的Endpoint。

      • 格式:http://$example.com[/uri],支持多级URI。

      • 限制:Endpoint的URI不能以”mns-reserved-“开头。

      • 消息服务MNS将发送HTTP请求到指定的Endpoint,您在Endpoint端处理请求即可。

  • QueueEndpoint

      • 以队列的资源描述作为Endpoint。

      • 格式:acs:mns:{REGION}:{AccountID}:queues/{QueueName} 。

      • 限制:只支持推送到主题同地域同账号的队列中。

      • 消息服务MNS直接将消息写入到指定的队列中,您通过receive message接口读取消息。具体使用方式,请参见推送到队列