Skip to content

Commit

Permalink
feature: Idempotency module (#717)
Browse files Browse the repository at this point in the history
* Move JSON config to a new utility module

Move ObjectMapper and JMESPath config to a new module, to be reused by other powertools modules

* Use new utility module for JSON config

* Idempotency module

* Idempotency module example

* Idempotency module added to lambda-powertools

* solve JDK 16 build

* refactoring to simplify 'around' method

* solve javadoc warnings

* PR #717: document exceptions

* PR #717: move cache to utilities

* PR #717: native libs for dynamo & sqlite

* PR #717: changes post review

* PR #717: add modules to GitHub workflows

* PR #717: fix utilities dependency

* PR #717: fix utilities dependency

* PR #717: fix utilities dependency

* PR #717: upgrade utilities and idempotency version to 1.10.3

* PR #717: end to end test with a handler

* PR #717: upgrade version in example

* PR #717: expiration in seconds instead of ms

* PR #717: new test

* adding documentation

* removing unused dependencies

* sqlite dependency for Mac M1

* update doc for sqlite dependency on M1

* change expiration to duration

* update doc for utilities

* PR #717: rename utilities into serialization

* PR #717: move back LRU into idempotency module

* PR #717: local cache disabled by default

* PR #717: update documentation

- add installation guide
- sam template indentation
- local cache disabled by default
- + minors changes
  • Loading branch information
jeromevdl authored Feb 16, 2022
1 parent 3a41ff9 commit fc95eed
Show file tree
Hide file tree
Showing 68 changed files with 5,395 additions and 196 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:
paths:
- 'powertools-cloudformation/**'
- 'powertools-core/**'
- 'powertools-serialization/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-idempotency/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'powertools-test-suite/**'
Expand All @@ -22,10 +24,12 @@ on:
paths:
- 'powertools-cloudformation/**'
- 'powertools-core/**'
- 'powertools-serialization/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-idempotency/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'powertools-test-suite/**'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/spotbugs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
paths:
- 'powertools-cloudformation/**'
- 'powertools-core/**'
- 'powertools-serialization/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-parameters/**'
- 'powertools-idempotency/**'
- 'powertools-metrics/**'
- 'powertools-test-suite/**'
- 'pom.xml'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ hs_err_pid*

# Maven build
target/
native-libs/

######################
# IntelliJ
Expand Down
Binary file added docs/media/idempotent_sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/media/idempotent_sequence_exception.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fc95eed

Please sign in to comment.