Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opposite of Stateless Protocol?

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.

like image 988
Mus Avatar asked Apr 23 '11 17:04

Mus


People also ask

What is stateful vs stateless?

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.

Is TCP stateless or stateful?

TCP is a connection oriented protocol and is stateful by definition.


1 Answers

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

like image 75
Cratylus Avatar answered Oct 21 '22 15:10

Cratylus