3 ms·
Pretty much all the http servers of worth, short of tide, just use Tokio at this point. For the most part, you really only need to care about Tokio. async-rs i
by Klonoar 4y ago
Pretty much all the http servers of worth, short of tide, just use Tokio at this point.
For the most part, you really only need to care about Tokio. async-rs is used by some libraries, but it's relatively small in comparison - and many now go to lengths to just support both. There are other runtimes you could tinker with, but really: just use Tokio.
The "easiest" web server/framework to get started with in 2023 is, in my opinion, Axum. It's from the same people who work on Tokio and it does make it somewhat straightforward to dive into as a result.
I have a few actix-web servers in production as well, and it's a fine framework - hard to say where the mindshare falls on it these days.
Rocket is a very nice web framework but effectively has a bus factor of 1 at this point and it's started to show. People coming from e.g Rails may appreciate it though.
Don't use warp (IMO) because http routing is not rocket science and doesn't need the amount of magic it tries to bolt on.
Have fun.