doulou1989 2018-06-10 22:06
浏览 23
已采纳

我应该使用哪种协议在多个节点之间交换文件?

I have multiple nodes. Node is just a linux or windows server. Also I have one master node. The master node is manager of process of file sharing.

This images shows process of communication: enter image description here

So, I try to choose some protocol for this system, which I can implement (or just use some existing implementation). I need a file sharing protocol. I mean checking the checksum, managing a Internet bandwidth, managing the process of data exchange.

File is just a binary data. File size is approximately 1-10 MB. The number of files in the system is approximately 1 million. 90% of all requests are write requests.

  • 写回答

1条回答 默认 最新

  • drza10046 2018-06-10 22:34
    关注

    Web servers are designed to serve files (amongst other things).

    I would recommend you use the http protocol and use https://golang.org/pkg/net/http/#FileServer which requires just a few lines of code to set up.

    If you need secure transmission then use https, also available with FileServer: https://golang.org/pkg/net/http/#ListenAndServeTLS

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥65 LineageOs-21.0系统编译问题
  • ¥30 关于#c++#的问题,请各位专家解答!
  • ¥15 App的会员连续扣费
  • ¥15 不同数据类型的特征融合应该怎么做
  • ¥15 用proteus软件设计一个基于8086微处理器的简易温度计
  • ¥15 用联想小新14Pro
  • ¥15 multisim中关于74ls192n和DSWPK开关仿真图分析(减法计数器)
  • ¥15 w3wp,exe 中发生未处理的 Microsoft ,NETFramework 异常。
  • ¥20 C51单片机程序及仿真(加减器)
  • ¥15 AQWA | 水动力分析 二阶波浪力