Very fast hyper and rust-based HTTP framework (much faster than Actix and other web frameworks)

95 points shailendra-sharma

Hello folks,

https://github.com/hyper-fast/hyper-fast

I open-sourced a fast HTTP web server based on Hyper and Rust, under Apache 2.0 License. This module has been used internally in multiple large-scale, high-throughput, and low-latency projects in my organization for the last few years. It is proven to handle billions of requests per day with sub-millisecond latency.

Framework has almost zero overhead, unlike other frameworks such as Actix (earlier, we used Actix and faced performance challenges). Implementation is very lightweight and does zero-copy of request and response.

Features are

  • Supports brotli, deflate, and gzip encoding for request and response
  • In-built access logs and metrics for APIs
  • Simple APIs to get current metrics - in JSON and Prometheus format
  • In-built OOR (Out of rotation API) to take the server out of rotation
  • In-built Server Health API
  • Very simple and fast match pattern-based routing.
  • It's much faster than Actix and other web servers out there.
  • Support for optional daemon service that gets started on server start and stopped on server shutdown
  • In-built server shutdown handling.

​

Looking forward to this community's valuable feedback. If you like the project, please \star\\ it to spread it further.

Thanks

​