本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
向 Amazon SQS佇列發出 Amazon SNS通知以進行非同步處理
Amazon SNS
當您訂閱 Amazon SQS佇列至 Amazon SNS主題時,您可以將訊息發佈至主題,Amazon 則會將 Amazon SQS 訊息SNS傳送至訂閱的佇列。Amazon SQS 訊息包含發佈至主題的主題和訊息,以及JSON文件中訊息的中繼資料。Amazon SQS 訊息看起來與下列JSON文件類似。
{ "Type" : "Notification", "MessageId" : "63a3f6b6-d533-4a47-aef9-fcf5cf758c76", "TopicArn" : "arn:aws:sns:us-west-2:123456789012:MyTopic", "Subject" : "Testing publish to subscribed queues", "Message" : "Hello world!", "Timestamp" : "2012-03-29T05:12:16.901Z", "SignatureVersion" : "1", "Signature" : "EXAMPLEnTrFPa3...", "SigningCertURL" : "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem", "UnsubscribeURL" : "https://sns.us-west-2.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-west-2:123456789012:MyTopic:c7fe3a54-ab0e-4ec2-88e0-db410a0f2bee" }