You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[How to support Powertools for AWS Lambda (TypeScript)?](#how-to-support-powertools-for-aws-lambda-typescript)
18
-
-[Becoming a reference customer](#becoming-a-reference-customer)
19
-
-[Sharing your work](#sharing-your-work)
20
-
-[Using Lambda Layer](#using-lambda-layer)
18
+
-[Becoming a reference customer](#becoming-a-reference-customer)
19
+
-[Sharing your work](#sharing-your-work)
20
+
-[Using Lambda Layer](#using-lambda-layer)
21
21
-[License](#license)
22
22
23
23
## Intro
24
24
25
-
This package provides a utility to implement idempotency in your Lambda functions.
25
+
This package provides a utility to implement idempotency in your Lambda functions.
26
26
You can either use it to wrap a function, decorate a method, or as Middy middleware to make your AWS Lambda handler idempotent.
27
27
28
28
The current implementation provides a persistence layer for Amazon DynamoDB, which offers a variety of configuration options. You can also bring your own persistence layer by extending the `BasePersistenceLayer` class.
29
29
30
30
## Key features
31
31
32
-
* Prevent Lambda handler from executing more than once on the same event payload during a time window
33
-
* Ensure Lambda handler returns the same result when called with the same payload
34
-
* Select a subset of the event as the idempotency key using JMESPath expressions
35
-
* Set a time window in which records with the same payload should be considered duplicates
36
-
* Expires in-progress executions if the Lambda function times out halfway through
32
+
- Prevent Lambda handler from executing more than once on the same event payload during a time window
33
+
- Ensure Lambda handler returns the same result when called with the same payload
34
+
- Select a subset of the event as the idempotency key using JMESPath expressions
35
+
- Set a time window in which records with the same payload should be considered duplicates
36
+
- Expires in-progress executions if the Lambda function times out halfway through
Note that you can also specify a JMESPath expression in the Idempotency config object to select a subset of the event payload as the idempotency key. This is useful when dealing with payloads that contain timestamps or request ids.
137
+
Note that you can also specify a JMESPath expression in the Idempotency config object to select a subset of the event payload as the idempotency key. This is useful when dealing with payloads that contain timestamps or request ids.
0 commit comments