concept transaction in category node

appears as: trsactions, transaction
Node.js in Action, Second Edition

This is an excerpt from Manning's book Node.js in Action, Second Edition.

8.5.1. Atomicity: transactions either succeed or fail in entirety

An atomic transaction can’t be partially executed: either the entire operation completes, or the database is left unchanged. For example, if a transaction is to delete all comments by a particular user, either all comments will be deleted, or none of them will be deleted. There is no way to end up with some comments deleted and some not. Atomicity should apply even in the case of system error or power failure. Atomic is used here with its original meaning of indivisible.