-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: add saga state machine Java stream builder support #5849
Merged
wt-better
merged 10 commits into
apache:summer-code_sagas
from
ptyin:feature/saga-builder
Oct 26, 2023
Merged
feature: add saga state machine Java stream builder support #5849
wt-better
merged 10 commits into
apache:summer-code_sagas
from
ptyin:feature/saga-builder
Oct 26, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## summer-code_sagas #5849 +/- ##
====================================================
Coverage ? 49.19%
Complexity ? 4566
====================================================
Files ? 845
Lines ? 28999
Branches ? 3597
====================================================
Hits ? 14267
Misses ? 13258
Partials ? 1474 |
ptyin
force-pushed
the
feature/saga-builder
branch
from
September 20, 2023 08:23
f41995d
to
348a944
Compare
LGTM |
…teMachineBuilderImpl#build
ptyin
force-pushed
the
feature/saga-builder
branch
from
October 26, 2023 08:22
32ed087
to
d369ddd
Compare
wt-better
added
the
type: feature
Category issues or prs related to feature request.
label
Nov 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ⅰ. Describe what this PR did
Add APIs for saga state machine orchestration at the Java language level.
Why
The current solution for Seata Saga statemachine orchestration employs a scheme in which state machine definitions are declared in JSON DSL and parsed by the
StateMachineParser
to obtain aStateMachine
.While the JSON-based orchestration solution has high portability and decoupling from business code, it also has the following disadvantages:
To address the above issues, a streaming programming approach can be considered for Saga orchestration as a complementary solution to JSON DSL.
Example
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
This pr is based on #5847 considering Fork and Join states . Plz merge it before this pr merged. The commits focus on this branch starts from the commit 76b2a51.