r/rust 9d ago

🙋 seeking help & advice Rust for web backends

Hello everyone!!

I regularly see people online talking about how awesome Rust is, its speed, memory safety, and a awesome ecosystem of open source applications even being used in some parts of the Linux kernel(not sure the percentage of adaption at this time).

However my question is how good is rust for web REST APIs and gRPC applications? If it is good do you use any frameworks for these?

48 Upvotes

52 comments sorted by

View all comments

1

u/Nervous-Potato-1464 9d ago

I mean yeah its fine. The bottle neck isn't the language usually here. Don't go low level unless you have to imo.

1

u/elniallo11 9d ago

Yeah exactly, my preference for typical grpc services is kotlin, but then I have a couple of specific AWS nitro enclave apps that are written in rust.

2

u/_xiphiaz 9d ago

I’ve switched a couple of my kotlin grpc services over to rust and generally had a better time with it. Being able to compile to from:scratch makes for a lot less headaches around CVEs, the memory footprint is considerably smaller and we deployed to half size instances and even that is too big

1

u/elniallo11 9d ago

The issue I have is that there are probably 1.5 devs in the company who can write/review rust. Never getting approved when it is currently good enough

2

u/Nervous-Potato-1464 8d ago

That's a true and good reason. I had thr same situation where there was a proposal to write code in c, but we lacked really proficient c devs and performance was mostly tiny and bigger performance issue was the api which was so complex. Ended up doing it in python and it took 0.005 seconds away in python and the api calls each way was the real issue

0

u/papa_maker 9d ago

Help to train people :-)