Click here to Skip to main content
13,556,681 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 6 Aug 2010
Licenced CPOL

Scaling options for ASP.NET Sessions by partitioning

Rate this:
Please Sign up or sign in to vote.
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.

You may also be interested in...

Comments and Discussions

GeneralReason for my vote of 5 Good options Pin
Vinayaka_shenoy@mindtree.com9-Aug-10 17:15
memberVinayaka_shenoy@mindtree.com9-Aug-10 17:15 
Generalthanks for sharing Pin
Pranay Rana17-Aug-10 23:58
memberPranay 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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180515.1 | Last Updated 6 Aug 2010
Article Copyright 2010 by Vinayaka Krishna Shenoy
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid