Lua API for TokyoTyrant

Posted by jideel on Stack Overflow See other posts from Stack Overflow or by jideel
Published on 2010-04-01T11:56:14Z Indexed on 2010/04/01 13:33 UTC
Read the original article Hit count: 397

Filed under:

Hi SO folks,

I didn't managed to find an Lua client/api for TokyoTyrant. Such Api exists for TokyoCabinet, but not for TT. And Perl and Ruby API exists for TT. TT provides a native binary protocol, a memcached-compatible protocol, and an HTTP-oriented protocol.

So my questions are :

1/ Do you think using the memcached (using luamemcached) or the HTTP protocol (using luaSocket) is "enough" for most / simple usage, and so a native Lua api is not necessary ? (the app is a simple uuid storage/distributor) ?

2/ Does it make sense to not use TokyoTyrant, but only TokyoCabinet, and use Lua at the application level to provide network and concurrent access to TC, using, say, Copas (Copas is , from their website, "a dispatcher based on coroutines that can be used by TCP/IP servers." ?

Thanks.

© Stack Overflow or respective owner

Related posts about lua