When not to use transactions and where you can’t use transactions

Transactions are great when everyone plays in. You group a set of activities together under a transaction and you start executing them. If anything bad happens along the way or something doesn’t go as planned, invoke rollback and all is taking care of automatically by the infrastructure: everything is undone and the app returns to…

1