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

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.

主站蜘蛛池模板: 榕江县| 拉萨市| 内江市| 金山区| 安乡县| 柯坪县| 合阳县| 旬邑县| 江孜县| 甘孜| 岳普湖县| 晋中市| 滦平县| 民丰县| 永寿县| 井冈山市| 虹口区| 大厂| 中山市| 南通市| 娱乐| 林西县| 六枝特区| 河南省| 新宾| 阳谷县| 彭泽县| 天水市| 湖南省| 股票| 安福县| 宾川县| 龙井市| 揭阳市| 揭西县| 信宜市| 双鸭山市| 英德市| 沙坪坝区| 东丰县| 宝清县|