juicedata / juicefs

JuiceFS is a distributed POSIX file system built on top of Redis and S3.
https://juicefs.com
Apache License 2.0
10.96k stars 968 forks source link

Support for varnish reverse proxy #4596

Open minguyen9988 opened 8 months ago

minguyen9988 commented 8 months ago

What would you like to be added:

I want s support for varnish reverse proxy to be added the change should be relatively small at the proxy code

Why is this needed: Varnish has become a huge player in caching, Juicefs would compliment it greatly.

minguyen9988 commented 5 months ago

to expand we have proxy to gate keep between GCP/AWS and internal infrastructure, this proxy also support caching, it is a reverse proxy, if Juicefs can implement a way to work with this, many enterprise who rely on proxy to the cloud will consider.

Here is how it is implemented in golang in clickhouse-backup project https://github.com/Altinity/clickhouse-backup/pull/784/files

Clickhouse in cpp https://github.com/ClickHouse/ClickHouse/pull/51749

Basically we rewrite the request in the roundtripper

gquintard commented 3 months ago

Hi, engineer from Varnish Software here! I'm not exactly sure what would be need to make this work, but I'm making available to help if I can