In: Computer Science
1. Naming patterns play a key role in the organization of data on the web. Why these patterns are important?
2. The HTTP protocol specifies the format that a URL must follow. What is the advantage to having a required format for something like a URL?
3. It is required information about all users to be stored on a server. Describe a naming scheme that follow to ensure that a client can request information about a specific user.
4. Assume that somebody is interacting with your server (i.e., they are the client) and that they know nothing about the data on your server. Describe a series of requests/responses that could be used to allow that person to find out what users your server knows about and then request information about a specific user that they are interested in. Include an outline of the information that would be contained in each request and response.
Dear Student, I have spent lot of time on making these terms simple and clean, so if you got something from it, then give it an Upvote. Thank You
Q1) Why Naming patterns are important?
Ans: A Naming pattern is considered a Standard if it describes the recommended rules.
In detail: In general, a naming convention provides a set of rules for choosing the sequence of characters to identify variables, functions, and other elements within code or its documentation.
These rules are used during the creation of host, service, and command names. Knowing the above rules, everyone can easily read and understand the hostnames. But this is not the only advantage. A naming convention:
Q2) What is the advantage of having a required format for something like a URL?
Ans: It provides below advantage of its:
1. Improved user experience:
A simple URL makes it easy to read for both users and machine, if a
user is provided with an alphanumeric URL then he/ she may find it
difficult to read and visit the site or web page
2. Rankings
URLs are a minor ranking factor for search engines, that use when
determining a particular page or resource's relevance to a search
query.
3. Easier to Share
By being obviously shorter, easier to remember, and more
trustworthy, our GPlus vanity URL is also engineered to be more
sharable than before.
Q3) Describe a naming scheme that follows to ensure that a client can request information about a specific user.
Ans: To access a specific service on a specific server, the user must obtain two credentials.
Q4) Describe a series of requests/responses that could be used to allow that person to find out what users your server knows about and then request information about a specific user that they are interested in. Include an outline of the information that would be contained in each request and response.
Ans: Basically all is done on HTTP.
HTTP is an asymmetric request-response client-server protocol. An HTTP client sends a request message/request to an HTTP server. The server, in turn, returns a response message. In other words, HTTP is called pull protocol, where the client pulls information from the server.
The HTTP method is a type of call made to the server
1. HTTP GET: here we use GET requests to retrieve resource
representation/information only – and not to modify it in any
way.
2.HTTP POST: here we use POST APIs to create new subordinate
resources
Here we also use status codes in response to check status.
In detail: Status codes are used by a server in
response to a client's request made to the server.
the HTTP response status codes are separated into five types.