Stateless Vs Stateful Protocol

light111Stateless Vs Stateful Protocol


In the last post SAP Gateway  we talk a little about SAP Gateway with REST and oDATA.

In SAP oDATA, we often heard about the term stateless. Lets explore a little what exactly it is .


In client server communication over internet, when any request is made to the server, a session is established. So a stateless protocol is a communication protocol where the server don’t retain any session information or status  about the communication partner for multiple requests. Ex- HTTP protocol is a stateless.

Whereas in stateful protocol, it requires  to keep the session information on the server. Ex- TCP protocol is stateful protocol.

With stateful protocol, the server needs to allocate additional memory space to keep the session information. If there are many users/the server gets many requests, then it requires a good scaleable server design to handle requests.

With stateless protocol, the server design is simple as there is no need to allocate memory to keep the session information. 


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s