1 Sep 05:03
Re: Propagating messages and errors to the user interface
Richard Wallace <rwallace1979 <at> gmail.com>
2009-09-01 03:03:02 GMT
2009-09-01 03:03:02 GMT
On Mon, Aug 31, 2009 at 10:07 AM, Richard Wallace<rwallace1979 <at> gmail.com> wrote: > On Mon, Aug 31, 2009 at 12:21 AM, Udi > Dahan<thesoftwaresimplist <at> gmail.com> wrote: >> >> >> When doing REST, consider using the PRG pattern - POST (or PUT), Redirect, >> GET. >> >> That way, you don't get tied to the original connection when returning a >> response. >> > > So, basically use a bunch of 202s? And then have the client poll the > server with GETs to figure out when the operation is complete? I do > take this approach for processes that I expect to be long running, but > seems a bit silly to apply it to ALL scenarios. Especially if the > system isn't under too high a load and can handle the request in a > timely manner. > > Rich > Also, if you take this approach don't you still need to listen for a response to the message that is sent to the domain? You need some way to identify that the message executed either successfully or unsuccessfully, probably by a message id. Right? >> >> >> Hope that helps.(Continue reading)
------------------------------------
RSS Feed