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

Stateless

The next constraint to add is stateless. The server should not contain any state of workflow. In this way, the client is the driver of the information that it wants. When the client asks the server for data, the client needs to pass all the relevant information to the server. This method of designing software creates an abstraction, where the server is unaware of the client; it creates a loose couple design, which is conducive to changes. Later on in the chapter, we will look further into stateless by expanding the idempotent concept.

The client has to keep track of its state. The downside is that the client will have to send more data to the server on each request.

Having the stateless server allows you to scale out, since the server does not store any client-specific data.

主站蜘蛛池模板: 凯里市| 阿合奇县| 南雄市| 丹寨县| 聊城市| 信阳市| 同仁县| 吉木萨尔县| 铁岭市| 邳州市| 得荣县| 铜鼓县| 新宁县| 开远市| 大田县| 临汾市| 赫章县| 梅河口市| 神池县| 海丰县| 鞍山市| 剑阁县| 新平| 民和| 兴国县| 托克逊县| 南城县| 孝感市| 花莲县| 扬州市| 伊金霍洛旗| 青川县| 东安县| 比如县| 汉中市| 富平县| 买车| 青田县| 冀州市| 微博| 澜沧|