简体   繁体   English

在NodeJS应用之间传输二进制文件

[英]Transfer binary files between NodeJS apps

We need to transfer binary files (they can be > 50M ) between nodejs apps (can be on same machine or on different) . 我们需要在nodejs应用程序之间传输二进制文件(它们可以大于50M)(可以在同一台机器上,也可以在不同机器上)。 As I understand there are several options to do it: 据我了解,有几种选择可以做到这一点:
1) By using Socket.IO 1)通过使用Socket.IO
2) Over HTTP 2)通过HTTP

What is preferable option and why ? 什么是首选选项,为什么?
Your information will be helpful 您的信息会有所帮助

Transfer between two Node.JS instances? 在两个Node.JS实例之间传输?

You can use a TCP connection. 您可以使用TCP连接。 There are some modules that helps you with that. 有一些模块可以帮助您。

I know this module: 我知道这个模块:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM