© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
14 replies
Denis

✅ Distributed transactions

I'm developing a server + clients suite of applications.

What bothers me is the chance that the client's communication with the server will be interrupted during writes.

Primarily during several interdependent writes, e.g.:
- Create an empty record,
- insert data into the record,
- mark the record as checked-in.

Of course, the simplest thing would be to unify all such processes into one API call, but what if it can be done in smarter way...

I found something about 2PC and SAGA, however, these solutions are tailor-made for microservices, which from my point of view is not quite my case.

I only have client applications that call the server as part of some business process - I can more easily monitor the scope of transactions within the given process.

The goal is that in the event of a technical or business failure, it is possible to:
- Capture, report to the user, and log
- Perform a rollback.

Any suggestions?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Concurrency issues - distributed system
C#CC# / help
12mo ago
✅ EF SaveChanges in transactions
C#CC# / help
2y ago
✅ EF core transactions in PostgreSQL
C#CC# / help
2y ago
Help implementing multithreading in a distributed system, please?
C#CC# / help
2y ago