[erlang-questions] [ANN] erserve Erlang/R (Rserve) connector - 3.0.0

Daniel Eliasson <>
Tue Aug 28 13:15:23 CEST 2012

Dear all,

I announce to you the existence of erserve 3.0.0. It is available at
https://github.com/del/erserve and a connection pool library for it at

What is it?
erserve is an Erlang application that lets you easily connect to an R
instance via Rserve ( http://rforge.net/Rserve/ ) over a binary
You can send strings to R to be evaluated, and also upload data to
variables in R via binary transport.

Who is it for?
erserve should come in handy if you want to perform some kind of
calculations that are tedious/difficult in Erlang, for instance
running data through machine learning models. It can also shorten your
deployment times by allowing you to model things in R, and then just
use your results from Erlang, instead of porting them there.

Is it fast?
It's not bad. With 10 workers and a pool of 10 erserve connections, my
workstation (Core i7 2.93 Ghz, 16 GB RAM) could run 10 000 individual
classifications through a random forest in 8 seconds. That's about
1250 calls per second in throughput, with each invidivual call taking
about 3 ms round-trip.

If you have any questions, please let me know. If anyone has use for
this, I would greatly appreciate feedback on improvements.

I'd also like to thank my employer, Klarna AB, for letting me do some
of the work on this open source software during work hours.

Daniel Eliasson

More information about the erlang-questions mailing list