×

Difference between Persistent and Non-Persistent Connection

We all use the internet, and we usually search on the internet for different things. It looks so easy when we search anything on the internet. It is all right before us in seconds. But in the backend, a lot of process will be there like when you request or search for anything your request will be carried out to the server and the result will be carried out to you. This process will be done using a protocol called HTTP. HTTP provides a well secured connection between the client and the server. So, in this article, we are going to discuss about the differences between the Persistent and Non-persistent type of HTTP protocols or the HTTP connections.

Persistent Connection

Persistent Connection is one of the basic HTTP connections. It establishes the connection between the users and the servers. The Persistent connection can also be called as the HTTP/1.1. The HTTP connection will always be terminated after single transaction between the server and the user, but the Persistent Connection is type of HTTP connections in which the interface or the connection that build between the user and the server will be open after sending the response also. Persistent Connection always uses the Transmission control protocol. The Persistent Connection always uses the 1 RTT for all the reference objects. When we use the Persistent Connection there is no need for creating a new connection for different objects. The Persistent connection need only one round trip time because sending the request and receiving the response is considered as a single cycle.

The Persistent Connection is the default mode of the HTTP connection. When the TCP connection is open in the Persistent connection multiple requests can be requested over a single TCP connection. The load on the CPU will be very less because for all objects a single connection is sufficient  in the persistent connection. The Persistent connection can also reduce the network traffic.

Non-Persistent Connection

Non-Persistent connection is also a basic type of HTTP connection which is mostly used in the establishing the connection between the client and the server. The Non-Persistent connection can also be called as the HTTP/1.0. The Non-Persistent connection also works like Persistent connection but in non-Persistent connection the connection build between the server and the client will be terminated after using it for a single object. The Non-Persistent connection establishes the new connection to transfer the files. The Non-Persistent connection requires two RTT’s for every object that needed to be transferred. Non-Persistent connection is always over-headed. Non-Persistent connection is not a default mode of the HTTP connection. The TCP will be always closed after every request is processed. For every new request we need new TCP that multiple requests require multiple TCP’s. Non-Persistent connection requires more time to process a request because it needs to establish a new connection for every request and the response.

Differences between Persistent Connection and Non-Persistent Connection in Tabular Form

Persistent ConnectionNon-Persistent Connection
The Persistent Connection is the second version of the HTTP, and it is also called as HTTP/1.1The Non-Persistent connection was the first version of HTTP, and it is also called as HTTP/1.0
The Persistent connection will always be in the default mode.The Non-Persistent connection will always be in the non-default mode.
The Persistent connection uses very less time because all the requests and responses are transferred in a single TCP.The Non-Persistent connection uses more time when compared to Persistent connection because it uses new TCP for every new request and response.
The Persistent connection requires only one round trip time for all the objects.The Non-Persistent connection requires two RTT’s for every object present in the connection.
The request methods used in the Persistent connection are GET, HEAD, POST, PUT, DELETE, etc.The request methods used in the non-Persistent connection are HEAD, POST, etc.
For downloading the multiple objects, the Persistent connection only uses a single connectionFor downloading the multiple objects, the non-Persistent connection requires multiple connections
The usage of the CPU will be less in the persistent connection because it runs on a single TCPThe usage of the CPU will be more when compared to persistent connection because it runs on the multiple TCP’s

Related Topics

Difference between E-Commerce and E-Business with an Example

Nowadays, no one is interested in going to the market to buy and sell their products. Now people just place an order through the internet, and their product is directly...

3 minutes read.

Difference between Exhaustible and Inexhaustible Natural Resources

Nature provides many resources which are used by all the living organisms. We the human beings mainly depend on the resources provided by the nature for different life needs to...

3 minutes read.

Difference Between Recruitment and Selection

Difference Between Recruitment and Selection For running an organization successfully, workforce plays a vital role. Because employees are the assets of organisations and with their skills and ideas, organization becomes successful....

6 minutes read.

Difference between GPS and DGPS

What is GPS, and how is it operated? Positioning and navigation are become crucial aspects of our daily lives. Today, GPS is the most widely used utility for everyone. A person...

3 minutes read.

Difference between Warranty and Guarantee

Difference between Warranty and Guarantee At the present time, these words are prevalent in the market. Whenever you purchase new product, the vendor provides you the certain commitment for the particular...

8 minutes read.

Difference between Hematite and Magnetite

What are Iron ores? Iron makes up a large portion of both the Earth's outer and inner cores, making it the most prevalent element on Earth by mass, just ahead of...

3 minutes read.

Difference between Permutation and Combination

Permutation The permutation is an action of arranging all or a few members of a set within a linear order. In other words, it is a selection process in which sequence...

1 minute read.

Difference between Memory Mapped IO and IO Mapped IO with reference to 8085 Microprocessor

The microprocessor is unable to act independently; therefore, it must be connected to memory, additional peripherals, or IO devices. Interfacing is the term for this connecting. There are two methods to...

3 minutes read.

Desktop OS vs Embedded OS

The difference between a desktop operating system and an embedded operating system is explained in this article. But, before we get into the differences, it's very important to know the...

6 minutes read.

Difference Between Electrovalency and Covalency

Introduction In chemistry, there is a chain in which bonding happen from the lower level to higher level forming the large compounds. The bonds forming between the two elements are of...

3 minutes read.

Difference between Visa and Passport

Traveling is an inevitable part of life. People travel to distant areas for work, jobs, studies, etc. Traveling helps us in having a practical experience of places, cities, countries, etc....

4 minutes read.

Difference between FTP and TFTP

File transfer protocols like FTP and TFTP are both used to move data between systems on a TCP/IP network. Both TFTP and FTP deliver data in clear text and are...

3 minutes read.

Difference between active and passive FTP in Linux

It is an application layer protocol that handles network file transfers. The service is TCP-based. Understanding active and passive modes or understanding the difference between active and passive modes can...

2 minutes read.

Difference between RIP and EIGRP

1. Routing Information Protocol (RIP) In the Routing Information Protocol (RIP), 15 hops are allowed at most because it avoids source-to-destination routing loops. Erroneous or incorrect routing information is avoided using...

2 minutes read.

Difference between Bezier Curve and B-Spline Curve

Nowadays, we all see that the use of graphics is increased. Graphics is used in all the websites, applications and also games. Ever wondered how such smooth curves are created...

3 minutes read.

Difference between Server-Side and Client-Side Scripting

There are two places where the scripts can be written, at the server end (back end) or at the client end (server end). The fact that server-side scripts are processed...

4 minutes read.

Fashion vs Trend

Difference beween Fashion and Trend Can you resist buying new clothes while window shopping? Can you feel "not bad" after coming home and not buying something you liked, but your mom...

4 minutes read.

Different Kinds of Boxes in Latex

Different Kinds of Boxes in Latex A box is an object which is treated as a character in LaTex. A box can never be broken or split into multiple pages or...

7 minutes read.

Difference between Optical Fiber and Coaxial Cable

What is Optical Fiber Cable? Data is sent utilizing light over optical fiber connections. Dr Narinder Singh Kapani showed how optical fiber might be used to convey pictures and created the...

3 minutes read.

Difference between India and Australia

Difference between India and Australia India India is a large country in Asia Continent. A Portuguese explorer VascodeGama was the first European who reach India. He reached Calicut (India) in July 1497...

5 minutes read.