Coder Social home page Coder Social logo

amazon-sqs-dlq-replay-backoff's Introduction

SQS dead letter queue replay with backoff and jitter

The theory behind the implementation is described in this article: Exponential backoff and jitter

This serverless application deploys an AWS lambda function that replays each message of the specified DLQ with an exponential backoff and jitter. After some unseccessful retries the function throws an error which can move the message to a secondary DLQ.

App Architecture

Architecture diagram

Installation Instructions

Deploying the application with the Serverless Application Repository

  1. Create an AWS account if you do not already have one
  2. Go to the app's page on the sqs-dlq-replay-backoff Serverless Application Repository page and click "Deploy"
  3. Provide the required application parameters and click "Deploy"

Deploying the application leveraging SAM (AWS Serverless Application Model):

  1. Create an AWS account if you do not already have one
  2. Make sure to have sam cli installed.
  3. Go to the directory you just cloned
  4. Do a sam build --use-container (you need to have docker started)
  5. Do a sam --deploy guided (it will help you go through the different steps and also parameters available in the stack to configure the jitter and backoff)

Deployment Outputs

  1. ReplayFunctionArn - My ARN for the Lambda function if needed to be used externally.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-sqs-dlq-replay-backoff's People

Contributors

alexpinhel avatar mkrauklis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.