php - memcache vs redis -
i working node , php , node , have heard of redis cache system , php memcached
i have tested simple test setting , getting 10000 items :
memcached 10x (yes , 10 times) faster redis , easy memcached better in term of speed .
but have heard memcached not scaled redis , true ? can see when want connect memcache add server function , can user multi server , , why people not in term of scale ?
why should use redis instead of memcached in node ?
if dig little more find that, memcache multi-threaded redis single threaded (see single threaded nature of redis).
so if benchmark on multi-core processor, memcache able scale performace taking advantage of cores, redis not.
to compensate single threaded nature, redis cluster being developed (just node has cluster module). memcache distributed , supports clusters. redis expected roll out cluster (stable version) end of year. remember still new , memcache there decade now.
of benchmarks found one explains correctly, aspects of benchmarking. see last benchmark there no parallelism. perform @ par.
edit
regarding choice between them, question is memcached dinosaur in comparison redis? has many answers particularly one. same guy answered did these benchmarks :
- http://oldblog.antirez.com/post/redis-memcached-benchmark.html
- http://oldblog.antirez.com/post/update-on-memcached-redis-benchmark.html
also of topics need know regarding performance , benchamrks given here, inlcuding benchmarks mentioned above.
Comments
Post a Comment