basho/riak-php-client

Protobuf support for Riak communication [JIRA: CLIENTS-84]

Closed this issue · 3 comments

There should an option to use either Protobuf or the existing HTTP requests.

I'd like to work on it but I'm not sure what implementation for Protobuf to choose for it.

From my research I've found these two:

It will bring a consistent speed improvement if the implementation of Protobuf for PHP is fast enough. Once there's a decision for which version to choose I'll speed test it to compare it with HTTP requests and see if it's worth more work on it.

The first has the advantage of not requiring a PHP extension but it's potentially slower that the second one and usually if people use Riak they are pretty comfortable with installing an additional extension to their PHP setup. The second one is written in C which has the advantage of being potentially much faster.

Feature wise, I'm not sure that the missing functionality of either of them will pose a problem for Riak usage.

What do you think?

Let me add another: https://github.com/TriKaspar/php_riak

So far I have no intention to decide an "officially recommended" PHP pb client.

@kuenishi the library you linked to seems quite promising and compiles to a PHP extension.
Has anyone by any chance tested it?