You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Ertio Lew <er...@gmail.com> on 2011/01/18 02:22:21 UTC
What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
What would be the best client option to go with in order to use
Cassandra through an application to be implemented in PHP.
It seems that PHP developers have a high barrier of entry to
Cassandra's world because of the unavailability of relatively mature,
developed and well proven client options (like Hector for Java
developers) that fits the requirements & provide features for
production environments.
In this case what would be the best option to go with in order to use
Cassandra for production ? Implementing in some different language
like java ? or using thrift library?
I know most of the Cassandra implementations are Java based, so is
that way be preferable ? It's not very easy to go with Java based
application for small companies with less manpower.
I am unable to make an easy decision. Please help me out to make a
more performance-centered decision for the application.
Thanks.
Ertio Lew
P.S. In any case, if you suggest a client option please list any major
implementations of that.
Re: What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
Posted by Ertio Lew <er...@gmail.com>.
I think we might need to go with full Java implementation only, in
that case, to live up with Hector as we do not find any other better
option.
@Dave: Thanks for the links but we wouldn't much prefer to go with
thrift implementation because of frequently changing api and other
complexities there.
Also we would not like to lock ourselves with implementation in a
language with a client option that has limitations that we can bear
now but not necessarily in future.
If anybody else has a better solution to this please let me know.
Thank you all.
Ertio Lew
On Tue, Jan 18, 2011 at 2:49 PM, Dave Gardner <da...@imagini.net> wrote:
> I can't comment of phpcassa directly, but we use Cassandra plus PHP in
> production without any difficulties. We are happy with the
> performance.
>
> Most of the information we needed to get started we found here:
>
> https://wiki.fourkitchens.com/display/PF/Using+Cassandra+with+PHP
>
> This includes details on how to compile the native PHP C Extension for
> Thrift. We use a bespoke client which wraps the Thrift interface.
>
> You may be better of with a higher level client, although when we were
> starting out there was less of a push away from Thrift directly. I
> found using Thrift useful as you gain an appreciation for what calls
> Cassandra actually supports. One potential advantage of using a higher
> level client is that it may protect you from the frequent Thrift
> interface changes which currently seem to accompany every major
> release.
>
> Dave
>
>
>
>
> On Tuesday, 18 January 2011, Tyler Hobbs <ty...@riptano.com> wrote:
>>
>> 1. ) Is it devloped to the level in order to support all the
>> necessary features to take full advantage of Cassandra?
>>
>> Yes. There aren't some of the niceties of pycassa yet, but you can do everything that Cassandra offers with it.
>>
>>
>> 2. ) Is it used in production by anyone ?
>>
>> Yes, I've talked to a few people at least who are using it in production. It tends to play a limited role instead of a central one, though.
>>
>>
>> 3. ) What are its limitations?
>>
>> Being written in PHP. Seriously. The lack of universal 64bit integer support can be problematic if you don't have a fully 64bit system. PHP is fairly slow. PHP makes a few other things less easy to do. If you're doing some pretty lightweight interaction with Cassandra through PHP, these might not be a problem for you.
>>
>> - Tyler
>>
>>
>
> --
> *Dave Gardner*
> Technical Architect
>
> [image: imagini_58mmX15mm.png] [image: VisualDNA-Logo-small.png]
>
> *Imagini Europe Limited*
> 7 Moor Street, London W1D 5NB
>
> [image: phone_icon.png] +44 20 7734 7033
> [image: skype_icon.png] daveg79
> [image: emailIcon.png] dave.gardner@imagini.net
> [image: icon-web.png] http://www.visualdna.com
>
> Imagini Europe Limited, Company number 5565112 (England
> and Wales), Registered address: c/o Bird & Bird,
> 90 Fetter Lane, London, EC4A 1EQ, United Kingdom
>
Re: What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
Posted by Dave Gardner <da...@imagini.net>.
I can't comment of phpcassa directly, but we use Cassandra plus PHP in
production without any difficulties. We are happy with the
performance.
Most of the information we needed to get started we found here:
https://wiki.fourkitchens.com/display/PF/Using+Cassandra+with+PHP
This includes details on how to compile the native PHP C Extension for
Thrift. We use a bespoke client which wraps the Thrift interface.
You may be better of with a higher level client, although when we were
starting out there was less of a push away from Thrift directly. I
found using Thrift useful as you gain an appreciation for what calls
Cassandra actually supports. One potential advantage of using a higher
level client is that it may protect you from the frequent Thrift
interface changes which currently seem to accompany every major
release.
Dave
On Tuesday, 18 January 2011, Tyler Hobbs <ty...@riptano.com> wrote:
>
> 1. ) Is it devloped to the level in order to support all the
> necessary features to take full advantage of Cassandra?
>
> Yes. There aren't some of the niceties of pycassa yet, but you can do everything that Cassandra offers with it.
>
>
> 2. ) Is it used in production by anyone ?
>
> Yes, I've talked to a few people at least who are using it in production. It tends to play a limited role instead of a central one, though.
>
>
> 3. ) What are its limitations?
>
> Being written in PHP. Seriously. The lack of universal 64bit integer support can be problematic if you don't have a fully 64bit system. PHP is fairly slow. PHP makes a few other things less easy to do. If you're doing some pretty lightweight interaction with Cassandra through PHP, these might not be a problem for you.
>
> - Tyler
>
>
--
*Dave Gardner*
Technical Architect
[image: imagini_58mmX15mm.png] [image: VisualDNA-Logo-small.png]
*Imagini Europe Limited*
7 Moor Street, London W1D 5NB
[image: phone_icon.png] +44 20 7734 7033
[image: skype_icon.png] daveg79
[image: emailIcon.png] dave.gardner@imagini.net
[image: icon-web.png] http://www.visualdna.com
Imagini Europe Limited, Company number 5565112 (England
and Wales), Registered address: c/o Bird & Bird,
90 Fetter Lane, London, EC4A 1EQ, United Kingdom
Re: What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
Posted by Tyler Hobbs <ty...@riptano.com>.
>
> 1. ) Is it devloped to the level in order to support all the
> necessary features to take full advantage of Cassandra?
>
Yes. There aren't some of the niceties of pycassa yet, but you can do
everything that Cassandra offers with it.
> 2. ) Is it used in production by anyone ?
>
Yes, I've talked to a few people at least who are using it in production.
It tends to play a limited role instead of a central one, though.
> 3. ) What are its limitations?
>
Being written in PHP. Seriously. The lack of universal 64bit integer
support can be problematic if you don't have a fully 64bit system. PHP is
fairly slow. PHP makes a few other things less easy to do. If you're doing
some pretty lightweight interaction with Cassandra through PHP, these might
not be a problem for you.
- Tyler
Re: What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
Posted by Rajkumar Gupta <ra...@gmail.com>.
Hey Brandon,
1. ) Is it devloped to the level in order to support all the
necessary features to take full advantage of Cassandra?
2. ) Is it used in production by anyone ?
3. ) What are its limitations?
Thanks.
On Tue, Jan 18, 2011 at 7:11 AM, Brandon Williams <dr...@gmail.com> wrote:
> On Mon, Jan 17, 2011 at 7:22 PM, Ertio Lew <er...@gmail.com> wrote:
>>
>> What would be the best client option to go with in order to use
>
> Pycassa. https://github.com/thobbs/pycassa
>
>>
>> Cassandra through an application to be implemented in PHP.
>
> Oh. Then https://github.com/thobbs/phpcassa
> -Brandon
Re: What is be the best possible client option available to a PHP
developer for implementing an application ready for production environments ?
Posted by Brandon Williams <dr...@gmail.com>.
On Mon, Jan 17, 2011 at 7:22 PM, Ertio Lew <er...@gmail.com> wrote:
> What would be the best client option to go with in order to use
>
Pycassa. https://github.com/thobbs/pycassa
> Cassandra through an application to be implemented in PHP.
>
Oh. Then https://github.com/thobbs/phpcassa
<https://github.com/thobbs/phpcassa>-Brandon