apache / apache/incubator-seata

正向流程同步,补偿流程异步化

Open
#3,594 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

## 为什么我需要它
问题描述:
使用stateMachineEngine.start同步执行,saga的事物流程抛出异常时,希望能立即返回错误,同步补偿的流程能够异步化。
原因:
补偿流程异步化可以降低接口的RT。

## 如何做
在CompensationTrigger上做一个配置项目,async=true。能够让补偿流程直接走异步。

Contributor guide

Open the contributing guide

Research direction

Start by tracing stateMachineEngine.start and CompensationTrigger to understand where synchronous compensation is invoked. Determine how an async=true configuration would affect error return behavior and compensation execution, then add focused coverage for both configured modes; done means failures return immediately while compensation continues asynchronously when enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.