[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-fifo-sqs-redrive":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":32,"level":33,"meta":34,"patternArch":35,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Ffifo-sqs-redrive.json","Redrive Amazon SQS FIFO Queue messages from DLQ",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14],"sam deploy --guided","The SAM template deploys Amazon SQS FIFO queues with DLQ and AWS Lambda functions to simulate the redrive capability of SQS FIFO queues from DLQ.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Ffifo-sqs-redrive","serverless-patterns\u002Ffifo-sqs-redrive","fifo-sqs-redrive","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30,31],"This template creates two Amazon SQS queues - MyOriginalQueue.fifo and MyReProcessQueue.fifo along with DLQ MyDeadLetterQueue.fifo.","The template also creates two AWS Lambda functions MyOriginalQueueFunction and ReProcessQueueFunction to poll messages from MyOriginalQueue.fifo and MyReProcessQueue.fifo respectively through event source mapping.","The Lambda function MyOriginalQueueFunction raises exception to simulate message processing failure. Hence the message moves to DLQ MyDeadLetterQueue.fifo once the retry is exhausted.","We then redrive the message from DLQ MyDeadLetterQueue.fifo to MyReProcessQueue.fifo using AWS CLI command.","Message is successfully processed by ReProcessQueueFunction Lambda function.","Python","200",{},{"icon1":36,"icon2":41,"icon3":45,"line1":48},{"x":37,"y":38,"service":39,"label":40},20,30,"sqs","Amazon SQS",{"x":42,"y":38,"service":43,"label":44},50,"lambda","AWS Lambda",{"x":37,"y":46,"service":39,"label":47},70,"Amazon SQS (DLQ)",{"from":49,"to":50},"icon1","icon2",{"bullets":52},[53,56],{"text":54,"link":55},"Moving messages out of a dead-letter queue","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-dead-letter-queues.html#sqs-dead-letter-queues-redrive",{"text":57,"link":58},"AWS CLI Command to start message redrive","https:\u002F\u002Fawscli.amazonaws.com\u002Fv2\u002Fdocumentation\u002Fapi\u002Flatest\u002Freference\u002Fsqs\u002Fstart-message-move-task.html","patterns\u002Ffifo-sqs-redrive",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","ZN5Ky65vUemDcl31ZZEt0lJ8HpUTcw4yRLukTP3L6Qw",1779446118654]