Skip to content

Feature request: Provide idempotency at handler level (via Middy middleware and decorator) (FR1) #1156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 5 tasks
ijemmy opened this issue Nov 11, 2022 · 2 comments
Closed
1 of 5 tasks
Assignees
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

Comments

@ijemmy
Copy link
Contributor

ijemmy commented Nov 11, 2022

Use case

Description of the feature request

Problem statement
Library users want to add idempotency attribute to the Lambda handler.

Check the design spec for details.

Summary of the feature

  • Provide two interface (Middy middleware and decorator ) to make a Lambda handler idempotent
  • Cover edge cases described in the design spec
  • I can pass the persistence layer as a parameter (that implements the PersitenceLayer interface)

Code examples
See the design spec

Story Checklist (for tracking progress)

  • As a developer, I would like to make my Lambda handler idempotent. My handler use TypeScript class and I want to wrap the handler with @idempotent_function() decorator.
  • As a developer, I would like to make my Lambda handler idempotent with Middy middleware
  • As a developer, I would like to switch my persistence layer to a different implementation, besides the default one (DynamoDB)

Definition of done

  • Include unit tests with 100% code coverage (or as much as it makes sense)
  • Code documentation (TS doc) on classes and public methods

Related issues, RFCs

#447

Solution/User Experience

See #447

Alternative solutions

N/A

Acknowledgment

@ijemmy ijemmy added triage This item has not been triaged by a maintainer, please wait idempotency This item relates to the Idempotency Utility labels Nov 11, 2022
@dreamorosi dreamorosi added this to the Idempotency - Beta release milestone Nov 11, 2022
@dreamorosi dreamorosi added feature-request This item refers to a feature request for an existing or new utility blocked This item's progress is blocked by external dependency or reason confirmed The scope is clear, ready for implementation and removed triage This item has not been triaged by a maintainer, please wait blocked This item's progress is blocked by external dependency or reason labels Nov 13, 2022
@dreamorosi dreamorosi changed the title Feature (idempotency): Provide idempotency at handler level (via Middy middleware and decorator) (FR1) Feature request: Provide idempotency at handler level (via Middy middleware and decorator) (FR1) Nov 14, 2022
@saragerion
Copy link
Contributor

Closing this issue as we will break down the unit of work different ones.

@github-actions
Copy link
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.

@dreamorosi dreamorosi added rejected This is something we will not be working on. At least, not in the measurable future and removed confirmed The scope is clear, ready for implementation labels Feb 17, 2023
@dreamorosi dreamorosi moved this from Coming soon to Closed in AWS Lambda Powertools for TypeScript Feb 17, 2023
@dreamorosi dreamorosi added completed This item is complete and has been merged/shipped and removed rejected This is something we will not be working on. At least, not in the measurable future labels Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants