Well, let's say, I have an auction app (built on express + mongodb), using which, user places orders. My app compares the placed order to others and nulls out the corresponding ones. The problem is, that I need to make the route, that takes in the orders, synchronous for every user, so that the route could process only one request at the time. Because if it will happen asynchronously, I will eventually get the situation in which two users will buy the same order. If there is any way to do this using express or some plug-in, I would be very grateful for suggesting it
via Crysknight
No comments:
Post a Comment