The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Dear Microsoft... please abolish in-memory session state.. Thank you.

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
Steve Hebert

Posts: 218
Nickname: sdhebert
Registered: Apr, 2005

Steve Hebert is a .NET developer who has created the .Math compiler library.
Dear Microsoft... please abolish in-memory session state.. Thank you. Posted: Apr 13, 2005 3:05 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Steve Hebert.
Original Post: Dear Microsoft... please abolish in-memory session state.. Thank you.
Feed Title: Steve Hebert's Development Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/steve.hebert/rss.aspx
Feed Description: .Steve's .Blog - Including .Net, SQL Server, .Math and everything in between
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Steve Hebert
Latest Posts From Steve Hebert's Development Blog

I'm generally not a fan of cork-on-a-fork approaches to protecting programmers, but here's one case where I think everyone could benefit...

I've heard of too many ASP.NET web projects that rely on in-memory session state when they make the transition from beta to 1.0 and they are killed by open connections.  Here's some background if you aren't aware of the situation. If the project has session state saved to a database or state server, the ASPNET worker process can be recycled according to a host of criteria and session state is maintained without the users being aware of any problems.  When session state is saved in-process on the ASPNET worker process, recycling the hung process terminates all session and the users are suddenly returned to their login screen (presuming your logic handles terminated sessions correctly).  Open connections can be caused by database objects that have not been properly .Dispose()d in light of the latency introduced by garbage collection.  Too many open connections brings the database server and, consequently, the web server to its knees.

In-memory session state is great for throwing together a demo and working on your laptop, but any real web project should never be using in-memory session state.  Starting any web project coding, this would be on my top 5 list of things to do.  That said, you can run a project with in-memory state activated and it works fine if the code is fully tested (includes memory profiling and execution of test suites) - but the risks you take impact the managability of the running product. 

Bottom line... given that Microsoft is shipping products like MSDE and eventually SQL Server 2k5 express for free, make it the default and throw away in-memory session state altogether.

Read: Dear Microsoft... please abolish in-memory session state.. Thank you.


Topic: Using AppDomain.Unload II Previous Topic   Next Topic Topic: May 2005 Issue of MSDN Mag and Data Points

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use