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

Web.config on load balanced servers

Hi,
I'm building an application that will probably sit on some load balanced
servers at some point and I'm concerned about keeping configuration settings
in the web.config file. Is there a tried and tested method of holding config
information in static classes or in the cache that someone could point me
to?

Cheers,
Tim.
May 5 '06 #1
2 1110
If you want a single location for configuration data, consider the database.
But then of course you have a bootstrapping problem of how to tell each server
what database to connect to. At some point, each server needs to be informed
where to go look for your configuration data.

-Brock
http://staff.develop.com/ballen

Hi,
I'm building an application that will probably sit on some load
balanced
servers at some point and I'm concerned about keeping configuration
settings
in the web.config file. Is there a tried and tested method of holding
config information in static classes or in the cache that someone
could point me to?

Cheers,
Tim.

May 6 '06 #2
Thanks for that. What I was really thinking about was to use a database for
the settings but to load them to memory at app start. They would then sit in
a static class or the system cache for fast retrieval. Then when the config
changes the in memory stuff is re-populated with the new data. When this is
running across several machines is there a way of keeping the data
consistent on them all?

Cheers,
Tim.

May 12 '06 #3

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

Similar topics

4
by: Samuel | last post by:
I am building an web application that will be hosted on load balanced servers (multiple front and one backen db). The application will have to allow users to upload files onto the server. For...
2
by: billym | last post by:
Does anyone know if C# (or .NET applications in general) can be load balanced on the middle tier simply by deploying them to multiple servers in a clustered environtment? If so, would this be...
3
by: Garrek | last post by:
I have a web application that currently runs on a single server and need to move to a load-balanced environment. The system receives content uploaded by users which will have to be shared among...
1
by: gladiator | last post by:
Hello: What is the difference between Web farm and web garden?what will be affected by them when design web applications?Related resource will be more helpful!!thanks in advance!
6
by: Stephen | last post by:
Hi All! This really is a file permissions problem ... although I'm not sure how to solve it. Any assistance would be greatly appreciated. I have a series of load balanced servers. Each of...
0
by: HK | last post by:
I'm wanting to get rid of a hardware load balancer and just use the Windows 2003 software load balancing with 2003 Server Web Edition. I'm wondering if anyone here uploads ASP.NET code to 2 or...
2
by: =?Utf-8?B?YW5hbmQga3VtYXI=?= | last post by:
Hi, We have a requirement where windows service application XX will be deployed on two servers that is load balanced. The windows service polls the file directory and performs some logic when the...
6
by: BA | last post by:
Hi Everyone, I have an application that sits behind a server farm, the application needs to pass its NLB IP address in the message that it sends to another service. From C# code, how can I...
2
by: Robin9876 | last post by:
When created a Session State database from Asp.Net v2 that is to be used by a web site that is on servers that are windows load balanced. Does any other configuration changes need to be made to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.