亚马逊SNS - > SQS邮件正文 [英] Amazon SNS -> SQS message body

查看:138
本文介绍了亚马逊SNS - > SQS邮件正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发送消息从SNS话题的SQS。当我检查SQS邮件的正文我的客户端上,整个消息的元数据被发送的SQS身上。

I'm sending a message from an SNS topic to an SQS. When I'm checking the body of the SQS message on my client, the whole of the message metadata is being sent in the SQS body.

即。如果我从主题发送消息的Hello World,我的客户端接收:

I.E. if I'm sending a message "Hello World" from the topic, my client is receiving:

    BenFlowers {
  "Type" : "Notification",
  "MessageId" : "84102bd5-8890-4ed5-aeba-c15fafc926dc",
  "TopicArn" : "arn:aws:sns:eu-west-1:534706846367:HelloWorld",
  "Message" : "hello World",
  "Timestamp" : "2012-06-05T13:44:22.360Z",
  "SignatureVersion" : "1",
  "Signature" : "Qzh0qXhijBKylaFwc9PGE+lQQDwHGWkIzCW2Ld1eVrxNfSem4yyBTgouqGX26V0m1qhFD4RQcBzE3oNqx5jFhJfV4hN45FNcsFVnmfLPGNUTmJWblSk8f6znWgTy8UtK9xrTeNYzK59k3VJ4WTJ5kCEj+2vH7sBV15fAXeCAtdQ=",
  "SigningCertURL" : "https://sns.eu-west-1.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem",
  "UnsubscribeURL" : "https://sns.eu-west-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:eu-west-1:534706846367:HelloWorld:8a3acde2-cb0b-4a56-9b9c-b75ed7307556"
}

这是一个有点讨厌,因为我不得不在另一端的邮件正文分手了。速度,所以我想消除这种pretty的在此应用程序的重要。有没有什么办法可以只发送来自SNS的消息,而忽略了元数据的其他人呢?

This is a bit annoying as I am having to split the message body up on the other end. Speed is pretty important in this application so i would like to eliminate this. Is there any way to just send the message from the SNS and ignore the rest of the metadata?

谢谢, 本

推荐答案

SNS最近推出了一项功能,允许您设置在一个SNS主题的原始邮件传递。

SNS recently rolled out a feature that allows you to set 'raw message delivery' on an SNS topic.

HTTP://docs.aws。 amazon.com/sns/latest/dg/large-payload-raw-message.html

这篇关于亚马逊SNS - > SQS邮件正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