In a content distributor system, a DistributorServer
component is installed with each HTTP server. Each Dynamo server includes one or more DistributorSender
components or DistributorPool
components (a resource pool of DistributorSender
components) that are configured to connect to the DistributorServer
component on each HTTP server.
When the putFile
methods of a DistributorSender
are invoked, the DistributorSender
:
Generates a file name and directory to use on the remote servers.
Checks to see if the file has already been sent to the remote servers by:
checking locally in its document cache (
RemoteServerCache
)checking remotely, issuing a
fileCheck
command to the remoteDistributorServer
components.
The check is performed by comparing the file’s size and last modified time to that of the version of the file in the local document cache and then in the remote document cache.
If the file is not found either in the local cache or the remote cache, the
DistributorSender
sends the file to the remote server. On the remote server, aDistributorReader
writes the file in the specified directory.The file is then cached locally.
The
putFile
operation returns a URL that can be used to access the file that was sent.