I think one thing to note is that by using riak_client all your data will go
over the distributed socket, which I suppose could interfere with other
messages and act as a bottleneck.  With PBC you can open multiple sockets as
needed and your node won't be connected to the riak cluster, which probably
becomes more important as the cluster becomes larger because each new node
to the cluster requires N-1 sockets where N = number of nodes.

-Ryan

On Thu, Jan 20, 2011 at 6:32 AM, Ryan Maclear <r...@lambdasphere.com> wrote:

> Hi,
>
> When creating an erlang client, is is better to use the riak_client module
> (ie. Erlang API) or the riakc_pb_socket module (PBC)? I've seen a number of
> code snippets and samples that use the erlang API and not the PBC (eg.
> http://wiki.basho.com/MapReduce.html) and for some erlang code inside
> riak_function_contrib.
>
> Obviously, to use the Erlang API I would need to have all the necessary
> beam files in my erlang path,  whereas the PBC only requires a limited set
> of beam files.  The Wiki says that the primary client for code not inside
> riak should be the Erlang PBC. However, is the anything technically wrong
> with using the erlang API?
>
> Thanks,
> Ryan
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to