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
Post a Comment