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[preview edition] #954

Closed
wants to merge 6 commits into from
Closed

Conversation

skyao
Copy link
Member

@skyao skyao commented Oct 24, 2023

Description

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

The implementation of saga pattern is in lasted v1.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
  • 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.

@skyao
Copy link
Member Author

skyao commented Oct 24, 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#941.

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 [email protected]:skyao/java-sdk.git
cd java-sdk
# checkout to the saga branch
git checkout saga
# 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 [email protected]:skyao/quickstarts.git
cd quickstarts
# checkout to the saga branch
git checkout saga

cd workflow-saga/java/sdk

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

@skyao
Copy link
Member Author

skyao commented Nov 16, 2023

This PR is replaced by #956

In the saga proposal, two solutions will be presented for comparison and discussion:

  1. "saga-on-workflow": support Saga pattern as extension and no change to Dapr Workflow
  2. "saga-in-workflow": support Saga pattern in Dapr Workflow as build-in feature

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.

1 participant