virspirit

virspirit

Ruby on Rails Dev into Elixir *Recommended / Advice needed

Hello guys, I’m really new here in Elixir, my team background is in Ruby on Rails, and we have built our chat solution using Rails backend (with PubNub real-time infrastructure).

We’re looking to switch and plan our tech stack into something more scalable (in term of chat and workflow- like zapier) in the future. Therefore, we are looking to either switch to Golang and Elixir.

Is there any recommendation in terms of the framework? How does the security encryption and all the functionalities worked (online, typing indicator and etc) works in Elixir?

Hope someone experienced can give some direction

Most Liked

kokolegorille

kokolegorille

Hi and welcome,

As it is an Elixir forum, You might have strong opinion for Elixir, but here are some good/bad parts for Elixir.

  • Phoenix is very similar to Rails, and this might be easy to switch
  • Elixir syntax is Ruby like
  • Elixir really fits chat like application

On the bad part

  • Elixir is not Ruby, and the learning curve might be higher, because You need to switch from OOP to Functional programming
  • There are probably more packages availale in the Ruby world than in Elixir, although I could replicate my RoR dev to Elixir/Phoenix

Also there is no Active Record, but Ecto… no callbacks, but multies.

What’sApp was built with Erlang, so You see You might have all functionalities available for languages running on the BEAM :slight_smile:

kokolegorille

kokolegorille

Mixing 2 technologies for the sake of productivity might be possible, but in the long term, You should stick to one framework… it adds some complexity when trying to communicate between both applications.

You can have a look at a chat application in Elixir here.

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54260 488
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New

We're in Beta

About us Mission Statement