Its a well know fact that webservices are stateless. Its written in every text that deals with WCF basics. But I need to know, Are they truely stateless.
I was reading about the PerCall WCF webservice
, which destroy the service instance for every call. I am not able to comprehend the use of Percall service. If webservices are stateless, then what is the need of destroying service instance for each call.
WCF has several instance models.
The PerCall model is truly stateless. With the singleton model it depends on how you write it (but stateless is strongly advised). The PerSession model is not stateless at all.
There are trade-offs regarding memory use, concurrency, latency and security.
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