简体   繁体   English

Azure端点协议差异

[英]Azure Endpoints Protocol Differencess

Hello I was wondering during the development, what are the differences between the types of protocols that I can use for my endpoint? 您好,我在开发过程中想知道,我可用于端点的协议类型之间有什么区别? the latest SDK had, HTTP, HTTPS, UDP and TCP. 最新的SDK包括HTTP,HTTPS,UDP和TCP。 I certainly understand what the differences between the http and Https, I also understand the differences between the TCP and UDP. 我当然了解http和Https之间的区别,也了解TCP和UDP之间的区别。

what I don't understand what are the differences between TCP and HTTP from the development perspective? 从开发角度看,我不了解TCP和HTTP有什么区别?

TCP / UDP are lower level protocols in the OSI model than HTTP/ HTTPS. TCP / UDP是OSI模型中比HTTP / HTTPS低的协议。 Actually HTTPS is combining two thing, HTTP over SSL. 实际上,HTTPS结合了两件事,即基于SSL的HTTP。

Have a read through the Wikipedia article describing the Osi Model 阅读Wikipedia中描述Osi模型的文章

HTTP is a layer 7 (Application) protocol and as such has a strict set of rules governing how the messages are constructed and what are considered valid responses. HTTP是第7层(应用程序)协议,因此具有一组严格的规则来管理消息的构造方式以及认为有效的响应内容。 It is not concerned with how the actual connection takes place or how the messages are routed. 它与实际连接如何发生或消息如何路由无关。

TCP and UDP are layer 5 which means they are concerned with addressing, establishing connection, packetization and sequencing. TCP和UDP是第5层,这意味着它们与寻址,建立连接,打包和排序有关。 Things that are needed to exchange a series of bytes (payloads) between two endpoints. 在两个端点之间交换一系列字节(有效负载)所需的事物。

Usually when developing software you want to implement open and established protocols that simplify the task of integrating with systems from other vendors or opening up end points for others to consume. 通常,在开发软件时,您希望实现开放的和已建立的协议,以简化与其他供应商的系统集成或开放端点供他人使用的任务。 In this scenario, HTTP or HTTPS make sense. 在这种情况下,HTTP或HTTPS是有意义的。

If your system is a closed one where you control both the client and server applications or where performance is of paramount importance then TCP might be a good choice. 如果您的系统是封闭的,可以同时控制客户端和服务器应用程序,或者性能至关重要,那么TCP可能是一个不错的选择。 Operating at this level means you have to concern yourself with issues of defining your own payload structure, security, packet loss etc. 在此级别上运行意味着您必须关注定义自己的有效负载结构,安全性,数据包丢失等问题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM