How to copy a download folder using ASP.Net?

We have a situation where users are allowed to upload content, and then separately make some changes, and then submit the form based on these changes.

This works fine in a single-server environment without fault tolerance, but we need some kind of solution for exchanging files between servers that support switching to another resource.

Has anyone encountered this in the past? And what solutions could you develop? Obviously storing the database is one option, but we would rather avoid this.

+4
source share
4 answers

At our previous job, we had a cluster of web servers with an F5 load balancer in front of them. We had a very similar problem in that our applications allowed users to upload content that might include a photo, etc. These are obsolete applications, and we did not want to edit them to use the database, and the SAN solution was too expensive for our situation.

As a result, we used the file replication service on two clustered servers. This ran as a service on both machines using an account that had network access to paths on the opposite server. When the file was downloaded, this server service synchronizes the data in the folders of the file system, making it available for servicing from any web server.

Two of the products we reviewed were ViceVersa and PeerSync . I think we have finished using PeerSync.


+1
source

In our scenario, we have a separate file server, on which both of our application servers are recorded on the front end, so you or the server have access to the same sets of files.

+1
source

The best solution for this is usually to provide a common area in some form of SAN that will be accessible from all servers and will contain a failure.

This also has the advantage that you do not need to provide sticky load balancing, the load can be handled by one server, and the change by another.

0
source

A common failover SAN is a great solution with a high (high) cost. Are there similar resiliency solutions at a reasonable price? Perhaps something like DRBD for Windows?

The problem with a simple shared file system is the lack of redundancy (what if the file server goes down)?

0
source

Source: https://habr.com/ru/post/1276408/


All Articles