Multiple servers, multiple clients, one file inventory

For everything that's not in any way related to PureBasic. General chat etc...
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Multiple servers, multiple clients, one file inventory

Post by merendo »

I am working on a software, which will, once done, do the following:

Replicate and maintain sync of one single file inventory (a filesystem with directories, subdirectories and large contents) across multiple servers. Furthermore, it will allow access to these files to clients, and whenever one client accesses a file from any one server, this file will be locked for further access across all servers, so as to prevent several users accessing the same file at the same time. The clients can also create new files and store them on one server, it will then replicate across all servers. The whole point is to allow users in different geographical locations access to the same inventory of files, while not having to wait for a slow VPN link but instead experiencing full performance of a server on the same LAN.

The files are kept in sync across all servers using Robocopy - each server will create an instance of Robocopy for every other server, in order to create a bidirectional sync system. This will mean that, for two servers, there will be two Robocopy channels running, for three servers six channels, for four servers twelve channels and so forth... (k=n!/(n-2)!)

The clients themselves will never have direct access to the files on the server. Instead, they will see some sort of links, replicated on their local machine, through which they can request to access a file, and then be either told that the file is already being accessed by someone else, or have that file downloaded on their system and do what they want with it. When done, they can upload the file back onto the server and from there, the updated version will be synced onto all other servers, and once that has happened, the file will be released for further access by anyone else.

The software is nowhere near ready yet. I am doing extensive testing and planning right now. Perhaps someone else has done something similar before and can give me a few hints, or maybe think of technical issues I might encounter I haven't thought of yet. Please feel free to ask or make comments, everything (constructive) is appreciated!
The truth is never confined to a single number - especially scientific truth!
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Re: Multiple servers, multiple clients, one file inventory

Post by kinglestat »

Not sure why you need to use a program, windows since NT 4.0 has a very good replication service which with 2008 has become very easy to use

You can use DFS + replication and let windows do the rest, and windows will actually choose the "closest" server to the user. An added advantage is that replication will only sync the changed parts of the files whereas robocopy will copy the whole file which is not practical for large files.
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Re: Multiple servers, multiple clients, one file inventory

Post by merendo »

Well, these features apparently only come with the larger business versions of Windows servers and therefore cost too much. The solution we're working on will be more competitively priced. So, if you will, it'll be a poor mans version of a syncing server as the software will run on any computer running at least WinXP.

As for delta encoding: I simply don't know how to do that. I did once try to write my own routine for file syncing which would give me greater control but this failed dismally once the amount of data grew beyond a few GBytes. So I am now handing this task over to a tool proven for nearly ten years now.
Last edited by merendo on Thu Apr 12, 2012 8:48 am, edited 1 time in total.
The truth is never confined to a single number - especially scientific truth!
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Multiple servers, multiple clients, one file inventory

Post by blueznl »

Should I think of a localized version of Dropbox?

For personal / commercial use, open source, or even to make a little cash?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Re: Multiple servers, multiple clients, one file inventory

Post by merendo »

It's what I do at work. It's for a customer, but to be sold later on. The thing is, I will be leaving my current company by the end of the month so I'm somewhat pressed for time.

A localised version of dropbox with your own servers, providing full network performance and storing large amounts of data. Also shows when a file is already in use by someone else...
The truth is never confined to a single number - especially scientific truth!
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: Multiple servers, multiple clients, one file inventory

Post by Rings »

sorry , but not a real anouncement(except the idea). moved to offtopic for now.
SPAMINATOR NR.1
Post Reply