Avatar

Diego Augusto

diegovsky@fosstodon.org
Joined
0 posts • 2 comments

Rust enthusiast and FOSS lover. CS Student @ UFSJ

Direct message

@leisesprecher
Python is very straightforward and doesn’t use much memory in general< 60MB. However, it depends greatly on the framework (same as other languages!), but for a simple REST service, FastAPI is a star. It models endpoints as functions. I don’t recommend using it for anything production though. There is also Flask, but I haven’t used it enough.

permalink
report
parent
reply

@leisesprecher It depends on how much you’re willing to optimise/go low level.

Rust is very fast and doesn’t use much memory. You can use some frameworks like Axum, Rocket (very well documented) and Actix, but they’re all high throughout beasts, so there the possibility of them using a bit of memory, like 40MB.

C++ can be high level and very efficient, using very little space. However, it is very very easy to shoot yourself in the foot, and is going to cost you in debugging time.

+

permalink
report
reply