[Solved] 100000 users concurrent to buy the same product in ASP.NET
Use transactions. Each transaction is ensuring the consistency of the data (quantity >= 0) at the end of the transaction. Consistency should be checked exclusively, so no two transactions are allowed to modify quantity at the same time. OR Do what amazon does – accept the order (no commitment), no modifying of the quantity. Next … Read more