Practical - Backend Flashcards
What are the client-server model process steps?
1) Make Server Requests
2) Receive Responses
3) Display the HTML page
What are the Components of an HTTP Request?
Method
URL/URI
HTTP Version
Headers
Body (optional)
Query Parameters (optional)
Cookies (optional)
List the available HTTP Methods
GET
POST
PUT
DELETE
HEAD
CONNECT
OPTIONS
TRACE
PATCH
What are the possible HTTP Response Status Codes ranges?
- Informational responses (100 – 199)
- Successful responses (200 – 299)
- Redirection messages (300 – 399)
- Client error responses (400 – 499)
- Server error responses (500 – 599)
What is the utility of HTTP Headers?
Communicate information between client and server
What are the types of HTTP Headers?
Request or Response Headers
How does the server handle requests?
Through sockets
What is a server?
- Hardware
A computer that runs server software and stores website component files - Software
A program that controls how web users access the hosted files
What happens when you navigate to a url?
- The browser (e.g., Chrome) creates an HTTP GET request. (client-side)
- The request is then sent to the server. (client-server)
- The web server program listens to the request through a socket and generates
the response. (server-side) - The server sends the HTTP response to the client machine. (server-client)
- The browser receives the response and renders the website. (client-side)
What are the layers in a Three-Tier Architecture?
- Presentation Tier
- Bussiness/Application Tier
- Data/Storage Tier
What are the advantages of Single Page Applications?
- Provide a seamless user experience, especially when the application needs to load data frequently.
- Ease development by separating data presenting and data processing logics.
What is a Single Page Application?
- Usually, all necessary HTML, CSS, and Javascript files are retrieved in a single page load.
- The web page is dynamically rewritten with new data from the web server. Client-side Rendering
What does Uniform Resource Locator comprise of?
The URL comprises Scheme, Authority, Path, Parameters, and Fragment.
What is REST?
REST (Representational State Transfer) is an architectural style described by Roy Thomas Fielding in his doctoral dissertation, published in 2000.
List the 6 REST Principles
- Client-server
- Stateless
- Cacheable
- Uniform interface
- Layered system
- Code on demand