×

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 CC and BCC

Now a day, there are so many medium of communication. But In olden times it was not easy to talk to people sitting far away from you. There was no...

7 minutes read.

Difference between Ordinary Diode and Zener Diode

In electric circuits the diode’s play a very important role. The Diodes are of many types of diodes are divided into parts because of different factors like materials used in...

3 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 HTTP and HTTPS

HTTP vs HTTPS | Difference between HTTP and HTTPS What is HTTP? HTTP stands for “Hyper Text Transfer Protocol”. It is a set of specific rules and standards, which control the transmission...

5 minutes read.

Difference between HMO and PPO

HMO is short for Health Maintenance Organization, and PPO is short for Preferred Provider Organization. HMO and PPO are the two kinds of health insurance plans. If you want to...

6 minutes read.

Autotrophs vs Heterotrophs

Difference between Autotrophs and Heterotrophs "Autotrophs are creatures that can manufacture their own food through photosynthesis, whereas heterotrophs cannot and must rely on autotrophs for nourishment." A heterotroph is a creature...

4 minutes read.

Difference between Website and Portal

You use websites and portals every day. Both look alike but it isn't easy to differentiate between them. In this article, we will comprehend the distinction between a website and...

4 minutes read.

Difference between EIGRP and OSPF

Both EIGRP and OSPF are interior gateway routing protocols. The aim of both EIGRP and OSPF is to choose the best route to transfer information from source to destination with...

4 minutes read.

Difference between .NET Core and .NET Framework

We can create the modern cloud-based software applications on popular operating systems such as Windows, Linux, and macOS using the free, open-source, .NET framework. One of the major contributions of...

3 minutes read.

Food Allergy VS Food Intolerance

Difference Between Food Allergy and Food Intolerance A food allergy arises when the body's immune system, which normally fights diseases, sees food as an invasion. When the immune system reacts to...

3 minutes read.

Difference between Hyperlink and Hypertext

Although they are connected, hyperlink and hypertext are very different from one another. Both are essential components of the Internet. They form the core of everything that makes up the...

3 minutes read.

Difference between SDN and NFV

1. Software Defined Networking (SDN) The aim of the SDN design is to enhance overall network performance, and by providing a dynamic and programmatically effective network setup, networks may become nimble...

3 minutes read.

Difference between Real and Virtual Image

Difference between Real and Virtual Image We are able to see the beautiful world around us. We can read a book, watch TV as well as see our image in the...

5 minutes read.

Difference between NAT and PAT

Before transporting the packet, we can translate an unregistered private address (inside the local address of an internal network) to a registered public address (inside the global address of an...

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 OSS and BSS

We use mobile phones wherever we want. The usage of the mobile phones is only possible using the telecommunication network. The telecommunication helps in building up the platform and network...

3 minutes read.

Difference between SHA and MD5

There are many types of networks present to fulfill the different needs of the people around the world. As the network systems are increasing the threats for the network systems...

4 minutes read.

Glucose vs Fructose

Difference between Glucose and Fructose ‘Fructose’ and ‘glucose’ are both monosaccharide sugars with a simple structure. When starch and sugar, whether sucrose or high-fructose corn syrup (HFCS), are digested, they produce...

4 minutes read.

Difference between Static Friction and Limiting Friction

Friction exists in between the two objects when there is a contact in between them. There are different types of frictions based on the different factors like the Motion, Force,...

3 minutes read.

Difference between Hadoop and Spark

Hadoop is an open-source platform that enables the storing and processing of large amounts of data in a distributed setting across computer clusters. With Hadoop, you can scale from a...

3 minutes read.