Hacker News new | ask | show | jobs
by trungaczne 3674 days ago
The business logic of your web application should resolve around database calls. Popular databases should already guarantee these atomicity properties for you through transactions.
2 comments

> The business logic of your web application should resolve around database calls

Might, not should. All web apps are not just front ends to a single database where transactions are useful and once you leave the realm of a single database into a more distributed type system then transactions are no longer an option.

Database guarantees are great until your data doesn't fit in a single database; it's good to examine what your database is providing for you, and to contemplate the costs for providing it in the database level.