I would like to know what the opposite of a 'stateless protocol' is. Am I correct in assuming that, seeing as HTTP is stateless, for example, then a protocol such as FTP is the opposite/one that maintains state?
Thanks.
A stateless system sends a request to the server and relays the response (or the state) back without storing any information. On the other hand, stateful systems expect a response, track information, and resend the request if no response is received.
TCP is a connection oriented protocol and is stateful by definition.
Statefull protocol is a protocol designed to keep state in each step, meaning that a statefull server is aware of previous requests.
Stateless protocol do not keep state. Each request is a like it is a new request.
State can be build into stateless protocols.
E.g. HTTP is a stateless protocol, but due to needs state can be kept using cookies, session data etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With