Alternatives to Database Transactions
Ashwin Jayaprakash:
[…] there still are many systems where data flows across large applications; where a simpler, resilient and more predictable compensating mechanism is suitable. Simpler it may be, but designing such systems require a lot of foresight and expertise:
- Optimistic concurrency based on version numbers
- Atomic compare-and-swap upsert/update operations
- Polite Spin locks and backoff-retry mechanisms
- Clear error reporting
- State capture, repair and consistency checking
- Operation logging, undo and re-apply
- Proper documentation and involvement of Developer/Architect
Original title and link: Alternatives to Database Transactions (NoSQL databases © myNoSQL)
via: http://javaforu.blogspot.com/2010/09/txncommit-are-you-sure.html