Transaction in SOA

Is it possible to distribute transactions between different SOA services that are located on different platforms, such as .NET or Java?

I know that a transaction can go in and out between WCF services that comes from .NET. But I am not familiar with the Java platform.

Now I am working on a project that transfers services from different platforms.

How can I keep business consistent?

+8
java soa transactions
source share
3 answers

If your SOA infrastructure of your client and server (and, in addition, the base server systems that are accessed in various service implementations) supports WS-Transaction, then this will allow the distribution of transactions.

However, I work in an SOA middleware environment with huge financial services, and we choose transaction management ourselves: using manual compensation. Although a more complex approach, not relying on any distributed transaction coordinator, gives us flexibility and performance.

+1
source share

Cross-service transactions are bad for your SOA as they introduce a lot of cross-service relationships. The frontier of service is the frontier of trust. You better use sagas and compensation, as Daniel noted

+1
source share

Try this template: http://www.atomikos.com/Publications/TryCancelConfirm

This is due to the approaches of the saga and compensation and combines the best of all worlds.

The best

0
source share

All Articles