Hi, I have an app where users make reservations. While there is a quota for 1 person in a reservation, when 2 different people press the registration button at the same time, both of them can register. However, it shouldn't have allowed this. In fact, they do not even need to press the button at the same time, it accepts the reservation of both of them even if there is a 2-3 second difference. How can I solve this problem?
You can add one attribute as status in the entity and once user click on the reservation it should be false and once it is false the other will not able to register and by this your problem of same time will also resolved.