Click here to Skip to main content
15,881,812 members
Articles / Web Development / ASP.NET
Tip/Trick

Scaling options for ASP.NET Sessions by partitioning

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
6 Aug 2010CPOL 15.5K   2   2
Scaling options for ASP.NET Sessions
Hi
I was exploring the options to scaleout the asp.net session.Here goes the results.

Different modes of storing the session

1) InProc
2) Out Proc
a) ASP.NET State Service
b)Sql Server

Yes we all know that when comapared to the Asp.net State service option with Sql Server, Sql server scales/available very well at the expense of performance.

But if we have an option where in 2 servers are available(with enough memory and a bit of relaxation in terms of availability requirement), then we can think of partitioning the session data across those 2 boxes.(intermediate scaling option with asp.net state service) so that availability is the sum of 2 boxes. for instance if one of the two boxes is down then the user whos session data is stored in the other machine will be served without any interruption..

It can be achieved with the help of interface - IPartitionResolver and few configuration entries(PartitionResolverType)


For more info on using this session partition refer to msdn.


[http://msdn.microsoft.com/en-us/library/system.web.ipartitionresolver.aspx]

I hope this helps!.

Regards,
-Vinayak

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect MindTree Ltd
India India
Motivated achiever who guides organizations in applying technology to business settings, provides added value, and creates project deliverables in a timely manner. An experienced Technical Consultant, have successfully led large project teams of more than 20 people from requirements gathering to implementation and support using C#, .NET ,ADO.NET, ADO.NET Entity Framework,ASP.NET,ASP.NET MVC, WCF and SQL Server.

Comments and Discussions

 
GeneralReason for my vote of 5 Good options Pin
vinayakshenoy2000@gmail.com9-Aug-10 17:15
vinayakshenoy2000@gmail.com9-Aug-10 17:15 
Generalthanks for sharing Pin
Pranay Rana17-Aug-10 23:58
professionalPranay Rana17-Aug-10 23:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.