If REST applications are supposed to be stateless, how do you manage sessions?

前端 未结 16 1196
既然无缘
既然无缘 2020-11-22 10:23

I\'m in need of some clarification. I\'ve been reading about REST, and building RESTful applications. According to wikipedia, REST itself is defined to be Representation

16条回答
  •  迷失自我
    2020-11-22 10:44

    The major difference between stateless vs Stateful is the data being passed back to the server every time. In case of stateless, the client has to provide all the info so lot of parameters may need to be passed in each request. In Stateful, the cliet passes those parameters once and they are maintained by the server until modified by the client again.

    IMO, API should be stateless which gives allows to scale up really quickly.

提交回复
热议问题