Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webservices are stateless?

Tags:

web-services

Why do we say that web services are stateless?

like image 779
Sundhas Avatar asked Feb 22 '10 18:02

Sundhas


People also ask

Are web servers stateless or stateful?

Stored Data: If the webserver stores data in a backend manner and uses it to identify the user as an always-connected client, the service is Stateful. While in Stateless, the server does store data, but in a database to verify user/client whenever it needs to connect.

Are web services stateful?

Web service, whether it is Rest or SOAP, is by default, designed stateless. But there can be use cases where it is required to be stateful.

Does Web service have state?

In ASP.NET, there are two types of state management techniques: Client side and Server side but in Web Service, we can have very limited state management techniques. Here in Web Services, we have only Server side State Management.


1 Answers

They don't persist any state between requests from the client. i.e. the service doesn't know, nor care, that a subsequent request came from client that has/hasn't made a previous request. Basically, its a 'give me this piece of info and forget about me' which puts the onus on the client to maintain any state.

like image 122
brian Avatar answered Sep 23 '22 19:09

brian