-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Add Idempotency Package #163
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
feat: Add Idempotency Package #163
Conversation
libraries/src/AWS.Lambda.Powertools.Idempotency/AWS.Lambda.Powertools.Idempotency.csproj
Outdated
Show resolved
Hide resolved
libraries/src/AWS.Lambda.Powertools.Idempotency/AWS.Lambda.Powertools.Idempotency.csproj
Outdated
Show resolved
Hide resolved
…tools-dotnet into feature/idempotency
…estoretests. fix tests
# Conflicts: # libraries/AWS.Lambda.Powertools.sln
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #163 +/- ##
===========================================
+ Coverage 62.54% 68.94% +6.40%
===========================================
Files 61 79 +18
Lines 2627 3433 +806
===========================================
+ Hits 1643 2367 +724
- Misses 984 1066 +82
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
… to update the MD5 Hash in tests
…ontainer creation TestFixture.
…ith Theory for both async and sync handlers.
libraries/src/AWS.Lambda.Powertools.Idempotency/Persistence/BasePersistenceStore.cs
Outdated
Show resolved
Hide resolved
libraries/src/AWS.Lambda.Powertools.Idempotency/Persistence/DataRecord.cs
Outdated
Show resolved
Hide resolved
libraries/src/AWS.Lambda.Powertools.Idempotency/IdempotentAttribute.cs
Outdated
Show resolved
Hide resolved
libraries/src/AWS.Lambda.Powertools.Idempotency/IdempotentAttribute.cs
Outdated
Show resolved
Hide resolved
libraries/tests/AWS.Lambda.Powertools.Idempotency.Tests/Handlers/IdempotencyFunction.cs
Outdated
Show resolved
Hide resolved
libraries/src/AWS.Lambda.Powertools.Idempotency/Persistence/BasePersistenceStore.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks for your contribution.
Issue number: #164
Summary
Changes
Introduce Idempotency package to convert Lambda functions into idempotent operations which are safe to retry.
User experience
This is a new package, Here is a summary of how to use the package
1- Install the package
2- Prepare DynamoDB table to store request and response details
3- Configure the Idempotency package using
Idempotency.Configure
4- Add the
Idempotent
attribute on top of the functionChecklist
Please leave checklist items unchecked if they do not apply to your change.
Is this a breaking change?
NoRFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
View rendered docs/core/idempotency.md
View rendered libraries/src/AWS.Lambda.Powertools.Idempotency/README.md