How good and/or necessary are Stateful Web Services?

前端 未结 5 1145
感动是毒
感动是毒 2020-12-31 01:47

What kind of server do you people see in real projects?

1) Web Services MUST be stateless: Basically you must send username/password with every request, every reques

5条回答
  •  不知归路
    2020-12-31 02:48

    Highly dependent on whether the service is single transaction oriented (say getting stock quotes) or if the output from the service is dependent on a data provided from a particular client across multiple transactions(in that case state must be maintained.)

    As far as scalability issues, storing state in a database isn't actually a bad way to go (in fact it's probably the only way to go if you're load balancing your service across a server farm.)

提交回复
热议问题