1. Suppose we have a web server that keeps a table of client IP addresses and th
ID: 3910925 • 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
(Ans- )(a)This is a stateless server.
(b)The important issue with stateless designs is not if any information is maintained by the server on its clients, but instead whether that information is needed for correctness. In this example, if the table is lost for what ever reason, the client and server can still properly interact as if nothing happened. In a stateful design, such an interaction would be possible only after the server had recovered from a possible fault.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.