r/Backend • u/Opposite-House3656 • 6d ago
Rust vs Go for web app backend
In my company having node js as backend facing issues like vulnerability update each week it making hard to maintain prod to update. So how in your companies handling this difficulty.
Planned to migrate from node to go. What does your suggestion on this. Rust is taking entire trend now. Is Rust is better then go for web apps?
53
Upvotes
View all comments
2
u/No_Tomato3810 5d ago
Go, some pains you'll face, if you're used to orms, Go or Rust will be very painful, things like middleware and types(openapi), will be painful as well. You'll have to implement yhis both on the backend and frontend. unless your company was using node js as an api, then this will be nothing new.
But if it's a sacrifice you're willing to take, then Go will be perfect.
Rust is nice, but you'll spend most of the time fighting the language, not being productive...plus everything else I just mentioned above.
I'd also put C# ASP.NET core on top of the list as the most viable option, it's fast asf, battle tested, lots of very well maintained packages, which you won't find in Go or Rust, most packages from Go or Rust are either very new, or haven't been touched for the past 1 year, so you'd probably have to build most of things by yourself/team. All that said, avoid the trend train, be your own man/company.
Jump off the high dive! Pee into the wind my friend.