hyproxy icon indicating copy to clipboard operation
hyproxy copied to clipboard

Consider integrating body_image

Open dekellum opened this issue 6 years ago • 2 comments

See body_image.

An integration could enable Hyproxy to have similar features to nginx as a reverse proxy, where it can reduce proxied server connections by buffering to disk.

Just for the "Static files support" goal, the master branch (candidate for body_image 0.4.0 release) now has zero-copy/async. support for memory mapped http bodies using (glibc) madvise(SEQUENTIAL) (for aggressive OS read-ahead), and using tokio-threadpool blocking annotation.

With more work, body_image could be part of a disk-based proxy caching solution ala varnish.

Would you consider such and integration? Thanks!

dekellum avatar Jul 25 '18 21:07 dekellum

I would definitely be willing to consider this integration! I've been away from this project a while, but with some work, it could be brought up-to-date with present Tokio and support efficient static files.

moosingin3space avatar Jul 25 '18 23:07 moosingin3space

Talking similar potential features with the Gotham developers. There is also https://github.com/scottlamb/http-serve which has been updated to hyper 0.12.

dekellum avatar Jul 26 '18 20:07 dekellum