rest webservices stateless and allow cache

gudii9
gudii9 used Ask the Experts™
on
i was reading below link
http://gopaldas.org/webservices/soap/webservice-is-stateful-or-stateless-rest-soap/

what it mean  by

rest web services stateless and allow caching
how stateless allows to cache webservice responses?
how caching is related to statelessness of http?
please advise
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi gudii9,

HTTP is a stateless protocol but still we can maintain state by some techniques such as cookies, URL rewriting and hidden forms. See this link https://www.ntu.edu.sg/home/ehchua/programming/webprogramming/HTTP_StateManagement.html

Once you have the state then you can provide caching also.
Imagine a request made by a client for some service, the first time you do the processing needed to send the response but the next time you can skip that processing by maintaining a cache (provide the response still remains same).

Let me know if this clarifies your question or if you need any more clarification.

-prashant
Closing due to inactivity

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial