We do have a combo handler plugin, that can combine multiple response from 
cache or not into one response

https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/combo_handler.en.html

You can look into the code and doc to see if that can help you.

Thanks

Kit

Sent from my iPhone

> On Jun 22, 2018, at 4:16 PM, Leif Hedstrom <zw...@apache.org> wrote:
> 
> 
>> On Jun 22, 2018, at 3:28 PM, Dunkin, Nick <nick.dun...@ccur.com> wrote:
>> 
>> Hi,
>> 
>> I have a question that may sound bonkers but please bear with me.  I need to 
>> know whether the available plugin APIs(C/C++) will let me insert and 
>> retrieve arbitrary objects into the Traffic Server cache.
>> 
>> In its simplest form my question would be as follows:
>> 
>> “Using the available APIs could I write a plugin, that on retrieving a 3MB 
>> object from the Origin, actually inserts three separate 1MB objects into the 
>> cache?”
>> 
>> A follow up question would be:
>> 
>> “Using the available APIs could I write a plugin (or transformation plugin), 
>> that on receiving a client request for same 3MB object, actually retrieves 
>> and reconstitutes the three 1MB objects from the cache, and returns them a 
>> single response?”
> 
> 
> I believe the answer is “sort of”. If you accept the responsibility for doing 
> all reads, and all writes, then yes. But if you expect to write to the cache, 
> and then let ATS itself be able to serve it via an HTTP request, then I 
> believe it’s no. What’s missing are an API to link the header object to the 
> variants (if I recall).
> 
> — Leif
> 

Reply via email to