Java – Amazon SNS – > SQS message body

I am sending a message from SNS topic to SQS When I check the body of the SQS message at the client, the entire message metadata is being sent in the SQS body

1. E. if I send the message "Hello world" from the subject, 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"
}

This is a bit annoying because I have to split the message body at the other end Speed is very important in this application, so I want to eliminate this Is there any way to send messages from SNS and ignore the rest of the metadata?

Thank you, Ben

Solution

SNS recently introduced a feature that allows you to set "original mail delivery" on SNS topics

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

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>