Skip to content
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

Add compensations example to Typescript and Java patterns #73

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

tillrohrmann
Copy link
Contributor

@tillrohrmann tillrohrmann commented Jan 19, 2024

This PR adds an example for how to use compensations to leave the system in a consistent state in the presence of terminal exceptions (cancellations and deliberate usage of it). The example was added to the TS patterns and the newly created Java patterns. The compensations example is based on restatedev/restate-holiday.

This fixes #52.

Copy link
Collaborator

@gvdongen gvdongen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Will be very helpful for users!

java/patterns/README.md Show resolved Hide resolved
@tillrohrmann
Copy link
Contributor Author

Thanks a lot for your review @gvdongen, @slinkydeveloper and @pcholakov. I've addressed your comments. Will merge the PR once GHA gives green light.

@tillrohrmann tillrohrmann force-pushed the issues/52 branch 2 times, most recently from f913b4a to b1754b2 Compare January 23, 2024 14:57
@tillrohrmann tillrohrmann merged commit c7c99fb into restatedev:main Jan 23, 2024
2 checks passed
@tillrohrmann tillrohrmann deleted the issues/52 branch January 23, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add example with compensations to the examples repo
4 participants