doomspork / hydra

Open source API gateway with integrated cache and data transformations.
Apache License 2.0
66 stars 6 forks source link

Request caching #6

Open doomspork opened 8 years ago

doomspork commented 8 years ago

How best to handle caching? Should we support individual caching of requests and/or overall endpoint caching? Time based? Header based?

jcarouth commented 8 years ago

Yeah this is a tricky one. I think we should support caching at the individual request level. We also have to consider that since this is essentially wrapping other APIs we have that layer of caching to obey/consider as well. In my opinion Hydra should allow for the definer to specify a time-based expiration of Hydra caching, but we should also utilize caching mechanisms from the individual requests within a combined endpoint.

So that makes configuration even more complicated depending on the APIs being combined. Or am I way overthinking this?

doomspork commented 8 years ago

So obey Cache-Control but allow people to override it, right? I think that's do-able.