[zeromq-dev] Right tool for combining Erlang and Ruby processes?

gvim gvimrc at gmail.com
Sun Dec 8 04:30:02 CET 2013


I want to have an Erlang/Chicago Boss or Elixir/Dynamo web framework 
handling most of the work but delegate text-processing tasks to Ruby so 
I need a couple of Ruby daemons running which can accept parameterised 
connections from Erlang, ie. here's some data, process it and send back 
some text.

gvim


On 07/12/2013 04:34, Matt Connolly wrote:
> Different languages can communicate via ZeroMQ very well. I actually think it’s a great strength of this community is that there are so many bindings available.
>
> My recent use case was using Ruby with the rbczmq gem (to which I contribute) and NetMQ in C#. This has worked perfectly so far. The only catch between them is what string encodings you use as a zmq message payload is simply an array of bytes.
>
> I’ve also found it quite easy using JSON as a serialisation format because it is (a) widely available, (b) extensible. It turns out this is also useful for message validation - it’s not too hard to deliver garbage input to your application, for example: https://github.com/zeromq/libzmq/issues/769#issuecomment-29613527
>
> For ruby, the rbczmq library is based on the czmq C library, and so it has some extra features which that library provides (e.g. beacon, loop, message & frame objects). It’s also a native C extension, which makes it faster than the ffi-based counterpart, but not compatibly with JRuby on the other hand.
>
> https://github.com/methodmissing/rbczmq
>
> Regards,
> Matt



More information about the zeromq-dev mailing list