asp.net inproc vs out of proc performance

和自甴很熟 提交于 2020-01-16 00:49:09

问题


I'm considering moving our web app session storage from In Proc to State Server. Can anybody give any figures as to the performance difference?


回答1:


I can't give you performance metrics but it won't be as fast as InProc session state due to certain overheads:

  • Cross Process calls add overheads
  • Objects have to be serialised and deserialised
  • Some objects can't be serialised (XmlDocument for example or those that inherit from MarshalByRef)

That said your session state data will survive application pool and IIS resets which may be the reason you're considering changing.



来源:https://stackoverflow.com/questions/3886399/asp-net-inproc-vs-out-of-proc-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!