Difference between riakc_obj and riak_object

Florian Odronitz odo at mac.com
Wed Feb 16 08:40:48 EST 2011

Hi Dan,

I forked and re-factored the erlang client so the record definitions of riak_object (server) and riakc_obj (client) match, removing the client side discrepancy between the results from get and the results from mapred. The changes should be backwards compatible but a critical look is very welcomed.

You can find at at: https://github.com/odo/riak-erlang-client

I tried to extend riakc_obj with riak_object but that would have made the client vulnerable to changes in the core application, so I decided to copy the functions.
When running 'make; make test' 58 tests are passing but two are still failing. I can't put my finger on what is going wrong here and any suggestions would be greatly appreciated.


On 07.02.2011, at 23:12, Dan Reverri wrote:

> Hi Florian,
> riak_object is the module used by the native Erlang client and was used before the protocol buffers interface existed.
> riakc_obj is used by the Erlang protocol buffers client and does not depend on any Riak KV code.
> Re-factoring the code to use a single module seems like a good idea; pull requests are always welcome if you want to give it a shot.
> Thanks,
> Dan
> Daniel Reverri
> Developer Advocate
> Basho Technologies, Inc.
> dan at basho.com
> On Sat, Feb 5, 2011 at 7:43 AM, Florian Odronitz <odo at mac.com> wrote:
> Hi All,
> I am using the erlang protocol buffers client which uses riakc_obj to handle riak objects. As I understand riak uses riak_object internally.
> Looking at the functions the modules look almost identical. Why is it done that way?
> Thanks,
> Florian
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110216/15ae24de/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1524 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110216/15ae24de/attachment.p7s>

More information about the riak-users mailing list