In Express, is it possible to handle requests to a single route one at a time? I have a "checkout queue," and each time a checkout is created, stock is decreased. However, a simultaneous POST request to create a checkout checks the stock before stock is decreased in the first request, which causes overselling. Note: the request only takes about 300 ms, so using Bull or any other queueing technique seems a bit over-the-top. Is there any way I can configure a route to accept requests one-at-a-time?
I am using Firestore as the datastore.
