开发者

Select a way for Session Management on Windows Azure

开发者 https://www.devze.com 2023-02-27 01:29 出处:网络
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 f

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 demonstrat开发者_StackOverflow社区es session affinity on Azure with Aplication Request Routing(ARR). How about going with this option, instead of above?


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.


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消