libmemcache vs libmemcached

View: New views
11 Messages — Rating Filter:   Alert me  

libmemcache vs libmemcached

by Qiangning Hong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

has anyone compared the two C client library: libmemcache
<http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
<http://tangent.org/552/libmemcached.html>?  What are the pros and
cons for each of them?

--
Qiangning Hong
http://www.douban.com/people/hongqn/

Re: libmemcache vs libmemcached

by Song Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Dec 20, 2007 2:10 PM, Qiangning Hong <hongqn@...> wrote:
> has anyone compared the two C client library: libmemcache
> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
> <http://tangent.org/552/libmemcached.html>?  What are the pros and
> cons for each of them?
>
> --
> Qiangning Hong
> http://www.douban.com/people/hongqn/
>
Hi Qiangning,
Not quite sure about the code quality, but obviously the latter one is
more up-to-date, feature-rich(cas/append/prepend/consistent hashing)
and in active development.

--
Regards,
Du Song

http://www.rollingcode.org/

Re: libmemcache vs libmemcached

by André Cruz-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've tried libmemcache a few months ago and found it pretty unstable...

Then I tried apr_memcache which has a memory leak which the developers  
don't seem to be interested in.

I've been using libmemcached for some time and although I've found  
some bugs, which were quickly fixed, I find it is pretty stable now.

Maybe this information should appear in the memcached API page so  
people choose the "best" C api first. I know I would have liked to  
have that information when I started.

André

On 2007/12/20, at 06:10, Qiangning Hong wrote:

> has anyone compared the two C client library: libmemcache
> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
> <http://tangent.org/552/libmemcached.html>?  What are the pros and
> cons for each of them?
>
> --
> Qiangning Hong
> http://www.douban.com/people/hongqn/


Re: libmemcache vs libmemcached

by Tim Bunce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Dec 20, 2007 at 05:50:00PM +0800, Du Song wrote:

> On Dec 20, 2007 2:10 PM, Qiangning Hong <hongqn@...> wrote:
> > has anyone compared the two C client library: libmemcache
> > <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
> > <http://tangent.org/552/libmemcached.html>?  What are the pros and
> > cons for each of them?
>
> Hi Qiangning,
> Not quite sure about the code quality, but obviously the latter one is
> more up-to-date, feature-rich(cas/append/prepend/consistent hashing)
> and in active development.

There's also a Perl API in development for it:

    http://code.google.com/p/perl-libmemcached/

Volunteers welcome.

Tim.

Re: libmemcache vs libmemcached

by Gavin M. Roy-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Our patch for libmemcache to fix a segfault bug with 1.2.2 can be found at:  http://area51.myyearbook.com/trac.cgi/browser/patches/libmemcache

On 12/20/07, Tim Bunce <Tim.Bunce@...> wrote:
On Thu, Dec 20, 2007 at 05:50:00PM +0800, Du Song wrote:

> On Dec 20, 2007 2:10 PM, Qiangning Hong < hongqn@...> wrote:
> > has anyone compared the two C client library: libmemcache
> > <http://people.freebsd.org/~seanc/libmemcache/ > and libmemcached
> > <http://tangent.org/552/libmemcached.html>?  What are the pros and
> > cons for each of them?
>
> Hi Qiangning,
> Not quite sure about the code quality, but obviously the latter one is
> more up-to-date, feature-rich(cas/append/prepend/consistent hashing)
> and in active development.

There's also a Perl API in development for it:

    http://code.google.com/p/perl-libmemcached/

Volunteers welcome.

Tim.


Re: libmemcache vs libmemcached

by Aaron Stone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>From what I've seen, all effort is on libmemcached now. Going forward,
it's probably the only C library that will implement the forthcoming
binary protocol.

Aaron


On Thu, 2007-12-20 at 14:10 +0800, Qiangning Hong wrote:
> has anyone compared the two C client library: libmemcache
> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
> <http://tangent.org/552/libmemcached.html>?  What are the pros and
> cons for each of them?
>


Re: libmemcache vs libmemcached

by Dustin Sallings :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Dec 20, 2007, at 8:52, Aaron Stone wrote:

From what I've seen, all effort is on libmemcached now. Going forward,
it's probably the only C library that will implement the forthcoming
binary protocol.

To expand on that slightly, it sounded like Sean was OK killing off libmemcache and merging the projects .  Not trying to speak for him too much, but it sounds like he may have grown weary of maintaining libmemcache.

-- 
Dustin Sallings


Re: libmemcache vs libmemcached

by Brian Aker-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

Sean came to the most recent hackathon and we worked on adding the one  
feature he needs so that he can use libmemcached and discard  
libmemcache. I've not gotten the patch from him but I have pinged him  
sense the meeting and this is still his intention.

The patch deals with using alternative memory allocators, its a good  
addition.

If in your testing you fine something that libmemcached is missing, I  
would love to hear about it.

Cheers,
        -Brian

On Dec 19, 2007, at 10:10 PM, Qiangning Hong wrote:

> has anyone compared the two C client library: libmemcache
> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
> <http://tangent.org/552/libmemcached.html>?  What are the pros and
> cons for each of them?
>
> --
> Qiangning Hong
> http://www.douban.com/people/hongqn/

