Re:Pure Go implementation of D. J. Bernstein's cdb constant ...
by yummyfajitas on Tuesday May 29, 2012 @08:05AM
(#4037043)
It's a good alternative to memcache if your data is larger than what memcached can support in RAM.
Unless you are running memcached on an ec2 large instance (8gb) or bigger:
"No random limits: cdb can handle any database up to 4 gigabytes."
Re:Pure Go implementation of D. J. Bernstein's cdb constant ...
by jbooth on Tuesday May 29, 2012 @09:20AM
(#4037288)
It's pretty easy to throw together a variant using longs for position instead of unsigned ints, the rest of the code stays the same. Slightly more overhead in the file but as long as the items you're storing are bigger than a few bytes it's not a huge deal.
Anyways, it's useful for stuff where you want to ship out a big dictionary once a day or so and you need fast lookup but it doesn't have to be updated transactionally.
It's a good alternative to memcache if your data is larger than what memcached can support in RAM.
In the early 2000s I used it to implement most of the frontend for a PPC marketplace for search engines. Held up well. These days I'd just use memcached or redis.