prometheus_exporter icon indicating copy to clipboard operation
prometheus_exporter copied to clipboard

Switch to tokio/hyper with a single thread to conserve resources

Open AlexanderThaller opened this issue 3 years ago • 0 comments

To use less threads and therefore less resources we could switch to tokio/hyper with a single thread instead of using tiny-http which will spawn many threads https://github.com/tiny-http/tiny-http/issues/205.

The biggest problem would be how to make this work with the existing interface and how to make it as ergonomic as possible.

Could just be behind a feature flag so it can be used and improved for now. It would also make it easier to use this crate with applications that already use a async framework.

AlexanderThaller avatar Jul 11 '22 08:07 AlexanderThaller