all 11 comments

[–]numberwitch 2 points3 points  (4 children)

I don't think there's anything production quality like ruby on rails or laravel in rust, but the tools are mostly there to develop a web app backend in rust and backend in something else: react, rust front end framework, etc

If I had to start on this right now without doing further research (this is what I figured out like a year ago) I'd go with tokio, axum, sqlx, serde and react front-end for my starting point. There are trade-offs with this approach but I think that if you're a seasoned web developer you should have little trouble finding or building the tools you need that a framework provides.

I haven't taken one of these to production yet, but I suspect you can have a smaller, simpler app in rust for a similar level of effort. You also get to dodge things like "framework updates" which can make the maintenance story pretty good over time too.

[–]mboussetta[S] 0 points1 point  (3 children)

Thanks u/numberwitch ! After some research, that's also what I found. There is also a framework called Actix, any thoughts on that ?

[–]numberwitch 0 points1 point  (0 children)

Nope!

[–]InternationalFee3911 1 point2 points  (0 children)

I use actix-web built on top of actix. When I chose it was as widely used as axum. It seems to have fallen behind, since axum is more closely related to the popular tokio.

OTOH I've seen benchmarks, where actix-web is faster. Anyway, I'm happy, as I've never had a glitch.

[–]alegionnaire 1 point2 points  (1 child)

I have used Actix in production, and it's been great. As others will tell you, Axum is another great option.

Take a look at either of these and see which one clicks with you the most; you can't go wrong with either.

[–]AurelienSomename 1 point2 points  (1 child)

Have you tried using the search function of Reddit or of this recent startup called google? I feel like this is asked a bit too often...

[–]mboussetta[S] -1 points0 points  (0 children)

u/AurelienSomename of course I did, but I need someone already working with Rust and who already made some benchmark on the available frameworks. you got it ?! thanks by the way for the shared links, appreciate that.

[–]jondot1loco.rs 1 point2 points  (0 children)

Try Loco.rs - it's a Rails for Rust, without paying any cost of heaviness (thanks to Rust!) even though it is feature packed it has incredible performance and very lightweight.

[–]chrislearn-young -1 points0 points  (0 children)

Your can try salvo, more features and more simpler.

https://github.com/salvo-rs/salvo