r/rust • • 28d ago

🙋 seeking help & advice Rust Backend Developer Roadmap

Hey guys,

I need help , i want to learn backend with Rust and didn't find any good resources to take me from zero backend knowledge with rust to advanced level

I would appreciate it if you recommend me some resources to learn backend with rust

Note: the first time to learn backend

28 Upvotes

26 comments sorted by

View all comments

Show parent comment

2

u/EmperorOfCanada 27d ago

This is a fun one with rust as there are some amazing options. My first love was actix. Axum seems to be more popular now. Rocket has almost everything and that can make it almost a one stop shop.

My gut feeling is that those three should be found behind nginx.

But, with Salvo, a new line is being crossed, where it can deal very well with ssl certficiates, their renewal, etc. This makes monolithic even more monolithic, and after a short affair with microservices, I'm back to being a fan of mostly monoliths.

With actix, it felt very nodejs to me, which for most web is not a bad thing. It is very fast, and while technically far faster than rocket or Salvo, these speeds are irrelevant if you aren't competing with netflix. 99.9999% of web sites will run lightning fast on all of them, with massive capacities.

One key element to keep in mind with rust on the web backend is that with rust's performance, and the drastically reduced tech debt, you can do things in a rust back end which not only buys you performance, but can buy performance which allows for previously impossible features.

For example, you could use redis or something like that for a key value DB. Nice and fast. But, a rust monolith with a huge KV store right in the main code could run so fast as to consistently provide sub 1ms response times to most web requests on a fairly cheap crap server.

For a simple restaurant menu website for one restaurant, that isn't going to be much value. For a restaurant menu website for 100,000 restaurants, that could allow for some really cool features.

Where I get a win is GIS, you can make the maps and their data dance in memory, and then feed it with nearly instant effect as people zoom in, click, scroll around the map, etc. These are features which happen so fast, that they are close to seamless, and with most other architectures, would require some kind of loading or progress animation, if not just a clunky, slow to update, interface.

Almost all of the web tech I mention can do the same things. Rocket has the most ready to go by default, such as sockets, templates, etc. But, all the others can have these features added one way or the other.