1.2.6 • Published 13 days ago
@barchart/aws-lambda-suppressor v1.2.6
@barchart/aws-lambda-suppressor
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.
- First, instantiate a
LambdaEventValidator
and add aDynamoMessageValidator
instance. - Then, plug the
LambdaEventValidator
into yourLambdaHelper
by overriding itsgetValidator
function.
License
This software is provided under the MIT license.
1.2.6
13 days ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago