In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you about the advantages and disadvantages of HTTP. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
HTTP has the advantages of simple, flexible, easy to expand, widely used, mature environment, stateless; the disadvantage of HTTP is plaintext insecurity, because it is stateless, so it can not do continuous multi-step operation, and the "request-reply" mode aggravates the performance problems of HTTP.
The advantages and disadvantages of HTTP are:
The advantages and disadvantages of http are not absolute. Some advantages and disadvantages can be disadvantages and sometimes disadvantages can be advantages and disadvantages.
Characteristics of http:
Flexible and extensible: http is very flexible, does not do too many restrictions in the message, as long as according to its rules can define their own fields, in the transmission is not limited to txt text format, but also can transmit pictures, videos, compressed packets and other arbitrary data.
Reliability: because http is based on tcp/ip transport, because tcp/ip is a connection transport protocol, it is a reliable transport. (reliability is relative, it is as unreliable as without the Internet)
Request-reply: http is a communication mode that uses request-reply. It is an agreement that comes and goes as soon as it is sent and received.
Stateless: is a stateless protocol. Stateless: it means not recording any records, establishing links each time, sending data and receiving data.
Application layer protocol: it is a universal application layer protocol. Do not care about the performance of http can transmit anything of a protocol, not too many limitations, unlike other protocols are only limited to a small number. For example, FTP can only transfer files, SMTP can only send mail, SSH can only log in remotely, and so on, which can not be played at all in general data transmission.
Other: in addition to the above five major features, in fact, HTTP protocol can also list many features, such as cacheable and compressible entity data, segmented access to data, support for identity authentication, support for international languages, and so on. But these are not the basic features of HTTP, because they are derived from the first "flexible and extensible" feature.
Advantages of http:
Simple, flexible, easy to expand: because there are no too many restrictions, because simplicity can ask users to extend themselves.
It is widely used and the environment is mature: because it is too simple and popular, it is widely used. Because it does not belong to a language, therefore, there is no platform, language boundaries, so cross-platform is very strong.
Stateless, because there is no record. It can reduce the burden on the server, and more cpu and memory can be used to provide services. Because it is stateless and there is no requirement for the server, it can be clustered.
Disadvantages of http:
Plainly, it's not safe.
Because it is stateless, it is not possible to do multiple steps in a row. For example: join the shopping out, settlement, payment. Identity information needs to be verified every time, but it is stateless and cannot be continuous. The solution is cookie technology.
Performance: the "request-reply" mode aggravates the performance problem of HTTP, which is known as "head-of-line blocking" (Head-of-line blocking). When a request in a sequentially sent request sequence is blocked for some reason, all requests queued later are also blocked, resulting in delays in receiving data from the client. In order to solve this problem, a special research topic "Web performance optimization" was born. There is a chapter on "caching" in the official standard of HTTP (RFC7234), and there are more unofficial "tricks", such as image cutting, data embedding and merging, domain name sharding, JavaScript "cool techs" and so on.
These are the advantages and disadvantages of the HTTP shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.