stackery / redrive

Sample repo to demo how to setup redrive functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redrive demo

This is an example stack to demo how to setup a redrive policy should something fail as it is going through the pipeline.

Architecture

Setup with the event fork pipeline in mind.

The core setup contains the following:

  • SNS topic
  • SQS queue
  • Lambda function

Note: You'll likely have multiple SQS queues/Lambdas connected to the core SNS topic entry point in an enterprise prod environment...but I'm just showing one pipeline in this demo for simplicity purposes.

visualization

Redrive

In the event that an error is thrown, the Lambda will retry the code three times and then send it to the Dead Letter Queue (DLQ).

Once all errors have been cleaned up, you can then run the redrive function manually from the AWS Lambda console to feed the previously failed messages from thee DLQ back into the Queue to retry the job.

About

Sample repo to demo how to setup redrive functionality


Languages

Language:JavaScript 100.0%