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.
|1||Definition||Stateless 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.|
|2||Examples||HTTP (Hypertext Transfer Protocol), UDP (User Datagram Protocol), DNS (Domain Name System)||FTP (File Transfer Protocol), Telnet.|
|3||Server Restriction||In 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.|
|4||Dependency||In stateless, server and client are loosely coupled and can act independently.||In stateful, server and client are tightly bound.|
|5||Design||Server design is simple to implement.||Server design is comparatively complex and difficult to implement.|
|6||Crash Proof||A failed server can be restarted easily after crash.||A server has to keep the information of session and other details. Crash management is difficult.|
|7||Transactions||Server handles transactions in a very quicker way.||Server is slow comparatively.|