apache / apache/incubator-seata

在多个微服务间,如访问同一个数据库表,如何使得事务可见?

Open
#2,860 4 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

## Why you need it?
Is your feature request related to a problem? Please describe in details
在使用seata的过程中,我们发现。在如下业务场景中:
如A,B两个微服务。在处理一个请求时,A服务处理完请求B服务,B服务处理完返回给A服务,A服务反馈给用户。
开始时:如A服务对数据源a中的a1表进行增删改操作后,A调用B的服务,此时在B服务中对数据源a中的a1表查询时,不能查到最新的数据(A处理过后的数据)。

## How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
我们想要的效果是:A调用B的服务,此时在B服务中对数据源a中的a1表查询时,可以查到最新的数据(A处理过后的数据)。
是否有这种场景的解决方案????

## Other related information
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reproducing the A-to-B call with datasource a and table a1, then document the transaction-boundary behavior; done means a verified supported solution or a clearly documented limitation for this scenario.

Written by the indexing model from the issue text.

Assessment

Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.