【发布时间】:2019-06-20 17:07:53
【问题描述】:
SQS“ReceiveMessage”端点有两个似乎做同样事情的参数,我不理解 API 文档。谁能解释一下区别:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html
AttributeName.N
A list of attributes that need to be returned along with each message
MessageAttributeName.N
The name of the message attribute, where N is the index.
...
When using ReceiveMessage, you can send a list of attribute names to receive, or you can return all of the attributes by specifying All
似乎它们都做同样的事情,即指定应在获取的消息上返回哪些属性。 有什么区别吗?如果不是,哪个是首选?
【问题讨论】:
标签: amazon-web-services amazon-sqs