| ▲ | tonyedgecombe 6 hours ago | |||||||||||||
I like Rust a lot but I'm not sure it would come very high up my list for web applications. | ||||||||||||||
| ▲ | insanitybit an hour ago | parent | next [-] | |||||||||||||
At work we're moving almost everything to Rust on our backend. Massively reduced memory usage and significant latency improvements relative to our Typescript codebase. Even for code that you'd expect to work well in TS, a near 1 to 1 port to Rust has considerably improved our best case and, in particular, our worst case latencies. And the memory we get back is huge, we may even drop our instance size down with the 800MB of RAM we're likely going to save. | ||||||||||||||
| ▲ | echelon 5 hours ago | parent | prev [-] | |||||||||||||
Axum and Actix are phenomenal web frameworks. The type system and error handling ergonomics make it easier to write defect-free code than, say, Go or Java. Simple servers are request scoped and mostly feature linear request handling, so you're writing simple vanilla Rust without the complex pointer semantics that you would use for systems programming. The async pieces aren't difficult either. Serde-annotated structs are the best serialization/deserialization story anywhere. It integrates super ergonomically into Axum and Actix to make writing request handlers a breeze. They're super easy to read, too. | ||||||||||||||
| ||||||||||||||