Web 服务是无状态的? [英] Webservices are stateless?

查看:38
本文介绍了Web 服务是无状态的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们说 Web 服务是无状态的?

Why do we say that web services are stateless?

推荐答案

它们不会在来自客户端的请求之间保持任何状态.即服务不知道,也不关心,后续请求来自已经/没有提出过先前请求的客户端.基本上,它是给我这条信息并忘记我",这让客户端有责任维护任何状态.

They don't persist any state between requests from the client. i.e. the service doesn't know, nor care, that a subsequent request came from client that has/hasn't made a previous request. Basically, its a 'give me this piece of info and forget about me' which puts the onus on the client to maintain any state.

这篇关于Web 服务是无状态的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