同时创建的可读文件流或可写文件流是否有最大限制?

Is there a maximum limit of readable file stream or writable file stream created same time?

我有几个疑问

首先: 可以创建的文件(可读或可写)流的最大数量是否有限制?

Like a [...[readable, writable]] streams array of n files 

第二个: 操作系统中打开的最大文件数是否仅在 'open' 上使用流事件时适用?

Like in linux by default is 1024 per process

第三: 这会直接影响 'open' 个同步事件中可以存在的最大流数吗?

Like 1024 simultaneous 'open' stream event per process

如果有人知道有关它的信息,感谢您分享它并抽出时间,对于任何错误,我们深表歉意。

First: Is there a limit to the maximum amount of file (readable or writable) streams that can be created?

A node.js 文件流使用来自操作系统的打开文件句柄,因此任何 OS 限制适用于一个进程可以同时打开的文件句柄的数量也适用于打开文件流节点。所以是的,有一个限制,这个限制是由操作系统决定的。

Second: Does the maximum number of files open in the operating system apply only when using the stream event on 'open' ?

没有。文件系统句柄用于来自文件的 reading/writing 的任何流。

Third: Does this directly affect the maximum number of streams that can exist on 'open' simultaneous event?

该限制与您是否正在收听 open 事件无关。每个正在读取或写入文件的流都使用操作系统文件句柄,无论您是否直接监听 open 事件。