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

Questions about storing state and web farms

All,

I'd appreciate it if someone could answer these questions for me.
This scenario applies to an ASP dot net application that is deployed in
a web farm.

1) Does the application live in a separate app domain on each
webserver in the farm?

2) Does each webserver's version of the application have its own
Application_Start and Application_End event

3) If I implement a static member variable as singleton in a class and
reference that class in the Web Application, does that mean there will
be a separate copy of this variable on each webserver?

4) What are the pros and cons of using each of the following two
methods to store one instance of an object per web server (I'm assuming
that the answers to 1, 2, and 3 are "yes"):

a) Storing the object in ApplicationState
b) Implementing a static member variable as a singleton as
described above
Thanks!

-Jonathan

May 12 '06 #1
2 1502
> 1) Does the application live in a separate app domain on each
webserver in the farm?
Yes.
2) Does each webserver's version of the application have its own
Application_Start and Application_End event
Yes.
3) If I implement a static member variable as singleton in a class and
reference that class in the Web Application, does that mean there will
be a separate copy of this variable on each webserver?
Yes.
4) What are the pros and cons of using each of the following two
methods to store one instance of an object per web server (I'm assuming
that the answers to 1, 2, and 3 are "yes"):

a) Storing the object in ApplicationState
b) Implementing a static member variable as a singleton as
described above
The pros and cons depend on what the object is and what you need to do with
it.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

<ne************@hotmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com... All,

I'd appreciate it if someone could answer these questions for me.
This scenario applies to an ASP dot net application that is deployed in
a web farm.

1) Does the application live in a separate app domain on each
webserver in the farm?

2) Does each webserver's version of the application have its own
Application_Start and Application_End event

3) If I implement a static member variable as singleton in a class and
reference that class in the Web Application, does that mean there will
be a separate copy of this variable on each webserver?

4) What are the pros and cons of using each of the following two
methods to store one instance of an object per web server (I'm assuming
that the answers to 1, 2, and 3 are "yes"):

a) Storing the object in ApplicationState
b) Implementing a static member variable as a singleton as
described above
Thanks!

-Jonathan

May 12 '06 #2
>The pros and cons depend on what the object is and what you need to do with
it.

Kevin,

Thanks for responding.

The object in question is a dot net class wrapping a COM component.
The class creates an SSL session to a proprietary device that manages
encryption and decryption.
I'm guessing that there is no easy way to manage one instance of this
object across the entire web farm, so I suppose maintaining one
instance on each web server should be sufficient.
Does that help?

Thanks,
-Jonathan

May 12 '06 #3

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

Similar topics

3
by: cwineman | last post by:
Hello, I posted this question in microsoft.public.dotnet.framework and didn't get any responses. Maybe somebody here has some input. If anyone knows of a better place to ask these questions, let...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
1
by: kanones | last post by:
Hi I have an expensive call to the database that returns a dataset and I need to store this somewhere so that I do not make repeated calls to the database for the same parameters. What is the...
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
2
by: jakk | last post by:
Below is the exception that Iam getting. It says that the DataView that Iam storing in the session is not Serializable. BUt works fine if I store in the inproc session and fails if I switch to...
1
by: Danny Ni | last post by:
Hi, I have questions: (1) To establish web garden, a machine must have mutiple processors. Right? (2) To use ASP.Net session in a web garden environment, process model must be out-of-process,...
5
by: James S. Singleton | last post by:
Thanks to everybody who provided an answer to my previous question on this. I am trying to grasp the nitty-gritty details of this, and I am having difficulties understanding some of the issues...
4
by: michdoh | last post by:
HI All Looking for some advice on session in ASP. We are running windows 2000 with dot.net framework 1.1 on IIS 5.1 This is an NLB architecture with the session being stored in an SQL DB. We...
3
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.