Google News
logo
Rest API - Interview Questions
Enlist advantages and disadvantages of 'Statelessness'.
We have understood the meaning of statelessness with respect to client-server communication. Now, let us see some of its advantages and disadvantages.
 
Advantages :
 
* Every method required for communication is identified as an independent method i.e. there are no dependencies to other methods.
* Any previous communication with the client and server is not maintained and thus the whole process is very much simplified.
* If any information or metadata used earlier in required in another method, then the client sends again that information with the HTTP request.
* The HTTP protocol and REST web service, both shares the feature of statelessness.

Disadvantages :
 
* In every HTTP request from the client, the availability of some information regarding the client state is required by the web service.
Advertisement