Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid single point of failure when using state server in ASP.NET website

Tags:

In my current project, we have to create a website (ASP.NET MVC) which is likely to have sufficient load to demand a server farm. I understand that if server farm is used, session states must be stored on somewhere else such as SQL server database or state server.

After some experimentation, we are inclined to use the state server mechanism but the fact that it will have single point of failure, makes me nervous. Is there any method by which we can avoid "single point of failure" when using state server?

like image 942
Hemant Avatar asked Jul 22 '09 04:07

Hemant


2 Answers

There is something called session state partitioning that you could use, in order to avoid a single point of failure. If this still doesn't suit you, then you might consider trying the ASP.NET Velocity project, which it looks promising even though it is in CTP stage only.

If you want full scalability and redundancy, then you should probably use a SQL Server Cluster.

like image 153
Bogdan Maxim Avatar answered Oct 04 '22 20:10

Bogdan Maxim


sharedcache (http://www.sharedcache.com or http://sharedcache.codeplex.com) has an implementation for sessions, it's not released so far but people are using it.

like image 29
user258880 Avatar answered Oct 04 '22 20:10

user258880