Click here to Skip to main content
14,933,538 members
Articles / Web Development / ASP.NET
Posted 6 Aug 2010

Tagged as


2 bookmarked

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
Scaling options for ASP.NET Sessions
I was exploring the options to scaleout the 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 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 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.


I hope this helps!.



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


About the Author

Vinayaka Krishna Shenoy
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
Membervinayakshenoy2000@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.