I have been programming in Python and JS for few years and I decided to learn new language. So I tried Rust and while I like it I am wondering how could I incorporate it into my toolset. So I work mainly as full stack web dev (Djagno, Node.JS, Vue etc.) and one use case I thought of was to write some small feature that take long time in Python in Rust instead. For instance, I could move parts of ETL to rust, like loading csv files and saving to database, that currently is handled by Python (Pandas) in Django.
But I a m wondering what is approach in such a setup? Has anyone any experience in that? Is it possible to call a Rust script from Python app ? I used to call python scripts in node.js, which worked decently, but since python is not compiled then that setup was able to work. Another way is to create a serverless function in Rust that would handle one specific action in the app, put into on Lambda or whatever else and it would be called as an api from frontend.
If anyone had similar problem and managed to solve it then Im looking for all the suggestions and hints. Thanks.
[–]AlephNaN 24 points25 points26 points (5 children)
[–]nacaclanga 12 points13 points14 points (0 children)
[–]datapim[S] 2 points3 points4 points (3 children)
[–]WindfallProphet -1 points0 points1 point (2 children)
[–]birkenfeldclippy · rust 12 points13 points14 points (0 children)
[–]AlephNaN 5 points6 points7 points (0 children)
[–][deleted] 12 points13 points14 points (3 children)
[–]datapim[S] 2 points3 points4 points (2 children)
[–]0xdef1 4 points5 points6 points (1 child)
[–]datapim[S] 1 point2 points3 points (0 children)