how to send large data using post method in nodejs?

你说的曾经没有我的故事 提交于 2020-04-22 06:33:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!