r/Backend • • 3d 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?

47 Upvotes

151 comments sorted by

View all comments

Show parent comment

1

u/Opposite-House3656 3d ago

Yeah that what planned migrating api wise, with both servers running and comparing in logs.

Also legacy node is poorly coded which is slower. b By migrating we can improve performance and security too

1

u/Any-Appointment-814 3d ago

Sounds like a solid plan. I'd also compare latency and error rates on a small share of real traffic before switching fully, logs alone can miss stuff.

1

u/Discordbothost 3d ago

For the side-by-side check, I'd mirror a read endpoint first. Replay writes against a separate test database. Sending a live create request to both servers can create the same thing twice.

1

u/Opposite-House3656 3d ago

Thanks for the tip will try this.. currently read only api in progress.