Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
1–10 of 13 posts
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#2I forked it a while back to add support for maps. I'd recommend you use the fork: https://github.com/hamiltop/erlectricity
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#3Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#4I understand why the Ruby community has warmed up to Elixir and the Phoenix web-framework, however, I'm curious what the advantage or use-case of having Ruby talk to Elixir in an application is?
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#5I understand why the Ruby community has warmed up to Elixir and the Phoenix web-framework, however, I'm curious what the advantage or use-case of having Ruby talk to Elixir in an application is?
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#6I understand why the Ruby community has warmed up to Elixir and the Phoenix web-framework, however, I'm curious what the advantage or use-case of having Ruby talk to Elixir in an application is?
Probably allows updating/extending old Rails apps using Elixir, without having to rewrite the old app.
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#7What that means is you can selectively receive jobs in Elixir (e.g. high-perf Phoenix websocket/request handler) and process them in legacy Ruby Sidekiq workers when needed, or vice-versa use Elixir to process jobs whose functions you've ported forward.
If your Rails app is already setup use Sidekiq background jobs, I think this method is much-preferable to these direct communication libraries.
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#8I understand why the Ruby community has warmed up to Elixir and the Phoenix web-framework, however, I'm curious what the advantage or use-case of having Ruby talk to Elixir in an application is?
The main use case would be if you had a very mature Ruby library without an Erlang/Elixir equivalent. I haven't run into much that I personally need that isn't already available, but there are definitely some gaps that this could help people jump in the short term.
Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#9Re: Communicate Between Ruby and Elixir Using Erlang Ports and Erlectricity
#10I understand why the Ruby community has warmed up to Elixir and the Phoenix web-framework, however, I'm curious what the advantage or use-case of having Ruby talk to Elixir in an application is?
The main use case would be if you had a very mature Ruby library without an Erlang/Elixir equivalent. I haven't run into much that I personally need that isn't already available, but there are definitely some gaps that this could help people jump in the short term.