Distributed Transactions
May 20, 2021 · 1097 words · 6 min · Architecture Microservice Transaction
Transactions and Distributed Transactions
Transactions
A transaction is a logical unit of work in a database, composed of a finite sequence of database operations. The database must ensure the atomicity of transaction operations: when a transaction is successful, it means that all operations in the transaction have been fully executed; if the transaction fails, all executed SQL operations are rolled back.