generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityidempotencyThis item relates to the Idempotency UtilityThis item relates to the Idempotency Utility
Milestone
Description
Use case
Description of the feature request
Problem statement
If the request has already been received before, return the saved result from previous execution.
Check the design spec for details.
Summary of the feature
- Save the result in the persistence layer when it completes.
- If the Lambda handler receive the request with same payload, it should return a cached result from persistence result
- In the case that there is an existing record but there is no result (the status is still
IN_PROGRESS), throwIdempotencyItemAlreadyExists
- In the case that there is an existing record but there is no result (the status is still
- Edge case(s)
- The record may be expired. Check with Python version on how they handle this case. We should aim for the same behavior.
Code examples
See the design spec
Story Checklist (for tracking progress)
TBD
Definition of done
- Include unit tests with 100% code coverage
- Code documentation (TS doc) on classes and public methods
Related issues, RFCs
Solution/User Experience
See #447
Alternative solutions
N/AAcknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Python, Java
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityidempotencyThis item relates to the Idempotency UtilityThis item relates to the Idempotency Utility