json - SNS SQS fanout architecture -


looking @ the documentation pattern says

the amazon sqs message contains subject , message published topic along metadata message in json document

so when publish sns topic, properties forwarded subject of notification, , default parameter? mean if want send json queues have stringify , set default parameter of notification?

if check out examples section of sns docs can see there options specify messages email, https, etc including sqs. if want send queue specific information on notification can put in there , overwrite default parameter. example in node

sns.publish({   topicarn: topicarn,   messagestructure: 'json',   message: json.stringify({     default: json.stringify(defaultmessagejson),     sqs: json.stringify(sqsmessagejson)   }) }) 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -