in reply to Re: A server that has a fool as its client: itself
in thread A server that has a fool as its client: itself
Right. We wouldn't want the data to be replicated ad-nauseum until all resources are exhausted
At start-up, there would be no data. When the daemon issues a connect to another daemon, only then would the whole shebang be received once, and there after, the daemons in question would send only changes to the data.
I have also figured out how I would get each daemon to determine who connected to who first: using a configuration file listing IP addresses, I would have the daemon with the highest IP address be the listener, and treat the lower-addressed ones as the client. So if the running daemon sees it has a higher IP address than the rest, it will listen only. If it's somewhere in between within a range of listed addresses, it will listen for the lower addressed clients, but connect to the others since they are daemons.
Given that, I should have the daemons initiate the data push to the clients upon they connecting.
Whew!
Of course, I still need to look at everyone's suggested options.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A server that has a fool as its client: itself
by Corion (Patriarch) on Feb 11, 2011 at 14:14 UTC |