简体   繁体   English

http中的分块和流媒体有什么区别?

[英]What is the difference between chunking and streaming in http?

I have a huge data filet hat backend is giving me.....i have to forward the same file to some other application ....Could someone please suggest what is the way to go streaming or chunking if both are actually different. 我有一个巨大的数据文件帽后端给我.....我必须将相同的文件转发到其他一些应用程序....有人可以建议什么是流式传输或分块的方式,如果两者实际上是不同的。

And if both are same thing do i have any other option using http protocol. 如果两者都是一样的话我还有其他选择使用http协议。

There is no clear difference in performance between chunking and streaming . 分块和流媒体之间的性能没有明显差异。 An advantage of streaming might be that : 流式传输的一个优点可能是:

Streaming doesn't cut latency, neither it cuts the time a dynamic response needs to be generated. 流式传输不会减少延迟,也不会减少需要生成动态响应的时间。 But since the application sends content right away instead of waiting for the whole response to be rendered, the client is able to request assets sooner. 但是,由于应用程序立即发送内容而不是等待呈现整个响应,因此客户端能够更快地请求资产。 In particular, if you flush the head of an HTML document CSS and JavaScript files are going to be fetched in parallel, while the server works on generating content. 特别是,如果刷新HTML文档的头部,CSS和JavaScript文件将被并行获取,而服务器则在生成内容。 The consequence is that pages load faster. 结果是页面加载速度更快。

This study might also give you couple of ideas since you didn't gave any details about the types of files you are trying to transfer : To chunk or not to chunk 这项研究也可能会给你一些想法,因为你没有提供有关你试图传输的文件类型的任何细节: 块或不块

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

相关问题 spring batch remote chunking和remote partitioning的区别 - Difference between spring batch remote chunking and remote partitioning HTTP servlet和基于HTTP的SOAP有什么区别? - What is the difference between HTTP servlet and SOAP over HTTP? 播放框架:JsonNode 流/分块 - Play framework: JsonNode streaming/chunking 使用http请求自动化与selenium Webdriver之间有什么区别? - What is the difference between automating using http requests vs selenium webdriver? 数据包Ajax发送和普通的http数据包有什么区别? - what is the difference between packets Ajax sends and normal http packets? “ Request.newMeRequest”和“ new http Request(”)有什么区别 - what is the difference between “Request.newMeRequest” and “new http Request(” HTTP multipart和chunking可以共存吗? - Can HTTP multipart and chunking coexist? 获取服务器光标与流式传输之间的区别 - Difference between fetching with server cursor vs streaming “ http:// localhost / app / hello”和“ http:// localhost / app / hello /”之间有什么区别? - What's the difference between “http://localhost/app/hello” and “http://localhost/app/hello/”? Android 1.1的SOAP 1.1,SOAP 1.2,HTTP GET和HTTP POST方法有什么区别? - What is the difference between SOAP 1.1, SOAP 1.2, HTTP GET & HTTP POST methods for Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM