473,395 Members | 1,885 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,395 software developers and data experts.

Web Farm question.

We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.

The issue is that when the state of the object can be different on
different web servers , is there any mecahnism in ASP.NET, like storing
something in the Application object, which can help in synchronizing
this class across web servers ?

any help would be greatly appreciated.

regards
-ashish
Nov 19 '05 #1
5 1183
the short answer is no, other than always loading the data from the state
server.

but with sqlserver you can use its notification services to implement a
trigger for the singleton.

in the past i've implemented a distributed lock manager to maintain
configuration state across a web farm. i use udp for the keepalive and
quorum votes. to update data, the master node takes a update lock, (which
invalids the data on the slaves), updates it data, and releases the lock.
the lock release, the slaves know their copy is invalied and will all
refetch the data from the master (or its source).

-- bruce (sqlwork.com)
"ashish" <as****@mailmenot.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
| We are trying to run an application on a web farm, with sql server state
| management, the issue is that the application uses a singleton static
| class to access configuration information.
|
| The issue is that when the state of the object can be different on
| different web servers , is there any mecahnism in ASP.NET, like storing
| something in the Application object, which can help in synchronizing
| this class across web servers ?
|
| any help would be greatly appreciated.
|
| regards
| -ashish
Nov 19 '05 #2
well if you are using sql server to begin with, why not store the
configuration information in the database? That would seem a reasonable,
scalable approach to me. Config files are machine specific by default and
application specific in the extreme. Either way, it doesn't bode well for
web farm type scenarios. That's about all i can think of at this point, if
the light comes on later, i'll be sure to post something.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
--------------------------------------------------
"ashish" <as****@mailmenot.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.

The issue is that when the state of the object can be different on
different web servers , is there any mecahnism in ASP.NET, like storing
something in the Application object, which can help in synchronizing this
class across web servers ?

any help would be greatly appreciated.

regards
-ashish

Nov 19 '05 #3
What about using the Cache class for that? Need to check right now, but I
believe that will work between computers

Need to check, and I'll post some code later on.

"ashish" wrote:
We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.

The issue is that when the state of the object can be different on
different web servers , is there any mecahnism in ASP.NET, like storing
something in the Application object, which can help in synchronizing
this class across web servers ?

any help would be greatly appreciated.

regards
-ashish

Nov 19 '05 #4
yup you could but it requires a change to the config file to force the
servers in the farm to have the same machine authentication key, then you
would need to remove the isolateapps section of the config file - that
modication was introduced in 1.1, it does not exist for 1.0. If memory
serves me, it is the machinekey node in the machine config file that you
need to address.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
--------------------------------------------------
"Albert Pascual" <Al***********@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
What about using the Cache class for that? Need to check right now, but I
believe that will work between computers

Need to check, and I'll post some code later on.

"ashish" wrote:
We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.

The issue is that when the state of the object can be different on
different web servers , is there any mecahnism in ASP.NET, like storing
something in the Application object, which can help in synchronizing
this class across web servers ?

any help would be greatly appreciated.

regards
-ashish

Nov 19 '05 #5
Great, that's what I wanted to know. So If they have the sames config file
with the same authentication key Cahe will be global.

Thanks so much for your response!

Al

"Alvin Bruney [Microsoft MVP]" wrote:
yup you could but it requires a change to the config file to force the
servers in the farm to have the same machine authentication key, then you
would need to remove the isolateapps section of the config file - that
modication was introduced in 1.1, it does not exist for 1.0. If memory
serves me, it is the machinekey node in the machine config file that you
need to address.

--
Regards
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
--------------------------------------------------
"Albert Pascual" <Al***********@discussions.microsoft.com> wrote in message
news:73**********************************@microsof t.com...
What about using the Cache class for that? Need to check right now, but I
believe that will work between computers

Need to check, and I'll post some code later on.

"ashish" wrote:
We are trying to run an application on a web farm, with sql server state
management, the issue is that the application uses a singleton static
class to access configuration information.

The issue is that when the state of the object can be different on
different web servers , is there any mecahnism in ASP.NET, like storing
something in the Application object, which can help in synchronizing
this class across web servers ?

any help would be greatly appreciated.

regards
-ashish


Nov 19 '05 #6

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

Similar topics

0
by: obhayes | last post by:
Hi All, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
1
by: brad | last post by:
Hi, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
5
by: Hidden Desi | last post by:
Hi all, I am implementing a .NET web application and extensively used the session variables to store data. But today my manager told me that we will be running that application in a web farm !!!!...
3
by: Steve | last post by:
Hi What is difference between web farm and web garden? What i understand so far Web Farm Multi Server Environment Support Session share Application object not supported Caching not...
3
by: Martin | last post by:
I'm plannig an asp.net web farm. I expect to use a SQL database for session state management, ie. <sessionState mode="SQLServer" cookieless="false" .../> My application uses web forms...
5
by: Dominic | last post by:
My question is about how to maintain view state in mobile ASP.NET across postback / request in a web farm environment. First of all, let's assume the web-farm does NOT use stick-session feature....
1
by: Leo Muller | last post by:
I am running webservers in a web farm (multiple servers), and I want to use the viewstate. I do not want to disable the viewstate encryption check. I also run multiple sites on the same webservers....
0
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back...
4
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm preparing for a www.123assess.com test and in that intention I yesterday took a skill assessment test at microsoft.com. Today I'm reviewing some of the questions I had...
3
by: latif87 | last post by:
An example of how the XML file is structured: <xml> <farm name="NAME1"> <size x="INTEGER1" y="INTEGER2" /> <neighbor name="NAME2" /> <crop name="PLANT" area="INTEGER3" /> <crop … /> … </farm>...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.