Skip to content

Maintenance: consolidate IdempotencyHandler implementation #1508

Description

@dreamorosi

Summary

The Idempotency utility heavily relies on a class called IdempotencyHandler. This component contains the implementation for the idempotency logic and is expected to be used by all other Idempotency frontends (aka higher-order function, middleware, decorators).

Currently the Middy middleware implementation for Idempotency doesn't use the IdempotencyHandler class fully, which causes some of the logic being duplicated. This tech debt was assumed because the IdempotencyHandler was modelled after the Python implementation, which didn't take in account the Middy lifecycle.

Why is this needed?

To reduce tech debt and avoid code duplication, which converts in maintenance overhead.

Which area does this relate to?

Idempotency

Solution

Modify the IdempotencyHandler so that it exposes more granular methods that will allow the Middy middleware to offer idempotency according to its programming model, without having to reimplement the same logic.

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Activity

  1. added
    internalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
    idempotencyThis item relates to the Idempotency Utility
    confirmedThe scope is clear, ready for implementation
    on Jun 19, 2023
  2. added
    help-wantedWe would really appreciate some support from community for this one
    on Jul 31, 2023
  3. moved this from Backlog to Working on it in Powertools for AWS Lambda (TypeScript)on Aug 1, 2023
  4. self-assigned this
    on Aug 1, 2023
  5. removed
    help-wantedWe would really appreciate some support from community for this one
    on Aug 1, 2023
  6. github-actions commented on Aug 3, 2023

    @github-actions
    Contributor

    ⚠️ COMMENT VISIBILITY WARNING ⚠️

    Comments on closed issues are hard for our team to see.
    If you need more assistance, please either tag a team member or open a new issue that references this one.
    If you wish to keep having a conversation with other community members under this issue feel free to do so.

  7. added
    pending-releaseThis item has been merged and will be released soon
    and removed
    confirmedThe scope is clear, ready for implementation
    on Aug 3, 2023
  8. github-actions commented on Sep 18, 2023

    @github-actions
    Contributor

    This is now released under v1.13.0 version!

  9. added
    completedThis item is complete and has been merged/shipped
    and removed
    pending-releaseThis item has been merged and will be released soon
    on Sep 18, 2023
  10. moved this from Coming soon to Shipped in Powertools for AWS Lambda (TypeScript)on Sep 18, 2023
  11. removed
    internalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
    completedThis item is complete and has been merged/shipped
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

idempotencyThis item relates to the Idempotency Utility

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions