programatik29 / axum-server

High level server designed to be used with axum framework.
MIT License
166 stars 54 forks source link

Any way to add hyper layers directly ? #97

Closed Wicpar closed 7 months ago

Wicpar commented 7 months ago

Hi,

due to performance reasons (difference between 1ms and 100ms and 100mb vs 2GB memory usage) i need to add a hyper (not tower) layer that comes before everything for my proxy implementation. I had to rewrite my code based on your serve function and inject the proxy as the lowest service.

I was wondering if you would consider adding a mechanic like Acceptor but used to modify the final tower service before it is served ?

Wicpar commented 7 months ago

ah scrap it, a mistake i made, it still is too slow because the acceptor runs first and runs into_service. i think the acceptor mechanic might be enough