What is a transaction? It is a set of related operations, all of which must be performed correctly without error. Otherwise, all the operations are canceled. An example of where this mechanism is used is a database.
What is a transaction? In the context of databases and data storage systems, a transaction is any operation that is treated as a single unit of work, which either completes fully or does not complete at all, and leaves the storage system in a consistent state.