52ky 发表于 2022-4-27 08:43:27

把大象装进冰箱:HTTP传输大文件的方法.pdf

上次我们讲到HTTP消息中的body,我们知道HTTP可以传输很多种数据,不仅是文本,还包括图片、音频和视频。
早期,只有几千字节大小的文字和小图片基本上都是在互联网上传输的,但现在情况已经大不相同了。网页中包含的信息实在是太多了。一个随机的首页HTML可能有几百K,高质量的图片都算M,更何况那些电影和电视剧。有几千兆字节和几十千兆字节。可能的。
相比之下,100M光纤固网或4G移动网络在这些大文件的压力下,变成了“小水管”。无论是上传还是下载,网络传输链接都会“满”。
因此,如何在有限的带宽下高效、快速地传输这些大文件成为了一个重要的课题。这就好比冰箱门已经打开(连接建立),怎么把大象((文件)放进去再关门(完成传输)?
今天,我们来看看HTTP协议中的什么手段可以解决这个问题。

(Last time we talked about the body in HTTP messages. We know that HTTP can transmit a variety of data, not only text, but also pictures, audio and video.In the early days, only a few thousand bytes of text and small pictures were basically transmitted on the Internet, but now the situation is very different. The web page contains too much information. A random homepage HTML may have hundreds of K, and high-quality pictures are m, not to mention those movies and TV dramas. There are thousands of megabytes and tens of gigabytes. possible.In contrast, 100m optical fiber fixed network or 4G mobile network has become a "small water pipe" under the pressure of these large files. Whether uploading or downloading, the network transmission link will be "full".Therefore, how to efficiently and quickly transmit these large files under limited bandwidth has become an important topic. This is like the refrigerator door has been opened (connection established), how to put the elephant (file) in and then close the door (complete transmission)?Today, let's see what means in HTTP protocol can solve this problem.)









页: [1]
查看完整版本: 把大象装进冰箱:HTTP传输大文件的方法.pdf