Download - memcached vs tugela

Transcript
Page 1: memcached vs tugela

Memcache : because your database will

thank youhttp://netuality.ro

Page 2: memcached vs tugela
Page 3: memcached vs tugela

Spot theresemblance

Page 4: memcached vs tugela

Memcache stays "between" app serversand db - dumb/fast server,client "as smart as needed"

image © blogs.sun.com

Page 5: memcached vs tugela

Plan for success = no panic

image © www.jangro.com

Page 6: memcached vs tugela

3 implementations:

- "original" memcached by Danga danga.com/memcached/

- tugela memcache (bdb, Wikipedia)http://tinyurl.com/26jx5e

- memcachedb (bdb, replicated, student project on Google Code, unstable)

- lots of contributions (Facebook, LastFM)

Page 7: memcached vs tugela

Memcached vs Tugela

- "normal" conditions, enough memory- negligible overhead

Page 8: memcached vs tugela

Memcached vs Tugela- on a memory-constrained server- 100/1000 simultaneous threads (stackless Python)- ... and yet Tugela massively kicks ass

Page 9: memcached vs tugela

Tugela gotchas

- “no expiry policy management” = NO PURGING, ITEMS DO EXPIRE

- but project not maintained any more. Forks welcomed by the author (Domas Mituzas).

PHP programmer ?

- use UDP and consistent hashing implementation from PECL, truly rocksmemcache.hash_strategy = consistent