当前位置:网站首页>Analysis of breakpoint continuation and download principle
Analysis of breakpoint continuation and download principle
2022-06-30 20:35:00 【Rabbit cloud program】
Interview the candidate the day before yesterday , I just saw him doing file upload and download , The question is suddenly asked without any intention , As a result, the candidate was confused , A little stunned , Maybe he never thought about it , Most uploads and downloads are interfaces , Without a deep understanding of this principle , Or not debug What happened .
First of all, let's talk. HTTP Agreement , You can add Range paragraph , To indicate where the client wants to continue downloading . In previous versions HTTP The protocol does not support breakpoints , HTTP/1.1 From the beginning ( This is also the realization of sub fast transmission ). It is generally used when downloading breakpoints Range and Content-Range Entity head .
Breakpoint continuation is the core of large file data transmission . Especially multithreading technology ,socket technology ,TCP and UDP technology , In addition, the distribution process of the version package will be combined with p2p technology , For example, we often use Thunder download , Baidu SkyDrive , If upload or download is interrupted , Next time you start uploading and downloading again , Definitely not from a new start to download , Instead, start work from the point where it has been interrupted .

Basically realize the idea
The key of breakpoint continuation is breakpoint , So we should design the transmission protocol well , Pictured above , I customized an interaction protocol , Every download request will bring the starting point of the download , In this way, we can support downloading from breakpoints , Actually HTTP This is also the principle of breakpoint continuation in , stay HTTP There is an optional field in the header RANGE, Indicates the scope of the download , Here is what I use JAVA Download breakpoint continuation example implemented in language .
One 、 Files to be renewed
(1),Concurre
边栏推荐
- 1045 error occurred in MySQL login. Modification method [easy to understand]
- Introduction to neural network (Part 1)
- 北京大学ACM Problems 1006:Biorhythms
- The Commission is so high that everyone can participate in the new programmer's partner plan
- How to pass the PMP Exam quickly?
- Maya house modeling
- PHP require/include 区别
- Openfire在使用MySQL数据库后的中文乱码问题解决
- AVL平衡二叉树(一) - 概念与C语言实现
- Why must we move from Devops to bizdevops?
猜你喜欢
Application of JDBC in performance test

Amazon restricts LGBTQ related search and product sales in the United Arab Emirates

By analyzing more than 7million R & D needs, it is found that these eight programming languages are the most needed by the industry

以全栈全功能解决方案,应对多样工具复杂环境DevOps落地难题

Document contains & conditional competition

NLP 论文领读|文本生成模型退化怎么办?SimCTG 告诉你答案

PHP获取Opcode及C源码

好高的佣金,《新程序员》合伙人计划来袭,人人皆可参与

哈夫曼树(一)基本概念与C语言实现

Summary of operating system interview questions (updated from time to time)
随机推荐
Static classes use @resource annotation injection
All the important spark summit features were released here last night (with ultra clear video attached)
Common questions and answering skills of project manager interview
Lingyun going to sea | 10 leap &huawei cloud: jointly helping Africa with inclusive financial services
Lumiprobe蛋白质定量丨QuDye 蛋白定量试剂盒
谈谈内联函数
Amazon restricts LGBTQ related search and product sales in the United Arab Emirates
Jerry's determination of detection sensitivity level [chapter]
Summary of operating system interview questions (updated from time to time)
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
Game 81 biweekly
网上炒股开户安全嘛!?
【Try to Hack】Windows系统账户安全
C language: hashtable
Jerry's touch key recognition process [chapter]
大神詳解開源 BUFF 增益攻略丨直播
漏洞扫描工具大全,妈妈再也不用担心我挖不到漏洞了
好高的佣金,《新程序员》合伙人计划来袭,人人皆可参与
Is the project manager a leader? Can you criticize and blame members?
Go 语言标识符、包名规范