[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [provision] Async execution (was"Re: [provision] Asynchronou s requests").
Doron, I'm not sure that you're in the minority. I agree with you that honoring a request for explicit execution mode (or failing the request) is more straightforward. The notion that a client can simply omit the 'execution' attribute (in order to indicate that the client will accept either mode) makes this argument even more compelling. However, it seems to me that Jeff Bohren's point is also very good: If a service processes an asynchronous request synchronously, there is no reason to return an asynchronous response. The service knows the request was processed synchronously, and it should be reported as such. Executing an operation synchronously (whenever a provider knows that it can do this) seems to be a reasonable optimization. It does seems a little silly to make a provider 1) generate and return a requestID and 2) hold onto results waiting to be asked for status. I suppose that I could live with a little bit of silliness (since the provider always has the option of failing the request if it is absolutely unwilling to execute asynchronously an operation that the provider could execute synchronously), but it would be nice to have a better answer to Jeff Bohren's point. If a request for asynchronous execution will always receive a synchronous response (that contains the requestID), and if a provider can execute the requested operation synchronously, then why not let the provider return the results of the completed operation (rather than a requestID)? gary Cohen, Doron wrote: >1) I may be in a minority here, but I still feel differently about this >point. To me ,honoring the client request with regard to the mode of the >operation is key. Allowing the PSP to behave differently than requested >means more complexity on the RA side since the RA must be able to handle >both scenarios instead of maintaining a simplicity of acting in one manner. >Also, the RA has no way to predict the time that the request would execute , >and I must admit that in most cases, even the PSP would not really know >that. >Overall, I find a design that honors the RA request more straight forward >and recommend that if we choose to allow the PSP to convert the execution >mode, let the RA say so by providing an additional indication that he is >capable of handling PSP change of mode. > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]