官术网_书友最值得收藏!

Stateless

Essentially, stateless means that the necessary state during the request is contained within the request and it is not persisted in any hypothesis that could be recovered further. Basically, the URI is the unique identifier to the destination and the body contains the state or changeable state, or the resource. In other words, after the server handles the request, the state could change and it will send back to the requestor with the appropriate HTTP status code:

In comparison to the default session scope found in a lot of existing systems, the REST client must be the one that is responsible in providing all necessary information to the server, considering that the server should be idempotent.

Stateless allows high scalability since the server will not maintain sessions. Another interesting point to note is that the load balancer does not care about sessions at all in stateless systems.

In other words, the client needs to always pass the whole request in order to get the resource because the server is not allowed to hold any previous request state.

主站蜘蛛池模板: 云和县| 蒲江县| 三穗县| 万山特区| 华安县| 南岸区| 武山县| 绩溪县| 定边县| 柳州市| 开阳县| 定远县| 苍南县| 和政县| 青铜峡市| 余江县| 冷水江市| 武汉市| 大英县| 色达县| 普陀区| 西盟| 横山县| 辽宁省| 赤壁市| 怀化市| 交城县| 锦州市| 永兴县| 玛曲县| 泰安市| 阿拉善左旗| 金沙县| 巧家县| 鄂托克前旗| 石河子市| 铅山县| 南京市| 永川市| 惠州市| 庆云县|