Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang - Riak clients

I am in trouble finding API for the "local Erlang client" for Riak.

Here is what Riak wiki says:

The local Erlang client is a tightly-integrated part of Riak and the Riak REST interface uses the Erlang client internally. You can find more information about the Erlang-native driver in the edoc API.

The link redirects to the main wiki-page. There is plenty of information on PBC Client though. How do both clients compare and what are the pros and cons in using one or another?

like image 444
tbikeev Avatar asked Jun 20 '10 15:06

tbikeev


Video Answer


2 Answers

The API for the native erlang client or edoc is found here

But I would second what Dan says. However, note that the PBC is still very much at the alpha stage of development and as far as I know does not yet have map reduce capabilities.

like image 51
Ted Karmel Avatar answered Sep 28 '22 09:09

Ted Karmel


I would recommend using the PBC client. The performance is comparable to the native erlang client. It is also easier to decouple your application code from Riak. The native erlang client requires the entire Riak code base as a dependency.

like image 36
dreverri Avatar answered Sep 28 '22 07:09

dreverri