473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Web Farms and session handling

Hi!

We have a problem which is correlated to web farms and session handling and
are thinking of what solution to choose.

Our setup is with a web farm, one ldap server and a database cluster.

The web farm is doing searches which are quite performance expensive against
the ldap server, taking up to 10 or 15 seconds. The searches are displayed
to the client in a datagrid, which then may have to be paged.

There are different ways to handle paging:
- do the search again against the ldap, but in our opinion that is to slow
to be an option.

- save the search result in the viewstate, but that gives pages roundtrip
with sizes of megabytes.

- save the search result in the in-proc session, but that can't handle where
the session is moved to another server within the web farm.

- save the search result in the aspnet state server session, but the state
server isn't cluster-aware and is therefore a single point of failure, which
really isn't an option.

- save the search result in a sql session, but according to MS articles this
normally requires a new database server, in our case a database cluster. The
cost for another database cluster (hardware, software, maintanance and so
on) is high.
Anyone have any ideas that'll solve our problem? Anyone have any high load
experience with SQL server sessions?

Regards,

John
Dec 1 '05 #1
4 2178
if you have a sqlserver cluster, you don't need a new one. the resources for
using sqlserver for state management is low, single row read and write per
page flip. your current server should hardly notice it.

aspstate is a pretty simple database as are the queries.
-- bruce (sqlwork.com)

"John Allberg" <sm***@nospam.nospam> wrote in message
news:ui**************@TK2MSFTNGP12.phx.gbl...
Hi!

We have a problem which is correlated to web farms and session handling
and are thinking of what solution to choose.

Our setup is with a web farm, one ldap server and a database cluster.

The web farm is doing searches which are quite performance expensive
against the ldap server, taking up to 10 or 15 seconds. The searches are
displayed to the client in a datagrid, which then may have to be paged.

There are different ways to handle paging:
- do the search again against the ldap, but in our opinion that is to slow
to be an option.

- save the search result in the viewstate, but that gives pages roundtrip
with sizes of megabytes.

- save the search result in the in-proc session, but that can't handle
where the session is moved to another server within the web farm.

- save the search result in the aspnet state server session, but the state
server isn't cluster-aware and is therefore a single point of failure,
which really isn't an option.

- save the search result in a sql session, but according to MS articles
this normally requires a new database server, in our case a database
cluster. The cost for another database cluster (hardware, software,
maintanance and so on) is high.
Anyone have any ideas that'll solve our problem? Anyone have any high load
experience with SQL server sessions?

Regards,

John

Dec 1 '05 #2
Thanks for Bruce's input.

Hi John,

I agree with Bruce on this. And so far in ASP.NET 1.X if stateserver of not
possible, SqlServer session maybe the only considerable approach for
webfarm or webgarden scenario...
BTW. in ASP.NET 2.0 we can replace the default build-in sessionState module
with our own custom module , that may help implement our own session
storage mechanism...

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Bruce Barker" <br******************@safeco.com>
| References: <ui**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: Web Farms and session handling
| Date: Thu, 1 Dec 2005 10:31:56 -0800
| Lines: 56
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <u1**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362123
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| if you have a sqlserver cluster, you don't need a new one. the resources
for
| using sqlserver for state management is low, single row read and write
per
| page flip. your current server should hardly notice it.
|
| aspstate is a pretty simple database as are the queries.
|
|
| -- bruce (sqlwork.com)
|
|
|
|
|
| "John Allberg" <sm***@nospam.nospam> wrote in message
| news:ui**************@TK2MSFTNGP12.phx.gbl...
| > Hi!
| >
| > We have a problem which is correlated to web farms and session handling
| > and are thinking of what solution to choose.
| >
| > Our setup is with a web farm, one ldap server and a database cluster.
| >
| > The web farm is doing searches which are quite performance expensive
| > against the ldap server, taking up to 10 or 15 seconds. The searches
are
| > displayed to the client in a datagrid, which then may have to be paged.
| >
| > There are different ways to handle paging:
| > - do the search again against the ldap, but in our opinion that is to
slow
| > to be an option.
| >
| > - save the search result in the viewstate, but that gives pages
roundtrip
| > with sizes of megabytes.
| >
| > - save the search result in the in-proc session, but that can't handle
| > where the session is moved to another server within the web farm.
| >
| > - save the search result in the aspnet state server session, but the
state
| > server isn't cluster-aware and is therefore a single point of failure,
| > which really isn't an option.
| >
| > - save the search result in a sql session, but according to MS articles
| > this normally requires a new database server, in our case a database
| > cluster. The cost for another database cluster (hardware, software,
| > maintanance and so on) is high.
| >
| >
| > Anyone have any ideas that'll solve our problem? Anyone have any high
load
| > experience with SQL server sessions?
| >
| > Regards,
| >
| > John
| >
| >
|
|
|

