Select a way for Session Management on Windows Azure

十年热恋 提交于 2019-12-25 14:45:55

问题


I am planning for a application which will be deployed on Windows Azure. The web role will have multiple instances. I see that with multiple instances in-proc session will not work.I see that I have following ways to manage my session

  1. Use Azure Storage

  2. SQL Azure

  3. AppFabric

I don't want to go with option 2 (SQL Azure).

Which option should I choose?

Update 1

I came across this post which demonstrates session affinity on Azure with Aplication Request Routing(ARR). How about going with this option, instead of above?


回答1:


AppFabric Caching Service, definitely. It will be live in 30 days, take a look on this link: Using the Windows Azure AppFabric Caching for Session State in order to see how to use it.

The table storage provider doesn't work very well, is just a proof of concept and should not be used in production code.

Keep the session state in SQL Azure is not supported by Microsoft. Besides, since there is no SQL Job Agent, you have to put the cleaning logic in your WebRole or in a separate Worker role.




回答2:


I made open source project called Azure Providers on Codeplex that includes a session-state provider. The session-state provider stores the session data in the Windows Azure Table Storage. http://azureproviders.codeplex.com/



来源:https://stackoverflow.com/questions/5729243/select-a-way-for-session-management-on-windows-azure

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