Skip to content

barchart/aws-lambda-suppressor

Repository files navigation

@barchart/aws-lambda-suppressor

AWS CodeBuild NPM

A public JavaScript package for tracking and suppressing duplicate invocations of AWS Lambda Functions.

Workflow

  • Each Lambda invocation includes an event object.
  • Depending on the event source, a unique identifier can usually be extracted.
  • The DynamoMessageValidator saves these unique identifiers to DynamoDB (using a conditional writes).
  • Failure indicates another Lambda has already processed the same event and processing should be suppressed.

Usage

This package is typically used with a simple framework found in the @barchart/common-node-js library.

License

This software is provided under the MIT license.