I have a web page that sends information via AJAX to a server. I need to make sure the server handles the requests in correct order. Is it possible that the server might receive the requests in different order from what they are sent? The web page makes sure that the requests are sent in correct order, but time between requests can be very short. The page doesn’t receive data back from the server so the responses don’t need to be in order.
Share
This depends on your server and the server load. Normaly the request, if they don’t require much processor time, they should be handled in the correct order.
To be absolutly sure, you may implement a sending queue. The second request, waits for the first to be completed, and so on. This requires of course much more implementation effort.