Feature request: implement IdempotencyHandler
#1303
Labels
completed
This item is complete and has been merged/shipped
feature-request
This item refers to a feature request for an existing or new utility
idempotency
This item relates to the Idempotency Utility
Milestone
Use case
All the usages of the Idempotency utility described in #447 share most of their internal logic. This is because in all cases, there are some actions to be taken before and after the function being made idempotent.
For this reason the logic that handles idempotency can be extracted in its own class and reused across all access patterns. This class should be called
IdempotencyHandler
.Note that there's already an initial basic implementation of the class under
packages/idempotency/src
. As a part of this issue, the resolver should revisit this function and align the implementation with the version seen in Powertools for Python.Solution/User Experience
Users should not use this class directly. The class will be used under the hood by the decorator, Middy middleware, and wrapper function.
Alternative solutions
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: