Should I use actix or axum?

To create a webserver I can either use actix or axum but I was wondering which one should I use, what are the cons and pros of each one?

The biggest difference lies in that Axum uses tower for its middleware functionality, and that it's slight more ergonomic than actix-web at the expense of harder-to-debug compilation errors.

In contrast, Actix-web is more of a DIY web framework, but with a more mature API imho.

In fact, both are so similar that there's a big chance you won't notice any differences between them. It's in the tiniest details where they set apart.

which one would you recommend then for starting?

Axum is the more popular choice nowadays.

1 Like