I'm looking to implement a pub/sub pattern on AWS, using Lambda functions as the publisher/subscriber with SNS in the middle. Each subscriber will have an SQS DLQ for persistence of messages that can't be processed. Is there an advantage to having an SQS queue between the SNS topic and the subscriber as well?
To phrase my question differently perhaps, is it better to have the pattern as Lambda -> SNS -> Lambda -> DLQ
or Lambda -> SNS -> SQS -> Lambda -> DLQ
?
Lambda -> SNS -> Lambda
. However, you then mention "SQS DLQ for persistence". Is this intended to be a separate SQS queue for each recipient? Could you possibly edit your question to clarify your intentions? Thank you. - John Rotenstein