I do like the idea and it seems that based on Nginx ngx_http_proxy_module is more easy way
Ming Wen <wenm...@apache.org> 于2020年2月17日周一 下午6:22写道: > > I agreed with you. > The option #1 is more stable and easy to learn. > > Thanks, > Ming Wen, Apache APISIX > Twitter: _WenMing > > > agile6v <agil...@apache.org> 于2020年2月17日周一 下午4:58写道: > > > Hi everyone, > > > > A proxy caching plugin caches response body to disk or memory to reduce > > latency, i think this is a very useful plugin, but there are several > > choices. > > > > 1. Based on Nginx's built-in proxy cache in ngx_http_proxy_module, it > > store data on disk. > > 2. Based on lua_shared_dict in ngx-lua-module, it store data on memory. > > 3. Based on external storage such as redis and other redis-like storage > > system. > > > > Each option has its own scenario, but i think option #1 supports more > > functionality, less code needs to be implemented and there will be a lot of > > restrictions. In addition, I'd perfer to abstract these options into a > > plugin and then by parameters to distinguish. > > > > What do you think of? > > > > Thanks, > > agile6v > >