1. Suppose we have a web server that keeps a table of client IP addresses and th
ID: 3910947 • Letter: 1
Question
1. Suppose we have a web server that keeps a table of client IP addresses and the web pages they have accessed (like a cache). When a client requests a page from the server, the table is looked up first and the cached page is returned.
a. Is this server stateful or stateless? Why?
b. Describe one kind of transparency that is at risk of being violated with this scheme. What kind of transparency is bring violated and why?
Describe a method in which this lack of transparency could be addressed.
Explanation / Answer
1. This server implimentation is stateful as the information in the form of cached pages is stored on the server. Any system is said to be stateful when it stores information related to it. The stored information is also called the "state" of the system.
2. The system voilates the Replication Tranceparency, as the copy of the page is stored on web server as well as on the host server. In this case, the changes in the page from host server will not reflect in the copy stored in the web server. This will cause user to get inconsistent data from the web server.
To resolve this issue, one of the appropriate way is perfrom Write Through operation on your web server whenever the data on the host server is modified.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.