tower-http
HTTP specific Tower utilities. (by tower-rs)
tower-http | static-file-server-speed-compare | |
---|---|---|
4 | 1 | |
633 | 0 | |
1.9% | - | |
8.1 | 0.0 | |
10 days ago | over 2 years ago | |
Rust | Rust | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tower-http
Posts with mentions or reviews of tower-http.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-10.
-
Rust open TCP Connection
If your goal is specifically a web proxy, you also might want to take a look at async Rust such as hyper and tower-http, which are part of the tokio ecosystem. (But spawning threads could be just fine too, if it's not super performance-sensitive.)
-
tower-http ServeDir sending file speed is extremely slow (tower-http 700KiB/s vs actix 800MiB/s)
here's the issue for more detailed info: https://github.com/tower-rs/tower-http/issues/136
-
New Tower guide: Building a middleware from scratch
tower-http has several simple middleware if you're looking for more examples. AddExtension, SetRequestHeader and SetResponseHeader are good places to start. If you want to see something that goes all-in then Trace is probably the most complex middleware in tower-http.
-
HTTP server with lots of network knobs?
You could also look at https://github.com/tower-rs/tower-http which is a work in progress set of HTTP specific middlewares for tower. It also has examples that uses hyper as the HTTP server.
static-file-server-speed-compare
Posts with mentions or reviews of static-file-server-speed-compare.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-01.
-
tower-http ServeDir sending file speed is extremely slow (tower-http 700KiB/s vs actix 800MiB/s)
here's demo code to re-produce the issue: https://github.com/ttys3/static-file-server-speed-compare
What are some alternatives?
When comparing tower-http and static-file-server-speed-compare you can also consider the following projects:
hyper - An HTTP library for Rust
tower - async fn(Request) -> Result<Response, Error>
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
governor - A rate-limiting library for Rust (f.k.a. ratelimit_meter)
trillium - 🌱🦀🌱 Trillium is a composable toolkit for building internet applications with async rust
flamegraph - Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3