--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/                     <-- Me
http://tangent.org/                <-- Software
http://exploitseattle.com/    <-- Fun
_______________________________________________________
You can't grep a dead tree.



Re: libmemcache vs libmemcached

by Adam Michaels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is your client compatible with pgmemcache and other servers that require the
library such as lighttpd and mysql's memcached triggers?


----- Original Message -----
From: "Brian Aker" <brian@...>
To: "Qiangning Hong" <hongqn@...>
Cc: <memcached@...>
Sent: Thursday, December 20, 2007 6:01 PM
Subject: Re: libmemcache vs libmemcached


> Hi!
>
> Sean came to the most recent hackathon and we worked on adding the one
> feature he needs so that he can use libmemcached and discard  libmemcache.
> I've not gotten the patch from him but I have pinged him  sense the
> meeting and this is still his intention.
>
> The patch deals with using alternative memory allocators, its a good
> addition.
>
> If in your testing you fine something that libmemcached is missing, I
> would love to hear about it.
>
> Cheers,
> -Brian
>
> On Dec 19, 2007, at 10:10 PM, Qiangning Hong wrote:
>
>> has anyone compared the two C client library: libmemcache
>> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
>> <http://tangent.org/552/libmemcached.html>?  What are the pros and
>> cons for each of them?
>>
>> --
>> Qiangning Hong
>> http://www.douban.com/people/hongqn/
>
> --
> _______________________________________________________
> Brian "Krow" Aker, brian at tangent.org
> Seattle, Washington
> http://krow.net/                     <-- Me
> http://tangent.org/                <-- Software
> http://exploitseattle.com/    <-- Fun
> _______________________________________________________
> You can't grep a dead tree.
>
>
>
>


Re: libmemcache vs libmemcached

by Dormando :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://danga.com/memcached/apis.bml

Updated to specify that libmemcache is no longer under active
development. No comment on the apr lib (Assume it's fine/supported). I
was there when sean and brian were talking about this, so I felt comfy
in updating it.

-Dormando

André Cruz wrote:

> I've tried libmemcache a few months ago and found it pretty unstable...
>
> Then I tried apr_memcache which has a memory leak which the developers
> don't seem to be interested in.
>
> I've been using libmemcached for some time and although I've found some
> bugs, which were quickly fixed, I find it is pretty stable now.
>
> Maybe this information should appear in the memcached API page so people
> choose the "best" C api first. I know I would have liked to have that
> information when I started.
>
> André
>
> On 2007/12/20, at 06:10, Qiangning Hong wrote:
>
>> has anyone compared the two C client library: libmemcache
>> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
>> <http://tangent.org/552/libmemcached.html>?  What are the pros and
>> cons for each of them?
>>
>> --
>> Qiangning Hong
>> http://www.douban.com/people/hongqn/
>


Re: libmemcache vs libmemcached

by Brian Aker-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

On Dec 20, 2007, at 11:48 PM, Adam Michaels wrote:

> Is your client compatible with pgmemcache and other servers that  
> require the library such as lighttpd and mysql's memcached triggers?

I believe Sean is going to update pgmemecache to use it.  This is his  
main motivator for giving me the memory patch. I won't personally do  
the pg work, but I will support anyone who does it.

Cheers,
        -Brian

>
>
>
> ----- Original Message ----- From: "Brian Aker" <brian@...>
> To: "Qiangning Hong" <hongqn@...>
> Cc: <memcached@...>
> Sent: Thursday, December 20, 2007 6:01 PM
> Subject: Re: libmemcache vs libmemcached
>
>
>> Hi!
>>
>> Sean came to the most recent hackathon and we worked on adding the  
>> one feature he needs so that he can use libmemcached and discard  
>> libmemcache. I've not gotten the patch from him but I have pinged  
>> him  sense the meeting and this is still his intention.
>>
>> The patch deals with using alternative memory allocators, its a  
>> good addition.
>>
>> If in your testing you fine something that libmemcached is missing,  
>> I would love to hear about it.
>>
>> Cheers,
>> -Brian
>>
>> On Dec 19, 2007, at 10:10 PM, Qiangning Hong wrote:
>>
>>> has anyone compared the two C client library: libmemcache
>>> <http://people.freebsd.org/~seanc/libmemcache/> and libmemcached
>>> <http://tangent.org/552/libmemcached.html>?  What are the pros and
>>> cons for each of them?
>>>
>>> --
>>> Qiangning Hong
>>> http://www.douban.com/people/hongqn/
>>
>> --
>> _______________________________________________________
>> Brian "Krow" Aker, brian at tangent.org
>> Seattle, Washington
>> http://krow.net/                     <-- Me
>> http://tangent.org/                <-- Software
>> http://exploitseattle.com/    <-- Fun
>> _______________________________________________________
>> You can't grep a dead tree.
>>
>>
>>

--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/                     <-- Me
http://tangent.org/                <-- Software
http://exploitseattle.com/    <-- Fun
_______________________________________________________
You can't grep a dead tree.