Using ajax post to post a large amount of data, such as 100,000 orders, how to ensure that all 100,000 orders are eventually received.
Avoid retransmitting all orders when individual orders are not received.
is the data obtained by js, and the data needs to be submitted to the server-side interface.
It is impossible to submit 100,000 yuan at one time.
But you can submit 500 items at a time.
The problem is that 500 items need to be submitted 200 times. If you verify whether all the final data has been received. What kind of mechanism can avoid having to resubmit all data when one of them fails.
Using ajax post to post a large amount of data, such as 100,000 orders, how to ensure that all 100,000 orders are eventually received.
Avoid retransmitting all orders when individual orders are not received.
is the data obtained by js, and the data needs to be submitted to the server-side interface.
It is impossible to submit 100,000 yuan at one time.
But you can submit 500 items at a time.
The problem is that 500 items need to be submitted 200 times. If you verify whether all the final data has been received. What kind of mechanism can avoid having to resubmit all data when one of them fails.
ajax can’t do this either. You should write an interface. This thing is another set of things, not something ajax does. Moreover, even the interface cannot submit so much data at once, it must be submitted in batches
Your example cannot be answered. No one can handle 10W at a time... It would be nice if you passed it and compared it and returned the missing ones.
This should be served separately. Ajax is not suitable for large and intensive calculations