All project notes

Engineering

CloudFormation resources for webhook retries

CandySync declared its retry queues and linked them to Lambda consumers in the webhook service.

CandySync configured unsuccessful deliveries to move from its outbound queue to a slower retry queue. Messages that exhausted those retries moved to a dead-letter queue.
Illustrative diagram

The framework’s resources section accepts AWS CloudFormation definitions alongside Lambda functions. SalesCandy used it in the CandySync webhook to declare outbound delivery queues and their SQS redrive policies. The outbound queue could move repeatedly unsuccessful messages to a slower retry queue, which had its own Lambda consumer. That retry queue in turn pointed to a dead-letter queue for messages that exhausted its receive limit. A change to that retry path could be reviewed alongside the function that consumed it.

SalesCandy Git evidence — Dodol/candysync-webhook at ceaf72f (19 November 2022), serverless.yml. AWS infrastructure resources