On 25 August 2012 01:30, Ask Bjørn Hansen <a...@develooper.com
> On Aug 24, 2012, at 7:29, Aaron Trevena <aaron....@gmail.com
>> It looks like we need a nice way of combining responses from multiple
>> upstream sources into a single downstream response - a simple
>> concatonation of header, body, footer - maybe some very simple ESI or
> I'm not sure if this is easy to do with a plugin ("fetch three requsts, return them to the user in this order").
It's more about assembling a page than getting them in order,
essentially it would be modifying one response by fetching 2 more and
adding them, either in parallel or consecutively.
> If not, then this seems like either you need to just use ESI (use Varnish) or you need something more custom (make a node.js or Go server).
Yes, looking at ESI with varnish is an option, but not sure it's going
to be fast or flexible enough - and writing bespoke node.js code
sounds like a world of pain given we have precisely 0 backend
consider it to be some sort of magic pixie dust that does stuff
faster, and I'm concious we could invest time in that route and end up
with something no faster or easier to maintain than if we'd hacked
together something in perlbal or mojolicious)
My preferred option is to embed some of the dynamic content using
frequently changing or non-user specific content, and has worked