The second design directly violates the client-stateless-server constraint.
第二种设计直接违背了客户机-无状态-服务器约束。
Soon you begin to question whether violating the client-stateless-server constraint was such a good idea after all.
很快您就会质疑,违背客户机-无状态-服务器约束是否真的是一个好主意。
If state is always provided by the client, the server remains (at least from a programmer's viewpoint) stateless: There is no data to maintain, just incoming data to process as it shows up.
如果状态总是由客户机提供,服务器就是无状态的(至少从程序员的角度来看):不会维护数据,只需处理传入的数据。
应用推荐