Distributed ASP.Net State Service

半城伤御伤魂 提交于 2020-01-14 19:05:45

问题


I'm wondering if there exist any distributed ASP.Net State Service alternative.

Session can be stored in InProc, StateService or SQL. You can also write custom storage providers. For load balancing (without any form of sticky IP) only SQL/Custom will work.

Are there any alternative ASP.Net State Services that is distributed? I'm thinking so each server can synchronize with the others.

Edit: In response to answers: I am looking for Session() storage. Distributed cache is not a problem, Velocity will do fine for distributed caching. :)

Edit2: In response to Oded: State server has the problem of single point of failure. SQL server may not be directly accessible because of the model chosen (i.e. 3-layer), it is only accessible through the middle layer.


回答1:


I thought thats what "velocity" was going to be bringing to the table? You might want to check out Microsoft AppFabric for your needs.

Edit:
Maybe I'm missing something about your post and your edit, but I'm still pretty sure AppFabric is what you need for your Session() storage. Maybe I'm wrong, but it sure seems dead on to me.




回答2:


I would look at Memcache for .net




回答3:


Take a look at this: http://technet.microsoft.com/en-us/library/cc725582(WS.10).aspx

I'd recommend to stay with SQL server since it will be the easiest to implement.

Make sure the classes you store in session are marked as [Serializable] or you will get runtime errors.



来源:https://stackoverflow.com/questions/4539754/distributed-asp-net-state-service

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