List Info

Thread: C-Sharp (C#) Group: Session or...?




C-Sharp (C#) Group: Session or...?
user name
2006-06-08 20:51:24
Hi all,

I have an assignment due (asp.net in c#) that requires us to
think of a
large-scale online stores allowing for thousands of users at
a time to
be logged in, creating accounts and so on.  We have been
told to choose
either sessions and / or databases to hold necessary
information but
I'm a bit stuck (and very interested) in how it would
really work!  Can
anyone point me in the right direction here?  A web
reference, a good
example online or something please?  I don't think this
course is very
indepth, so forgive me for the silly questions...I just
don't see how
using a session on one or even a few servers would be the
best thing to
do, nor would calling and somehow storing somewhere else (in
the
session too???) all the user's account information when
we're talking
about thousands of users at a time - wouldn't this clog up
the memory,
speed or whatever else of the web server(s)?  How is it
really done (in
asp.net and c# of course!)?

Many thanks in advance for any guidance 
Lara


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Session or...?
user name
2006-06-16 07:54:58
http://msdn2.microsoft.com/en-US/library/ms178586.aspx

http:
//www.developer.com/db/article.php/3595766

simply the point is to store session parameters on a
separate web
server when you use a web farm.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Session or...?
user name
2006-06-16 07:52:54

Goog79 wrote:
> Hi all,
>
> I have an assignment due (asp.net in c#) that requires
us to think of a
> large-scale online stores allowing for thousands of
users at a time to
> be logged in, creating accounts and so on.  We have
been told to choose
> either sessions and / or databases to hold necessary
information but
> I'm a bit stuck (and very interested) in how it would
really work!  Can
> anyone point me in the right direction here?  A web
reference, a good
> example online or something please?  I don't think
this course is very
> indepth, so forgive me for the silly questions...I just
don't see how
> using a session on one or even a few servers would be
the best thing to
> do, nor would calling and somehow storing somewhere
else (in the
> session too???) all the user's account information
when we're talking
> about thousands of users at a time - wouldn't this
clog up the memory,
> speed or whatever else of the web server(s)?  How is it
really done (in
> asp.net and c# of course!)?
> 
> Many thanks in advance for any guidance 
> Lara


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Session or...?
user name
2006-06-16 08:17:04
A large scale implementation should avoid sessions as much as possible as they nearly always cause scalability issues (even when you use Sql sessions). A much better and farm safe method is to use a database driven caching model where you assign caching priorities to items (frameworks already exist for this, check out http://msdn.microsoft.com/library/?url=/library/en-us/dnpag2/html/EntLib2.asp). If you think through the data you need to hold about a user / products it is fairly easy to come up with a list of priorities for the data items. For instance:

Firstname / Lastname etc - Can be cached  for the entirety of a users session but needs to expire when the session ends or the user changes their details (alternatively should only be cached as long as the session and user needs to end their session for the cache update to take place). Used frequently so has a high priority.

Product price - Should always be retrieved from the datasource and should never be cached.

Obviously for each dataitem you need to decide how stale the data can be and the data priority (low priority items will be the first removed from the cache).

On a class level you would want to implement this transparently so your Data Access Layer would be the only layer that knows or cares if an items is cached, both your Business and Presentation Layer would simply request items from your data layer which would either retrieve them from cache or the database.

Liam

On 6/16/06, zoki <gmail.com">gorgievski.zorangmail.com> wrote:

http://msdn2.microsoft.com/en-US/library/ms178586.aspx

http://www.developer.com/db/article.php/3595766

simply the point is to store session parameters on a separate web
server when you use a web farm.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: Session or...?
user name
2006-06-21 19:57:44
Thanks so much Liam and Zoki!  I'm gonna investigate your
links and
tips further. 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )