ACID implies Atomicity, Consistency, Isolation and Durability, and it's at the heart of being able to create transactions, where either the entire process is successful, or the entire process is discarded. To give you an example of why this is important, imagine you have an application which allows people to order things online. Typically its purchasing process would look like this.
- Customer clicks the buy button
- The order is internally handled and shipped
- The system deducts money from the customer's bank account
If step 3 above fails, you have a problem. Maybe the customer didn't have sufficient finances to make the purchase? Still step number 2 was already executed at that point, and the order had been handled and processed. Your system has now entered an undetermined and invalid state, resulting in you probably loosing money.
from DZone.com Feed https://ift.tt/37RnzFE
No comments:
Post a Comment