Jeff Kirkell jeff.kirkell at gmail.com
Thu Nov 17 09:28:28 EST 2011

You have a couple options. Using PB requires encoding the data for the trip
to Riak and decoding when pulling data out. You could use the AJAX call
from the client to call the server. The server then pulls does the
encode/decode piece and abstracts Riak much like normal web applications
do. The major difference in the approach between PB and not is the encode
that is done and the performance gains. You always want to put the server
as the intercept between the client and Riak because there is no inherent
security like you are used to in RDBMS.

When I am trying to get stuff prototyped, I tend to stick with JSON because
it is less work then add the encode and PB piece if and when I need the


On Thursday, November 17, 2011, curiosity <satkumar at hotmail.com> wrote:
> We are planning to design a website with Riak backend. Since website will
> have AJAX calls to save/display data, we can send only JSON data from
> to browser client, but website will also have binary data(images, audio,
> video) etc. related to component objects.
> Our solution for now is to save all data in PB format, but sending data to
> AJAX calls convert data from PB to JSON, but for RPC calls send data in PB
> format. Is this good solution? Or any suggestions to save data?
> Thanks
> --
> View this message in context:
> Sent from the Riak Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20111117/fe6e79db/attachment.html>

More information about the riak-users mailing list