Thank you for the informative article, brilliant. I work with C++ and EMS/Rad Server. I've been trying for some time to understand how I could use long lived logic in a ReST server, without the need to write a separate server to handle complex computations. This article has helped me in understanding the concepts of ReST better, and has answered the question. Thank you for writing it. I have learned some new today about the concepts of ReST services ! Please feel free to contact me anytime, I invite any conversation where I can become a better programmer or maybe be helpful in some way. Best, -PJ
Steve
commented
Jim, 302 is a redirection. This isn't applicable (IMO) for the request of the resource for the status of the original request. We're no longer asking for the resource, we're asking for the status. The status is ready immediately. The status may or may not contain a link to the original resource, depending on whether it's ready or not.
Jim
commented
Perhaps I missed it, but where do you discuss the 302 "Found" code? Makes sense (as much as possible with HTTP) that the 302 is use to indicate the resource/operation is ready. I expected your last code block to return 302 instead of 200, and the resourceLocation indicates where to get the final response for the request.
3 comments on this page
Paul Jackson
Thank you for the informative article, brilliant. I work with C++ and EMS/Rad Server. I've been trying for some time to understand how I could use long lived logic in a ReST server, without the need to write a separate server to handle complex computations. This article has helped me in understanding the concepts of ReST better, and has answered the question. Thank you for writing it. I have learned some new today about the concepts of ReST services ! Please feel free to contact me anytime, I invite any conversation where I can become a better programmer or maybe be helpful in some way. Best, -PJ
Steve
Jim,
302
is a redirection. This isn't applicable (IMO) for the request of the resource for the status of the original request. We're no longer asking for the resource, we're asking for the status. The status is ready immediately. The status may or may not contain a link to the original resource, depending on whether it's ready or not.Jim
Perhaps I missed it, but where do you discuss the 302 "Found" code? Makes sense (as much as possible with HTTP) that the 302 is use to indicate the resource/operation is ready. I expected your last code block to return 302 instead of 200, and the resourceLocation indicates where to get the final response for the request.