Will Node.js get blocked when processing large file uploads?

前端 未结 3 771
温柔的废话
温柔的废话 2020-12-28 18:18

Will Node.js get blocked when processing large file uploads?

Since Node.js only has one thread, is that true that when doing large file uploads all other requests wi

3条回答
  •  感情败类
    2020-12-28 19:10

    That is the exact reason node.js being asynchronous.

    Most (all?) functions in node.js involving Input/Output operations (where bottleneck is some other device than CPU or RAM) the operation happens on a sepparate thread, letting your node.js server do some other code while waiting.

提交回复
热议问题