Persistent connections provide quite few advantages like reduce the delays and overheads of connection establishment, keep the connections in a tuned state, and reduce the potential number of open connections. But if you don't handle persistent connections with care, you may end up accumulating a large number of idle connections, consuming local resources and resources on remote clients and servers.
There are two types of persistent connections
- Http/1.0: had concept of keep-alive connections:
- Http/1.1 has concept of persistent connections.