On 11/29/12 7:26 AM, deepak srinivasan wrote:
Hello,
Thank-you for the useful response. we tried the options but the conclusion
is ATS forwards the request to the PoOS in round robin, we are having a
requirement that ATS should forward the HTTP request to multiple server at
one go. i.e 1 HTTP request sent multiple Servers through ATS at same time.
We are thinking to do this with a help of a external network libraries
used for generation of HTTP request with in a Plugin. We are using remap
configuration.
Wanted to know is this is a possible scenario? Also would like to know in
this scenario will ATS server provide us the feature of Caching the data?
What exactly is the expected outcome? You want it to fire off multiple
requests to several backends, and return the first response to the client
and drop all others? Is ATS expected to merge the responses from all origin
requests, and send the merged results back to the client?
IN either case, it sounds like what you want it something similar to the
SPDY protocol / plugin. I saw a reply suggesting the Lua plugin, but not
sure it can do this (james, can the Lua plugin create HttpConnect VC's ?).
But then again, I don't understand exactly what you are trying to accomplish.
In all cases, you can't use a network API layer that doesn't hook into the
NetVC / event processing system of ATS. I.e. you can't have a request block
on an external network API call. This is just how ATS is designed, with
asynchronous event processing in a small number of threads.
I hope that helps.
-- leif