4 ms·
> the service we were building was a fairly straightforward CRUD app. The expected load on this service was going to be on the order no more than a few queries
by davidw 4y ago
> the service we were building was a fairly straightforward CRUD app. The expected load on this service was going to be on the order no more than a few queries per second, max, through the lifetime of this particular system. The service was a frontend to a fairly elaborate data-processing pipeline that could take many hours to run, so the service itself was not expected to be a performance bottleneck. There was no particular concern that a conventional language like Python would have any trouble delivering good performance.
Yeah, that's not the kind of thing you use low level stuff for. Ruby on Rails or Node or Elixir, or whatever Java thing is going to let you iterate faster than a lower level language.
- aswanson 4y agoI mean, Rust is the cool new language though.
- dabeeeenster 4y agoElixir for a crud app? Really?
- lawn 4y agoAs a fan of Elixir it seems like a good fit. Why do you think otherwise?
- sph 4y agoYes, really. The Phoenix framework is one of the most productive web frameworks around, and Elixir is a very pragmatic functional language that is easier to adopt than others. Creating a CRUD module, with schema, migration, controller, view, template and data validation is literally one command away with `mix phx.gen.html/phx.gen.json` https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html
- ajmurmann 4y agoI haven't written Elixir in years, but Elixir with Phoenix was a quite similar experience to writing a CRUD app in RoR.
- jcpst 4y agoReally! The flagship web framework for Elixir, “Phoenix” is pretty well made https://www.phoenixframework.org/ https://www.phoenixframework.org/
- drewbug01 4y agoIf given the choice between Rails (Ruby) and Phoenix (Elixir) for a low-traffic CRUD app I might have the same sort of question as you - really? But if the choice is between Elixir and Rust for that same CRUD app, it doesn’t seem strange; Elixir would be a far better choice. I would presume the commenter is more familiar with ecosystems like Elixir, even though it wouldn’t be the most optimal choice. But certainly more optimal than Rust in that case.
- cjglo 4y agoElixir offers a lot of the great protections of rust. If you haven’t tried it, I 100% recommend.
- davidw 4y agoI'd probably go with Rails, but Elixir would work out ok for a lot of use cases. Either one seems a significantly better fit than Rust.