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 Saga Java quickstart(saga-on-workflow) #956

Closed
wants to merge 7 commits into from

Conversation

skyao
Copy link
Member

@skyao skyao commented Nov 16, 2023

Description

This PR is to add a quickstart for saga pattern support in java.

The implementation of saga pattern is in lasted dapr-sdk-workflows v0.11.0-SNAPSHOT version which is not merged and released yet.

At this time, This PR is a preview edition:

  • Saga pattern support is still a proposal and under review and discussion.
  • This PR is to help to understand how to use saga (for solution saga-on-workflow)
  • This PR is not a final version and will keep updating during the proposal review and discussion
  • Don't merge this PR before the proposal is accepted and the design is finalized.

Issue reference

TBD: add issue here when the proposal is accepted, and the design is finalized.

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • The quickstart code compiles correctly
  • You've tested new builds of the quickstart if you changed quickstart code
  • You've updated the quickstart's README if necessary
  • If you have changed the steps for a quickstart be sure that you have updated the automated validation accordingly. All of our quickstarts have annotations that allow them to be executed automatically as code. For more information see mechanical-markdown. For user guide with examples see Examples.

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
@skyao skyao changed the title Saga on workflow Add Saga Java quickstart(saga-on-workflow) Nov 16, 2023
@skyao
Copy link
Member Author

skyao commented Nov 16, 2023

how to run this quickstart

Since the proposal of saga pattern support is still under review and discussion, the code of saga pattern implementation in dapr java sdk is in preview edition as described in PR dapr/java-sdk#956.

install dapr-sdk-workflows locally

To run this quickstart, we need to build and install dapr-sdk-workflows 0.11.0-SNAPSHOT dependency locally.

# clone the PR repo before it's merged
git clone git@github.com:skyao/java-sdk.git
cd java-sdk
# checkout to the saga-in-workflow branch
git checkout saga-in-workflow
# install dapr-sdk-workflows 0.11.0-SNAPSHOT locally
mvn clean install

run this quickstart

# clone the PR repo before it's merged
git clone git@github.com:skyao/quickstarts.git
cd quickstarts
# checkout to the saga-in-workflow branch
git checkout saga-in-workflow

cd workflow-saga/java/sdk

Then reference to the README.md file in workflow-saga/java/sdk folder.

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
@skyao
Copy link
Member Author

skyao commented Jan 9, 2024

Close this PR because we will choose saga in workflow.

@skyao skyao closed this Jan 9, 2024
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.

None yet

1 participant