0
$\begingroup$

I am learning distributed systems ( although I am an Electrical engineer ) using the book distributed systems concepts and design. The author says that "A web server is often a client of a local file server that manages the files in which the web pages are stored." I cant understand in the first place what is the relation between a web server and a local file server. So please someone explain this statement using a simple example. Thank you very much.

$\endgroup$
1
$\begingroup$

Often the content is stored on a local filesystem (or file server); the web server accesses the content by reading it from the local filesystem (or file server), then provides it to the web client on demand. So the web server is making use of a local file server -- in that sense the web server is a client of the local file server.

$\endgroup$
4
  • $\begingroup$ Many thanks . But if the content of the web server is stored on another file server , then what is stored on the web server itself ? $\endgroup$ – John adams Nov 3 '20 at 20:56
  • $\begingroup$ @Johnadams it depends, but potentially nothing. $\endgroup$ – D.W. Nov 3 '20 at 20:57
  • $\begingroup$ Many thanks . But if nothing is stored there , then what is the point of having a web server ? In this case it is better to have this file server acts as a web server also ? $\endgroup$ – John adams Nov 3 '20 at 20:59
  • $\begingroup$ @Johnadams, this site is not made for interactive back-and-forth. If you have additional questions I suggest posting them separately. It might be best to do some reading about how webservers work and are built first. $\endgroup$ – D.W. Nov 3 '20 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.