What is difference between Memcached and Redis?

  Jul 28, 2015

I am working on a Java Web application with cassandra as backend , i want to know what should i use for a cache layer either memcached or redis.

Points to consider:

  • Read/write speed.
  • Memory usage.
  • Disk I/O dumping.
  • Scaling.

Solved 0
4 years ago 1 Answer 8 views

Answers ( 1 )

  1. 4 years ago

    The performance and memory usage of Redis compared to memcached should be relatively similar. Close enough that for most uses any performance difference in either direction is academic as neither is likely to be the bottleneck.

    Unless you already have a large investment in memcached, going forward redis is the obvious solution. For solutions both tools would solve, go with the one that offers more flexibility for new use cases and also provides better out-of-the-box availability, scalability, and administration: redis.

    Not only is redis the better option for places you might use memcached, it enables whole new types of use cases and usage patterns.

    Memcached is a fine piece of software that is stable and hardened. If you already have a large investment in memcached then you may want to stick with it. There are many use cases where redis is as-good-as memcached but isn#39;t better. Evaluate the benefits of redis (if any) and compare that to the cost of switching. Make your own determination if moving to redis is worth your time.

*Avoid using any other website url of links , otherwise your answer may not be visible on website until verification is complete.

Your Answer