Connecting Tech Pros Worldwide Help | Site Map

RE: IIS and Session Variables

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 20th, 2008, 02:35 AM
=?Utf-8?B?T2xkIFBlZGFudA==?=
Guest
 
Posts: n/a
Default RE: IIS and Session Variables



"Eric" wrote:
Quote:
What are the dangers of using session variables in IIS 6.0. My application
is servicing about 500 users each of which are authenticated separately and
have individual characteristics that are stored in cache and session
variables.
Do the math.

Suppose all 500 users happened to be online simultaneously.

Suppose your web server has 2GB of memory (even my laptop has that much).

Suppose you are willing to dedicate 5 megabytes (a drop in the bucket) of
memory to session variable usage.

So 5MB/500 is 10KB per user.

Meaning that is you don't store more than 10KB of information, per user, in
session variables, you are way way home free.

Willing to dedicate 50MB to the cause? Now you can have 100KB per user.

But I'm here to tell you now that if you have 100KB per user, you are doing
something wrong, anyway. At that point, you should be using a database as
your "cache" instead of session variables. 2KB or 3KB? Sure.
*Occasionally* 10KB? Maybe. But 100KB? You have a bad design.



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.