Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

What is impact of size of Session attributes on Whole Web application????

Posted on 2006-07-19
5
Medium Priority
?
256 Views
Last Modified: 2012-05-05
Hi,
Can anybody please explain me how it will affect to speed & performance of my web application in following cases?
    1)When I am putting some simple primitive & string attributes in my session?
    2)When I am combining all the above attributes into Value Object & then putting VO into my session?
Which one will be good?
Also will it affect to my application's speed if I add more attributes to session scope of my web application?
Thanx
pras
0
Comment
Question by:Econify
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 17136897
So long as you aren't adding kilobytes of stuff, you should see little or no difference...

So long as your server has the memory to handle the increase in memory TIMES the number of concurrent sessions you get

And it's up to you with the choice...

I tend to do (2)

But have been known to do (1)

Tim
0
 
LVL 2

Expert Comment

by:vikrant4u2
ID: 17137310
>> Also will it affect to my application's speed if I add more attributes to session scope of my web application?

yes surely it will effect performance,

try to use less number & size of session variables.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 17137388
>> yes surely it will effect performance,

It really depends on the size of the server, and number of users though, whether the effect is noticable (even measurable) or not...
0
 
LVL 35

Accepted Solution

by:
TimYates earned 375 total points
ID: 17137398
AND if the only other option is to store the variables in a database and have the server look them up from a single key stored in the session, storing everything in the session will probably be faster...
0
 
LVL 35

Expert Comment

by:TimYates
ID: 17145256
Good luck pras :-)

Basically, it's a balancing game with no hard and fast rules...

Memory these days is cheap however, and throwing as much as you can at the webserver won't do you any harm at all :-D

Good luck again!

Tim
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working from home is a dream for many people who aren’t happy about getting up early, going to the office, and spending long hours at work. There are lots of benefits of remote work for employees.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question