When developing an e-commerce application, you generally want to avoid overselling. First attempt, creating deadlocks MySQL has 4 transaction isolation levels: SERIALIZABLE, REPEATABLE READ, READ UNCOMMITTED, READ COMMITTED. In the following proof of concept, where we have 50 of the same product in stock, and we run seige to represent concurrent customers buying the same…