问题
I am trying to process large csv data in nodejs at server side, but as node is single threaded cpu uses goes to 100%. I could not find any solution so that it does not consume much time. So I have decided to process the data on client side and then send it to server and then save it into database. The data might be about 20 to 30 MB. Is it possible or if possible is it good practice to send this much data over http. I checked this question but could not find it helpful.
回答1:
To know the limit of post http request,
It rather depends on the web server and web browser:
Internet explorer All versions 2GB-1 Mozilla Firefox All versions 2GB-1 IIS 1-5 2GB-1 IIS 6 4GB-1
Please look for following link
Is Http POST limitless?
Also, use techniques like data chunks for server side to recive heavy data.
来源:https://stackoverflow.com/questions/38203264/how-to-send-large-data-using-post-method-in-nodejs