All Questions
Tagged with 2phase-commit microservices
9 questions
0
votes
0
answers
462
views
2pc - XA/Distributed Transaction Coordinator Implementation
I have watch several of article about XA/Distributed Transaction Coordinator, many of them just mentioned that a DBMS must explicitly support XA in order to run. They also talk about how a Distributed ...
2
votes
3
answers
987
views
XA support for Microservices
Scenario: I have multiple XA compliant databases fronted by different microservices which perform CRUD operations on them. I need to perform a 2 phase commit among these microservices. This means that ...
4
votes
1
answer
2k
views
Outbox pattern - Message Relay without duplicates and unordering for any SQL and NoSQL DB
Dual write is a problem when we need to change data in 2 systems: a database (SQL or NoSQL) and Apache Kafka (for example).
The database has to be updated and messages published reliably/atomically.
...
0
votes
1
answer
536
views
How to handle error and revert transaction state if one of the API call fails out of sequence of APIs to be called in transaction
I have following type of 3rd party APIs to be called in sequence in c# code.
try
{
transaction:
{
call API 1;
call API 2
call API 3
}
}
Catch
{
transaction ...
7
votes
1
answer
2k
views
2PC distributed transactions across many microservices?
I read some information about 2 Phase Commit/ XA distributed transactions and how JTA does support it. Seems to be that there is many resource managers - RM (eg. RDBMS or JMS), and one ...
25
votes
6
answers
19k
views
Why is 2-phase commit not suitable for a microservices architecture?
I've read a post saying that:
We can not implement traditional transaction system like 2 phase commit in micro-services
in a distributed environment.
I agree completely with this.
But it would ...
1
vote
0
answers
34
views
How do 2PC prevent commit failure? [duplicate]
I am new to distributed transaction thing, studying how two-phase commit works across a distributed transaction in micro-services architecture. As per my understanding, in the last part of the phase ...
1
vote
2
answers
895
views
MQ - How to guarantee message delivery in a non-transacted, lightweight environment?
How to guarantee message delivery in a non-transacted, lightweight environment?
For example:
Normal situation: Write to database, commit, send message to ZeroMQ|Redis|OtherMQ, consumer pulls the ...
9
votes
3
answers
14k
views
How to do 2 phase commit between two micro-services(Spring-boot)?
I Have two mico-serives A and B where they connect to seperate database, From Mico-serives A i need to persist(save) objects of both A and B in same transtation how to achive this.
I am using Spring ...