Session replication/sharing on multiple cloud servers
-
vendredi 27 avril 2012 11:06
Hi,
Can a user's session be distributed on multiple servers on azure cloud? (at the time of session start or runtime)
If a user session is distributed on multiple servers then will it create any problem?
Regards,
Rohan
Toutes les réponses
-
vendredi 27 avril 2012 17:30
the Session State provider for Windows Azure Caching may be what you are looking for
http://msdn.microsoft.com/en-us/library/windowsazure/gg185668.aspx- Modifié perpetualKid vendredi 27 avril 2012 17:31
- Marqué comme réponse Arwind - MSFTModerator jeudi 3 mai 2012 10:28
-
dimanche 29 avril 2012 01:03
You can access session state from multiple web roles / servers in Windows Azure. To do so, you either need to store the session data in SQL Azure or in the AppFabric cache. (using SQL Azure is a bit quirky, but it can be done). Just don't use InProc mode.
With this approach, you can access session state for one user from only one server at a time in R/W mode. The session provider applies a lock that prevents multiple servers (or pages) from accessing the same record at the same time. The lock isn't applied in read-only mode, though (set with EnableSessionState="ReadOnly" on the @Page directive).
Check out my book: Ultra-fast ASP.NET: Building Ultra-Fast and Ultra-Scalable Websites using ASP.NET and SQL Server
- Marqué comme réponse Arwind - MSFTModerator jeudi 3 mai 2012 10:28

