0% found this document useful (0 votes)
9 views2 pages

Theory

HTTP is used to access websites and TCP establishes sessions between clients and servers. An HTTP request contains a request line with the method, URL path, and version number, as well as optional headers and a message body. HTTP response codes are grouped into five categories: informational, successful, redirection, client errors, and server errors. Express middleware functions run during a request lifecycle and include third-party, router, application, error-handling, and built-in middleware. WebSockets provide bidirectional communication over a single TCP socket connection by facilitating message passing between clients and servers. Long polling keeps client connections open for responses or timeouts. SQL interfaces with relational databases while NoSQL is non-relational and does not use SQL

Uploaded by

Andrey Alekseev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Theory

HTTP is used to access websites and TCP establishes sessions between clients and servers. An HTTP request contains a request line with the method, URL path, and version number, as well as optional headers and a message body. HTTP response codes are grouped into five categories: informational, successful, redirection, client errors, and server errors. Express middleware functions run during a request lifecycle and include third-party, router, application, error-handling, and built-in middleware. WebSockets provide bidirectional communication over a single TCP socket connection by facilitating message passing between clients and servers. Long polling keeps client connections open for responses or timeouts. SQL interfaces with relational databases while NoSQL is non-relational and does not use SQL

Uploaded by

Andrey Alekseev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HTTP - Hypertext Transfer Protocol

TCP - full form is Transmission Control Protocol


HTTP is utilized to access websites, while TCP is a session establishment protocol between
client and server

HTTP request:
1) Request line
● A method. The method is a one-word command that tells the server what it should
do with the resource. For example, the server could be asked to send the resource to
the client.
● The path component of the URL for the request. The path identifies the resource on
the server.
● The HTTP version number, showing the HTTP specification to which the client has
tried to make the message comply.

2) HTTP headers
Authorization
Content-type
3) Message body
JSON

1. Informational responses (100–199)


2. Successful responses (200–299)
3. Redirection messages (300–399)
4. Client error responses (400–499)
5. Server error responses (500–599)

In Express five different types of middleware: 3rd Party, Router, Application, Error-handling,
and Built-in
Express middleware are functions that execute during the lifecycle of a request to the
Express server

A WebSocket is a persistent connection between a client and server. WebSockets provide a


bidirectional, full-duplex communications channel that operates over HTTP through a single
TCP/IP socket connection. At its core, the WebSocket protocol facilitates message passing
between a client and server.
Long polling is a strategy in which the server chooses to keep a client's connection
open for as long as feasible, only responding when data becomes available or a
timeout threshold is reached

SQL is the programming language used to interface with relational databases.


(Relational databases model data as records in rows and tables with logical links
between them). NoSQL is a class of DBMs that are non-relational and generally do not
use SQL.
MongoDB is a database based on a non-relational document model
One-to-One (1-1) relationship is defined as the relationship between two tables where
both the tables should be associated with each other based on only one matching
row. This relationship can be created using Primary key

The One-to-Many relationship is defined as a relationship between two tables where a


row from one table can have multiple matching rows in another table. This
relationship can be created using Primary key

Many-to-Many relationship lets you relate each row in one table to many rows in
another table and vice versa

You might also like