Difference between Persistent and Non-Persistent Connections

Persistent HTTP Non-Persistent HTTP                                                                           
The server leaves the connection open after sending a response. Requires 2 RTTs per object.
Subsequent HTTP messages between the same client/server are sent over an open connection. OS overhead for each TCP connection
The client sends requests as soon as it encounters a referenced object. Browsers often open parallel TCP connections to fetch referenced objects.
As little as one RTT for all the referenced objects. Here, at most one object can be sent over one TCP Connection.

HTTP Non-Persistent & Persistent Connection | Set 1

The Hypertext Transfer Protocol (HTTP) is an application-level protocol that uses TCP as an underlying transport and typically runs on port 80. HTTP is a stateless protocol i.e. server maintains no information about past client requests. 

Similar Reads

HTTP Connections

Non-Persistent Persistent...

Basic Pre-Requisite

The terminology which we must know before going deep into Persistent & Non-Persistent Connections is...

Difference between Persistent and Non-Persistent Connections

Persistent HTTP Non-Persistent HTTP                                                                            The server leaves the connection open after sending a response. Requires 2 RTTs per object. Subsequent HTTP messages between the same client/server are sent over an open connection. OS overhead for each TCP connection The client sends requests as soon as it encounters a referenced object. Browsers often open parallel TCP connections to fetch referenced objects. As little as one RTT for all the referenced objects. Here, at most one object can be sent over one TCP Connection....

Non-Persistent Connection

Non-Persistent Connections are those connections in which for each object we have to create a new connection for sending that object from source to destination. Here, we can send a maximum of one object from one TCP connection....

Persistent Connection

1. Non-Pipelined Persistent Connection: In a Non-pipeline connection, we first establish a connection that takes two RTTs then we send all the object’s images/text files which take 1 RTT each (TCP for each object is not required)....