by pquerna · 16y ago · 0 comments
I guess this is the final nail in the coffin for Berkeley DB, even though Tokyo Cabernet doesn't offer all the same features, the combination of Tokyo and better distributed systems like Cassandra/MongoDB are certainly pushing down into the market in which I would want to use BDB.
Distributed systems can be built upon BDB, we've had very good luck with using BerkeleyDB-Je in Voldemort. Many services within Yahoo and Amazon use custom distributed systems built upon BerkeleyDB. BerkeleyDB's own distribution, however, seems to just not be the right model for most people (HA "floating master" with Paxos elections). We (as did Amazon in the original Dynamo paper) found it easier to build their own replication, using BDB as one of the storage options.
Tokyo Tyrant is great if your data fits into memory. If it doesn't, performance declines without any grace (compare with BerkeleyDB where the performance remains reasonable with a 5:1 data:RAM ratio and surprisingly usable even with a 10:1 ratio).
That being said, there are some interesting alternative models e.g., Basho's bitcask, but it solves a different problem (purely K/V lookups vs. a B+Tree or -- with BDB-Je -- a log structured B+Tree).
I really wish there was a C/C++ based (at least until the Azul GC enhancements or the G1 collector become mainstream, making it possible to have a cache of over 10-15gb without pauses) log-structured B+Tree implementation... perhaps I'll get bored and write a toy one one day.