Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Stateless of HTTP

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

HTTP is stateless.

Benefits:

Because the server does not have "memory ability", it does not need additional resources to record status information, which is not only easier to implement, but also lightens the burden on the server, and can use more CPU and memory to provide services.

Moreover, "stateless" also means that the servers are all the same, and there is no difference in "state", so it is easy to form a cluster and let the load balancer forward requests to any server without processing errors due to inconsistent states. use the "stupid method" of "heap machine" to easily achieve high concurrency and high availability.

Disadvantages:

Since the server does not have "memory ability", it cannot support "transaction" operations that require multiple consecutive steps. For example, e-commerce shopping, first to log in, and then add shopping cart, and then order, settlement, payment, this series of operations need to know the identity of the user, but the "stateless" server does not know that these requests are interrelated.

However, Cookie technology can solve this problem.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report