umputun / reproxy

Simple edge server / reverse proxy
http://reproxy.io
MIT License
1.23k stars 92 forks source link

How about add extra cache mechanism #24

Open mhf-ir opened 3 years ago

mhf-ir commented 3 years ago

Nginx support proxy cache and it's useful but how about add much more cache mechanism like bloom.

Could be store on Redis,Filesystem, LRU application, Mongo or etc...

umputun commented 3 years ago

I don't want to add extra complexity to the core. To my taste, it already has too many things in, so I'd rather remove/extract.

Extras like middleware-level caching probably can be done with some plugins as soon as we figure what technics we want to use to connect external code.

umputun commented 3 years ago

as we heave plugins support in place this caching can be implemented as a plugin. If anyone wants to deal with this let me know and we could discuss how such a plugin should be organized on the code level, repo location and so on

darkweak commented 2 years ago

Hello, I could work on it. As I already done a middleware for lot of reverse-proxies/APIM to implement a fully RFC compliant cache system called Souin I think it would be easy to adapt the middleware way into a RPC handler. But I don't know if we can catch the request and the response.