Re:Audioscrape: Building in Rust When Everyone Said I Shouldn't
by jamil7 on Monday October 07, 2024 @03:34PM
(#41770031)
Awesome work. Yes, I’ve been interested in Rust for a while and have been hacking on a side project. It’s an API service in Rust, but for the CRUD management part I used Elixir/Phoenix and Phoenix gen auth to have something up quickly that’s not dependent on some third-party service.
[ Parent
| on HN ]
Re:Audioscrape: Building in Rust When Everyone Said I Shouldn't
by lukaesch on Monday October 07, 2024 @04:04PM
(#41770366)
Thanks. Interesting. What are some best practices for integrating Rust with Elixir/Phoenix in a project, especially when managing CRUD operations and maintaining system efficiency you learned along your side project?
Re:Audioscrape: Building in Rust When Everyone Said I Shouldn't
by jamil7 on Tuesday October 08, 2024 @01:53AM
(#41774187)
Right now I run them as two separate services. Phoenix does all the user signup and management, landing page, docs and vends API keys while I use Rust for the API product itself, which does some cpu bound work where Elixir would have been weaker. They both share a Postgres database where the Rust API is restricted to the api keys table.
There is also Rustler which helps facilitate calling Rust binaries from Elixir directly but I opted to deploy them separately.