Relational Databases · Real-world situation · Intermediate
Stock count goes wrong under load
Your code reads a product's stock, subtracts the ordered quantity in application code and writes it back. Under load, stock counts become wrong. Why, and how do you fix it?
2:00