Application Layer Flashcards
What are the Application layer architecture features? It determines how the client/server divides their workload
- The presentation logic defines the user interface and controls the application
- The application/business logic describes what the application does.
- The data access logic describes how the application manages its data.
- The data storage logic describes where the data is stored e.g files, data base.
Define the Server-based architecture and its features?-
In the server-based architecture, the server does all of the logic while the client is a “dumb” terminal sending keystrokes to the server from the server’s instructions. The server becomes a bottleneck due to a lot of tasks and upgrade becomes expensive and “lumpy”.
Define the Client-based architecture and its features.
In the client-based architecture, all of the logic is handled by the client while the server stores the data. This means that data would need to move back and forth between the server and client.
Define the Client-based architecture and its features.
In the client-based architecture, all of the logic is handled by the client while the server stores the data. This means that data would need to move back and forth between the server and client.
Define the Client-Server architecture and its features.
In a client-server architecture, the client handles the application and business logic while the server stores and manages the data. The processing load is balanced between client and server.
Define the Thin-Client architecture and its features.
In a thin-client architecture, the server handles most of the logic except the presentation logic. This would mean that only one server needs updating!
Define the Multi-tier architecture and its features.
In a multi-tier architecture, an additional server handles the application/business logic while another server stores and manages the data. Meanwhile, the client needs to simply control the application .
Define the Peer-to-peer architecture and its features.
In a peer-to-peer architecture, the computer acts as both a client and a server. Local logic is used to access data from another computer.
What are the application layer protocols?
HTML, SMTP
What is the World Wide Web?
The world wide web (WWW) is based on two main technologies - HTTP and HTML. HTTP is a protocol for communication between the client and the server while HTML is a format to describe webpages.
What is HTTP?
The Hypertext Transfer Protocol defines how a web browser(client) communicates with web server. It is based on two innovative ideas- Hypertext and URL. Hypertext is a document with links to other documents. The URL (Unified Resource Locators) is the standard for identifying the links to other document. HTTP as a whole defines how documents are requested and transferred.
How is HTTP performed?
The request-response cycle between the web browser(client) and web server enables the client to request a document through an HTTP request (URL)and the server to respond with a HTTP response. (HTML)
What are some HTTP methods?
THE GET method retrieves the specified URL from a server.
The HEAD method retrieves only the header of the specified URL.
The POST method adds data to the request body to the specified URL.
What is a HTTP request and response?
The client sends a HTTP request with a HTTP method to a server for a HTTP response . The HTTP header and body for request and response are optional.
How does HTTP add states?
HTTP is stateless i.e each request is an independent transaction. However, sometimes states need to be added to identify and keep track of the session. Hence there are two approaches to add HTTP states-
- Client sends the session identifier as POST with every request
- The server sets a cookie and client transmits the cookie with every request