Tuesday, 5 February 2008

Tokyo Tyrant, networking for Tokyo Cabinet

Mikio made a networking layer for Tokyo Cabinet, the fastest lightweight database engine, I've mentioned before.

Tokyo Tyrant is a packeage of network interfaces to the DBM called Tokyo Cabinet. Though the DBM has high performance, you might bother in case that multiple processes share the same database, or remote processes access the database. Thus, Tokyo Tyrant is provided for high concurrency connections to Tokyo Cabinet. It is composed of the server process managing a database and its access library for client applications.

The server features high concurrency due to thread-pool modeled implementation and the "epoll" mechanism of the modern Linux kernel. The server and its clients communicate with each other by two kinds of protocols. One has the original binary structure and provides higher efficiency. The other is based on HTTP and provides wider portability. The access library is implemented in C, Perl, Ruby, and Java.
Currently it works only on Linux, but Mikio is working on the BSD port as well.

No comments: