# aws-lambda-suppressor **Repository Path**: mirrors_barchart/aws-lambda-suppressor ## Basic Information - **Project Name**: aws-lambda-suppressor - **Description**: JavaScript utility for suppressing duplicate AWS Lambda invocations - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @barchart/aws-lambda-suppressor [![AWS CodeBuild](https://codebuild.us-east-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiQnhYblNFR25BSGFCbjUxZVBwWUhIQUFuSVJCcEkvN1BsYWlzUTZQZWhSM2F4RUsyN3pHZEpuQWZpTVAwd3RlRkpKMWQzQVU5RXYxb2hPaHloeGtGUEg4PSIsIml2UGFyYW1ldGVyU3BlYyI6ImdlTjU5Ujk5L1lyeXVLdTUiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)](https://github.com/barchart/aws-lambda-suppressor) [![NPM](https://img.shields.io/npm/v/@barchart/aws-lambda-suppressor)](https://www.npmjs.com/package/@barchart/aws-lambda-suppressor) A *public* JavaScript package for tracking and suppressing duplicate invocations of [AWS Lambda Functions](https://aws.amazon.com/lambda/). ### Workflow * Each Lambda invocation includes an ```event``` object. * Depending on the ```event``` source, a unique identifier can usually be extracted. * The [```DynamoMessageValidator```](./lib/dynamo/DynamoMessageValidator.js) 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](https://github.com/barchart/common-node-js) library. * First, instantiate a [```LambdaEventValidator```](https://github.com/barchart/common-node-js/blob/master/aws/lambda/validators/LambdaEventValidator.js) and add a [```DynamoMessageValidator```](./lib/dynamo/DynamoMessageValidator.js) instance. * Then, plug the [```LambdaEventValidator```](https://github.com/barchart/common-node-js/blob/master/aws/lambda/validators/LambdaEventValidator.js) into your [```LambdaHelper```](https://github.com/barchart/common-node-js/blob/master/aws/lambda/LambdaHelper.js) by overriding its ```getValidator``` function. ### License This software is provided under the MIT license.