• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 80
  • Last Modified:

rest webservices stateless and allow cache

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
0
gudii9
Asked:
gudii9
  • 2
1 Solution
 
Prashant SabnekarAVPCommented:
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
0
 
Prashant SabnekarAVPCommented:
Closing due to inactivity
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now