Dec 2 '05 #3
Hi!

Thanks for the help. With this info, we'll go with SQLState.

Thanks,

John

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:aP**************@TK2MSFTNGXA02.phx.gbl...
Thanks for Bruce's input.

Hi John,

I agree with Bruce on this. And so far in ASP.NET 1.X if stateserver of
not
possible, SqlServer session maybe the only considerable approach for
webfarm or webgarden scenario...
BTW. in ASP.NET 2.0 we can replace the default build-in sessionState
module
with our own custom module , that may help implement our own session
storage mechanism...

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Bruce Barker" <br******************@safeco.com>
| References: <ui**************@TK2MSFTNGP12.phx.gbl>
| Subject: Re: Web Farms and session handling
| Date: Thu, 1 Dec 2005 10:31:56 -0800
| Lines: 56
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <u1**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362123
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| if you have a sqlserver cluster, you don't need a new one. the resources
for
| using sqlserver for state management is low, single row read and write
per
| page flip. your current server should hardly notice it.
|
| aspstate is a pretty simple database as are the queries.
|
|
| -- bruce (sqlwork.com)
|
|
|
|
|
| "John Allberg" <sm***@nospam.nospam> wrote in message
| news:ui**************@TK2MSFTNGP12.phx.gbl...
| > Hi!
| >
| > We have a problem which is correlated to web farms and session
handling
| > and are thinking of what solution to choose.
| >
| > Our setup is with a web farm, one ldap server and a database cluster.
| >
| > The web farm is doing searches which are quite performance expensive
| > against the ldap server, taking up to 10 or 15 seconds. The searches
are
| > displayed to the client in a datagrid, which then may have to be
paged.
| >
| > There are different ways to handle paging:
| > - do the search again against the ldap, but in our opinion that is to
slow
| > to be an option.
| >
| > - save the search result in the viewstate, but that gives pages
roundtrip
| > with sizes of megabytes.
| >
| > - save the search result in the in-proc session, but that can't handle
| > where the session is moved to another server within the web farm.
| >
| > - save the search result in the aspnet state server session, but the
state
| > server isn't cluster-aware and is therefore a single point of failure,
| > which really isn't an option.
| >
| > - save the search result in a sql session, but according to MS
articles
| > this normally requires a new database server, in our case a database
| > cluster. The cost for another database cluster (hardware, software,
| > maintanance and so on) is high.
| >
| >
| > Anyone have any ideas that'll solve our problem? Anyone have any high
load
| > experience with SQL server sessions?
| >
| > Regards,
| >
| > John
| >
| >
|
|
|

Dec 6 '05 #4
You're welcome John,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "John Allberg" <sm***@nospam.nospam>
| References: <ui**************@TK2MSFTNGP12.phx.gbl>
<u1**************@TK2MSFTNGP10.phx.gbl>
<aP**************@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Web Farms and session handling
| Date: Tue, 6 Dec 2005 09:24:40 +0100
| Lines: 121
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <ee**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: pc5161235.han.telia.se 131.115.161.235
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:362973
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi!
|
| Thanks for the help. With this info, we'll go with SQLState.
|
| Thanks,
|
| John
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:aP**************@TK2MSFTNGXA02.phx.gbl...
| > Thanks for Bruce's input.
| >
| > Hi John,
| >
| > I agree with Bruce on this. And so far in ASP.NET 1.X if stateserver of
| > not
| > possible, SqlServer session maybe the only considerable approach for
| > webfarm or webgarden scenario...
| > BTW. in ASP.NET 2.0 we can replace the default build-in sessionState
| > module
| > with our own custom module , that may help implement our own session
| > storage mechanism...
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | From: "Bruce Barker" <br******************@safeco.com>
| > | References: <ui**************@TK2MSFTNGP12.phx.gbl>
| > | Subject: Re: Web Farms and session handling
| > | Date: Thu, 1 Dec 2005 10:31:56 -0800
| > | Lines: 56
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Response
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <u1**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: rdcsd1.safeco.com 12.144.134.2
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:362123
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | if you have a sqlserver cluster, you don't need a new one. the
resources
| > for
| > | using sqlserver for state management is low, single row read and write
| > per
| > | page flip. your current server should hardly notice it.
| > |
| > | aspstate is a pretty simple database as are the queries.
| > |
| > |
| > | -- bruce (sqlwork.com)
| > |
| > |
| > |
| > |
| > |
| > | "John Allberg" <sm***@nospam.nospam> wrote in message
| > | news:ui**************@TK2MSFTNGP12.phx.gbl...
| > | > Hi!
| > | >
| > | > We have a problem which is correlated to web farms and session
| > handling
| > | > and are thinking of what solution to choose.
| > | >
| > | > Our setup is with a web farm, one ldap server and a database
cluster.
| > | >
| > | > The web farm is doing searches which are quite performance expensive
| > | > against the ldap server, taking up to 10 or 15 seconds. The searches
| > are
| > | > displayed to the client in a datagrid, which then may have to be
| > paged.
| > | >
| > | > There are different ways to handle paging:
| > | > - do the search again against the ldap, but in our opinion that is
to
| > slow
| > | > to be an option.
| > | >
| > | > - save the search result in the viewstate, but that gives pages
| > roundtrip
| > | > with sizes of megabytes.
| > | >
| > | > - save the search result in the in-proc session, but that can't
handle
| > | > where the session is moved to another server within the web farm.
| > | >
| > | > - save the search result in the aspnet state server session, but the
| > state
| > | > server isn't cluster-aware and is therefore a single point of
failure,
| > | > which really isn't an option.
| > | >
| > | > - save the search result in a sql session, but according to MS
| > articles
| > | > this normally requires a new database server, in our case a database
| > | > cluster. The cost for another database cluster (hardware, software,
| > | > maintanance and so on) is high.
| > | >
| > | >
| > | > Anyone have any ideas that'll solve our problem? Anyone have any
high
| > load
| > | > experience with SQL server sessions?
| > | >
| > | > Regards,
| > | >
| > | > John
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Dec 6 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: news.onet.pl | last post by:
Hello I'm biting into the following problem: HTTP is stateless protocol and thus net languages' designer had to find out session. As far as I know session handling in any of the language (PHP,...
3
by: Richard P | last post by:
I am experiencing some browser weirdness. My app uses session state to hide values I prefer to keep out of the querystring. I am testing to see what happens when cookies are fully disabled in IE...
9
by: Marcus | last post by:
Hello, Currently all of my php pages use SSL, not just my initial login. Originally I thought this would be more secure, but after thinking about things and looking at sites like Amazon and...
1
by: Tin Man | last post by:
I have read in asp.net books (1) that with asp.net, Session state will work with web farms and (2) that Session state will NOT work with web farms or gardens. Which is true? T
1
by: Oscar Thornell | last post by:
Hi, I have an ASP.NET page that generates an Exception... The Exception is not caught in the executing method...so it propagates to..the Page_Error event handling method.. In that method the...
2
by: postings | last post by:
Hi I was under the mistaken impression that Application variables could be shared by websites running under the same IIS process. Looking at the documentation this isn't true. So what is the...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
9
by: viz | last post by:
hi, i have written a class for session handling, and i want to use it to keep track of the user. After authenticating the user in login page i am storing the session info like uname etc.. in a...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.