Riak Java Protobuf objects

Brian Roach roach at basho.com
Tue Jan 21 13:48:10 EST 2014


On Tue, Jan 21, 2014 at 10:58 AM, Jon Brisbin <jon at jbrisbin.com> wrote:
> Is the Protobuf interaction still enforced sequentially? e.g. responses only
> come in the order in which the corresponding request was sent and a long
> request will hold up the results of subsequent, but smaller requests?

There has never been a guarantee of this; we don't support pipelining
of requests. Requests are sequential in that you should make a request
then wait for the reply before issuing another request on the same
connection.

> I guess the answer for parallelism is to simply use a pool of connections.

Correct. This is what all the clients have always done.

> How many per client are considered acceptable now that R16 has better
> non-blocking IO support?

The number of connections has always been largely irrelevant; make
1000 of them if you'd like ... just don't try to send 1000 operations
at once if the node can't handle it. The workload on the node is the
(far) greater limiting factor.

- Roach

>
>
> Thanks!
>
> Jon Brisbin
> http://about.me/jonbrisbin | Twitter: @JonBrisbin
>
> On Tuesday, January 21, 2014 at 11:51 AM, Brian Roach wrote:
>
> Jon,
>
> Yes, we released riak_pb 2.0.0.11 to maven central for the new Riak
> Java Client v2.0 core preview (the all-new official async Riak Java
> client based on Netty[1]) we announced a couple weeks ago - it
> supports all the new Riak 2.0 functionality.
>
> <dependency>
> <groupId>com.basho.riak.protobuf</groupId>
> <artifactId>riak-pb</artifactId>
> <version>2.0.0.11</version>
> </dependency>
>
> [1] - https://github.com/basho/riak-java-client/tree/master
>
> On Tue, Jan 21, 2014 at 7:22 AM, Jon Brisbin <jon at jbrisbin.com> wrote:
>
> Have the Riak Java Protobuf artifacts been updated to take advantage of Riak
> 2.0 features yet?
>
> I'd like to work some more on getting the Riaktor (Riak async Java client
> based on Reactor [1]) up to Riak 2.0 functionality. Currently I'm using the
> Protobuf artifact for the actual objects I need to do the interactions. I'm
> handling all the network IO through Reactor/Netty and using the simple
> codecs in Reactor.
>
> If not, can I just generate the Java objects I need from the original
> protobuf definitions?
>
> [1] - https://github.com/reactor/reactor
>
>
> Thanks!
>
> Jon Brisbin | Reactor Project Lead
> http://about.me/jbrisbin | @j_brisbin
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list