Generally there are either or both below 2 line of defence different sites uses to maintain concurrency updates
My understanding is amazon does not follow any of these two. Just accept the order without checking the stock. It reconciles the out of inventorya\ at the time of dispatch. If out of stock, notify the customer with next steps. Is that correct ?