When high concurrency, many users rush to buy a product at the same time, because different user read/modify/save inventory of product at same time, Is sometimes there will be a error on product inventory?. How to solve this problem?.

In NOP, is it a transaction on submitting a shopping cart to generate an order, so when some items in the cart, one of which generates an order item, but some error happen, it will be rolled back.