Click here to Skip to main content
Click here to Skip to main content

Scaling options for ASP.NET Sessions by partitioning

By , 6 Aug 2010
Rate this:
Please Sign up or sign in to vote.
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)

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 PinmemberVinayaka_shenoy@mindtree.com9-Aug-10 17:15 
Generalthanks for sharing PinmemberPranay Rana17-Aug-10 23:58 

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

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

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