> -----Original Message----- > From: Christopher Lenz [mailto:[EMAIL PROTECTED] > Sent: 18 October 2003 21:55 > To: Cactus Developers List > Subject: Re: Use HTTP header instead of unique ID? > > Vincent Massol wrote: > > Hi, > > Howdy! > > > Nick has started a unique id generator to support execution of > > concurrent cactus tests. However, there might be a better solution: > > return the test result in an HTTP header in the same HTTP response. > > > > There might be issues with this solution. I think that I had some doubts > > about this in the past but I can't recall any good reason right now... > > :-) > > How would we pass an exception thrown on the server side back to the > client? That's really the only reason I see why we have two requests > currently.
What is the problem of passing the exception in a header? It is a string. > > > If it works, it will solve several issues: > > - prevent 2 HTTP requests which will be faster > > - support use cases where people using cactus have a load balancer (the > > second request to get the test result is balanced on another server) > > If two requests are made with the same session, they should get > processed by the same server (a spec requirement IIRC). So we could also > maintain the session (if created) between the two requests. That would only work with sticky load balancers but we don't want to assume anything. > > > - allow concurrent test execution > > Which would also be enabled by using unique test IDs, of course. .... which is not needed if the response is returned immediately in the first response! :-) -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]