Additionally, the native Erlang client is more sensitive to internal changes in Riak than any well defined protocol would be.
On Thu, Jan 20, 2011 at 9:35 PM, Ryan Maclear <r...@lambdasphere.com> wrote: > Thanks, that makes sense. I guess most of the sample code is based on the > dev setup outlined in the Fast Track on the wiki, which only sets up four > local nodes. > Cheers, > Ryan > On 20 Jan 2011, at 2:46 PM, Ryan Zezeski wrote: > > 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 > > _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com