Questions tagged [distributed-transactions]

An operational bundle which consists of multiple ACID transactions, usually on multiple servers, which must all commit or roll back. A transaction manager coordinates this through two-phase commits.

600 questions
7
votes
2 answers

Why do we need service bus frameworks like NService Bus/MassTransit on top of message queuing systems like MSMQ/RabbitMQ etc?

In the distributed message transaction world, am trying to understand the different parts that are involved in developing distributed systems. From what I understand you can design messaging system using enterprise bus backed with a message queue…
Chrysalis
  • 4,130
  • 2
  • 21
  • 23
7
votes
2 answers

Does the CAP theorem imply that ACID is not possible for distributed databases?

There are NoSQL ACID (distributed) databases, despite CAP theorem. How this is possible? What's the relation between CAP theorem and (possible/not possible of) being ACID? Is impossible for a distributed computer system to simultaneously provide…
gremo
  • 47,186
  • 75
  • 257
  • 421
7
votes
2 answers

Is using a mySQL column a sane way to achieve global locking?

I'm building an application that involves significant image processing. We're building it in a distributed manor, with an arbitrary number of rendering machines receiving requests to render images from a RabbitMQ exchange. Because a request for an…
Andrew
  • 203
  • 3
  • 6
6
votes
2 answers

Are XA/JTA transactions still used?

I have an application that interacts multiple databases and some custom services. For some operations, I need transaction-like behavior where a set of changes either commit across all databases/services or all roll back if an error occurs. The XA…
Chris Sears
  • 6,502
  • 5
  • 32
  • 35
6
votes
1 answer

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 TransactionManager (TM) instance that manages global…
6
votes
1 answer

Atomic operations between microservices

I need resolve atomic operations in my microservice based application based on spring boot. You can imagine 2 microservices as you can see on picture. One service is using for saving user permissions and credentials as identity provider and another…
6
votes
1 answer

.NET TransactionScope and MSDTC

In my code there are transactions to handle: using (var scope = new TransactionScope()) { repo1.SaveSomething(); repo2.SaveAnythingElse(); scope.Complete(); } Inside repo1 and repo2 functions create their own db context with using, and…
6
votes
1 answer

How to implement distributed transaction with Hystrix fallback based on Spring Cloud architect

I am using Spring Cloud to implement my micro services system, a ticket sale platform. The scenario is, there is a Zuul proxy, a Eureka registry, and 3 service: user service, order service and ticket service. Services use feign declarative REST…
6
votes
3 answers

Distributed transactions across Spring web applications

Imagine a Java ecosystem where three separate Spring web application is running in separate JVMs and on separate machines (no application server involved, just simple servlet containers). Two of these applications are using their own database…
NagyI
  • 5,907
  • 8
  • 55
  • 83
6
votes
1 answer

Parallel and Transactional Processing in Java (Java EE)

I have an architectural question about how to handle big tasks both transactional and scalable in Java/Java EE. The general challenge I have a web application (Tomcat right now, but that should not limit the solution space, so just take this to…
6
votes
1 answer

Is it safe to set Hibernate after_transaction as a JTA connection release mode when using Bitronix Transcation Manager?

According to Hibernate docs, in a JTA environment the default connection release mode is after_statement, meaning that after each statement the hibernate logical connection is released. When the logical connection is released, the Connection close()…
Vlad Mihalcea
  • 142,745
  • 71
  • 566
  • 911
6
votes
1 answer

How to process distributed transaction within postgresql?

Anyone can kindly tell me how to process distributed transaction within postgresql, which is also called "XA"? Is there any resources about it? Great thanks for any answer.
Moon_of_father
  • 183
  • 1
  • 3
  • 10
5
votes
2 answers

how to implement Long running distributed transaction in j2ee

I want to move records from one database to another which are on different machines. the records should be removed from first database and inserted to second database atomically. can we use xa ? i believe xa uses 2 phase commit algorithm which…
Sumeet Jindal
  • 882
  • 1
  • 7
  • 16
5
votes
1 answer

distributed transactions and queues, ruby, erlang, scala

I have a problem that involves several machines, message queues, and transactions. So for example a user clicks on a web page, the click sends a message to another machine which adds a payment to the user's account. There may be many thousands of…
chrispanda
  • 3,204
  • 1
  • 21
  • 23
5
votes
3 answers

how to debug an issue when the cause is not known

We are facing the following exception in weblogic server v10.3.2.0. We are using JRockit JRE 6.0. We have around 6-7 XA datasources involved in every server request. We face this exception when processing on the last datasource just begins. Please…
Krishnan
  • 175
  • 4
  • 19