Difference between stateless and stateful protocols

Computer EngineeringComputer NetworkMCA

Both Stateless and stateful protocols are the network protocols for the web servers and web browsers. These protocols are differentiated based on the server side to save session information.

Following are the important differences between Stateless and Stateful.

Sr. No.KeyStatelessStateful
1DefinitionStateless Protocol is a network protocol in which Client send request to the server and server response back as per the given state.Stateful Protocol is a network protocol in which if client send a request to the server then it expects some kind of response, in case of no response then it resend the request.
2ExamplesHTTP (Hypertext Transfer Protocol), UDP (User Datagram Protocol), DNS (Domain Name System)FTP (File Transfer Protocol), Telnet.
3Server RestrictionIn Stateless, server is not needed to keep the server information or session details to itself.In stateful, a server is required to maintain the current state and session information.
4DependencyIn stateless, server and client are loosely coupled and can act independently.In stateful, server and client are tightly bound.
5DesignServer design is simple to implement.Server design is comparatively complex and difficult to implement.
6Crash ProofA failed server can be restarted easily after crash.A server has to keep the information of session and other details. Crash management is difficult.
7TransactionsServer handles transactions in a very quicker way.Server is slow comparatively.
Published on 26-Nov-2019 10:56:27