hyproxy
hyproxy copied to clipboard
Consider integrating body_image
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!
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.
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.