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

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

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大