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

  • Mastering ASP.NET Web API
  • Mithun Pattankar Malendra Hurbuns
  • 139字
  • 2021-07-02 20:52:22

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.

主站蜘蛛池模板: 广南县| 贵阳市| 繁峙县| 漯河市| 黎川县| 和龙市| 道真| 资兴市| 深州市| 余姚市| 德格县| 克山县| 三台县| 卢龙县| 常熟市| 天等县| 茶陵县| 宕昌县| 盐山县| 准格尔旗| 东乡县| 肇庆市| 青神县| 甘南县| 丘北县| 武隆县| 宣汉县| 新建县| 静安区| 芮城县| 额敏县| 堆龙德庆县| 且末县| 裕民县| 湖北省| 丽水市| 高雄市| 竹山县| 昭苏县| 汉中市| 宁化县|