A
A
amstr1k2016-03-31 10:33:03
Highload
amstr1k, 2016-03-31 10:33:03

How to organize the work of transactions in a microservice architecture?

When developing an application with a microservice architecture, I encountered the problem of transactional data. At the moment there is an application that communicates with a number of microservices. It is necessary to update the data in one transaction in different microservices, while maintaining the integrity of the data. If one of the microservices could not process the request for some reason, the transaction should be rolled back. Tell me how to solve this problem on .net

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2016-03-31
@Nipheris

Theoretical aspect: https://en.wikipedia.org/wiki/Two-phase_commit_protocol
Implementation: https://msdn.microsoft.com/en-us/library/system.tr... , well, or your bike (based on HTTP or message queuing).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question