vendredi 15 avril 2016

how to synchronize txns?

Imagine that I have a page shows like below



Balance $100                    shopping cart
Total price $90                  Book 2: $10
                                         Book 1: $80
--------------------
Final price $10



How can I make sure synchronize problem in here?
For example, if two persons use the same account and send different transactions at the same time. That will let some horrible thing happen.

Aucun commentaire:

Enregistrer un commentaire