Stateful Web Services

前端 未结 2 1506
一生所求
一生所求 2020-12-20 01:52

I\'m building a java/spring application, and i may need to incorporate a stateful web service call. Any opinions if i should totally run away from a stateful services call,

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 02:23

    Stateful web services are a pain to maintain. The mechanism I have seen for them is to have the first call return an id (basically a transaction id) that is used in subsequent calls. A problem with that is that the web service isn't really stateful so it has to load all the information that it needs from some other data store for each call.

提交回复
热议问题