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

What can I do to replicate files among load balanced servers?

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 performance reasons, I do not want to
store binary files in the db (cuz there will be frequently retrieved and
stored and many will be within the range of 10 MB - powerpoint slides and pdf
files) so uploaded files will have to stay on the front end web server. The
problem with this approach is that there will have to be some mechanism that
replicates the files automatically among the front end servers. Can someone
shed some light on what the best apporach is to my problem? I am wondering
whether Windows 2000 has such service available to do file replication (if
so, how?)

Thanks in advance for your help. Any comment is greatly appreicated.

Samuel
Jul 19 '05 #1
4 3626
"Samuel" <pr********@asppg.net> wrote in message
news:C3**********************************@microsof t.com...
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 performance reasons, I do not want to
store binary files in the db (cuz there will be frequently retrieved and
stored and many will be within the range of 10 MB - powerpoint slides and
pdf
files) so uploaded files will have to stay on the front end web server.
The
problem with this approach is that there will have to be some mechanism
that
replicates the files automatically among the front end servers. Can
someone
shed some light on what the best apporach is to my problem? I am wondering
whether Windows 2000 has such service available to do file replication (if
so, how?)

Thanks in advance for your help. Any comment is greatly appreicated.


Here's one way:
http://support.microsoft.com/default...b;en-us;311398

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #2
What is the overall goal ?

For now I would just consider this as "data" and would do the same than for
the DB i.e. storing those documents at a single location...

You can easily create virtual directories that would point to this single
location. You could also use a share outside of your web site making the
documents only available through dynamic pages...

Patrice

--

"Samuel" <pr********@asppg.net> a écrit dans le message de
news:C3**********************************@microsof t.com...
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 performance reasons, I do not want to
store binary files in the db (cuz there will be frequently retrieved and
stored and many will be within the range of 10 MB - powerpoint slides and pdf files) so uploaded files will have to stay on the front end web server. The problem with this approach is that there will have to be some mechanism that replicates the files automatically among the front end servers. Can someone shed some light on what the best apporach is to my problem? I am wondering
whether Windows 2000 has such service available to do file replication (if
so, how?)

Thanks in advance for your help. Any comment is greatly appreicated.

Samuel

Jul 19 '05 #3
1) You could just create a network share (file sharing). You can then access
to this location using the UNC notation \\server\sharename in your web
application (assuming of course you granted the apppropriate rights).

The benefit is those files are not at location that is accessible from
Internet. Users wi'll have to pass through a page to download files...

2) It could. Factors to weight :
- the LAN is generally fast (you could have a 100 Mb), faster anyway than
sending documents to web clients
- what is the expected traffic (frequency of downloads, size of documents)
- your application could "cache" locally some documents

I'm not an expert but AFAIK :
- DFS allows to distribute files accross servers, this way you could
statistically win the document is on the current server but still be in the
same situation when the document is stored at a distant location (even
though you don't have explictely to take care of this).
- Replication would be IMO a bit more problematic. AFAIK you have a master
server on which you must put all documents. They are then replicated at
various other location. I'm a bit wondering also about what happens if you
store a document and want to download it before the replication occured.

On the whole, I just wanted to stress that there is multiple solutions
depending on various factors. I just wanted to say that IMO the "store at a
single location" would be likely the simplest and the first to consider. If
you can configure the location for files, the app won't care it it's a
single server or a local location where files are replicated. it could be
quite easy to use a simple solution first and move as there is an
indentified need for a more sophisticated solution.

Patrice

--

"Samuel" <pr********@asppg.net> a écrit dans le message de
news:4F**********************************@microsof t.com...
Hi Patrice,

While I find Tom's solution should fill the bill, your suggestion is very
interesting to me also.

I am just wondering the following:

1) I understand how virtual directory works, but not too sure about
shares... can you fill me in with a bit more details?

2) Doesn't storing files in a central location stress the LAN because files would have to travel on the LAN before being sent out to the client?

Thanks!

"Patrice" wrote:
What is the overall goal ?

For now I would just consider this as "data" and would do the same than for the DB i.e. storing those documents at a single location...

You can easily create virtual directories that would point to this single location. You could also use a share outside of your web site making the
documents only available through dynamic pages...

Patrice

--

"Samuel" <pr********@asppg.net> a écrit dans le message de
news:C3**********************************@microsof t.com...
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 performance reasons, I do not want to store binary files in the db (cuz there will be frequently retrieved and stored and many will be within the range of 10 MB - powerpoint slides and
pdf
files) so uploaded files will have to stay on the front end web
server. The
problem with this approach is that there will have to be some
mechanism that
replicates the files automatically among the front end servers. Can

someone
shed some light on what the best apporach is to my problem? I am

wondering whether Windows 2000 has such service available to do file replication (if so, how?)

Thanks in advance for your help. Any comment is greatly appreicated.

Samuel


Jul 19 '05 #4
Hi Patrice,

While I find Tom's solution should fill the bill, your suggestion is very
interesting to me also.

I am just wondering the following:

1) I understand how virtual directory works, but not too sure about
shares... can you fill me in with a bit more details?

2) Doesn't storing files in a central location stress the LAN because files
would have to travel on the LAN before being sent out to the client?

Thanks!

"Patrice" wrote:
What is the overall goal ?

For now I would just consider this as "data" and would do the same than for
the DB i.e. storing those documents at a single location...

You can easily create virtual directories that would point to this single
location. You could also use a share outside of your web site making the
documents only available through dynamic pages...

Patrice

--

"Samuel" <pr********@asppg.net> a écrit dans le message de
news:C3**********************************@microsof t.com...
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 performance reasons, I do not want to
store binary files in the db (cuz there will be frequently retrieved and
stored and many will be within the range of 10 MB - powerpoint slides and

pdf
files) so uploaded files will have to stay on the front end web server.

The
problem with this approach is that there will have to be some mechanism

that
replicates the files automatically among the front end servers. Can

someone
shed some light on what the best apporach is to my problem? I am wondering
whether Windows 2000 has such service available to do file replication (if
so, how?)

Thanks in advance for your help. Any comment is greatly appreicated.

Samuel


Jul 19 '05 #5

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

Similar topics

4
by: | last post by:
both of 2 servers are MySQL. how can I replicate a database to one server from another? until now I zip the database folder and I extract the zip file in other MySQL server. But now I...
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...
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: Tim Barton | last post by:
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...
3
by: alainpoint | last post by:
I know Google are using Python for testing purposes. But for the rest ? is it PHP or Java or .NET? Which technology is rendering the google main page? And of course th obvious question, why not...
0
by: ors.public.email | last post by:
Hi, My company has recently experienced an issue when posting back aspx pages across multiple servers that were being load balanced. In a nutshell, the problem involved initially loading the...
2
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
My employer has need to setup a Load Balanced Web Farm for some mission critical ASP.NET Web Services and I was wondering if the only way to accomplish this was to purchase Microsoft's ISA Server...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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:
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.