Brian "Krow" Aker (krow) wrote,
Brian "Krow" Aker
krow

memcached engine 0.7, return of...

Back in April I was thinking "Excellent! I will have the memcache engine beta for the MySQL User's Conference!"

Nix that idea. What happened? We ran the first benchmark on the engine and while it did very well against other engines (aka kicked a number of their asses) it was completely unstable. The library which I had been fighting with all along that allowed me to communicate with the memcached servers leaked memory and was just too unstable.

At the time I was told that a new library was going to be made public so I shelved the project waiting for the new library.

And waited...

Finally got annoy with waiting and wrote my own (aka libmemcached, http://tangent.org/552/libmemcached.html). Which while I thought it would take me all of ten hours to write, took much longer (thanks to Remedy Tea on 15th for providing awesome green tea!). After spending a number of Saturdays working on this, and getting a lot of great feedback from users who put libmemcached to work, I've now got a good library to build from.

So 0.7 is a bit of a reboot. A new library, which is now connected into the engine. I've also added support for XML as a storage medium.

Why XML? When MySQL stores a row, I can create a binary format of a row to store in memcached. Awesome for MySQL, but it means only MySQL can talk to the data. By storing XML, MySQL and any other application can read the rows directly. I am very likely to come up with a portable binary format with a library that will allow others to use a binary format. This would be faster (and it is something I have wanted to add to Archive for a while, so it makes sense on a lot of levels). That is probably going to be one of my next projects to do.

For now though, XML will work just fine.
http://tangent.org/506/memcache_engine.html
http://download.tangent.org/memcache_engine-0.7.tar.gz

Have fun :)
Subscribe
  • Post a new comment

    Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 4 comments