2 ms·
What problems have you encountered using the same SNS topic as the dead letter queue for the Lambda function?
by otterley 8y ago
What problems have you encountered using the same SNS topic as the dead letter queue for the Lambda function?
- philwelch 8y agoI haven’t even tried that because that sounds like an infinite retry scenario waiting to happen.
- otterley 8y agoIndeed it is - I was assuming, perhaps mistakenly, that that was the desired behavior. After all, why dispatch requests that are not to be processed?
- philwelch 8y agoIf a specific message fails to process multiple times, most often it’s because that particular message is malformed or invalid, or exposes an unhandled edge case in the processing logic, and will never successfully process, at which point continued attempts are both fruitless and wasteful. It’s better to retry a finite number of times and stash any messages that fail to process offline for further investigation. If there is an issue that can be resolved, it’s possible to feed deadletter messages back in for processing once the issue is addressed. Feeding your deadletter events back into your normal processing flow not only hides these issues but forces you to pay real money to fail to process them in an infinite loop that is hard if not impossible to diagnose and detect.