Memcached and Redis

Source: Internet
Author: User
Tags memcached

Memcached VS Redis

  question:memcached and Redis which is good?

  A : This problem relies on the engineering category and its data.

1. They are both high-speed and high-availability query tables for memory key/value types.

2. They are all clusters.

3. They all provide memory objects for large projects without having to access the Data warehouse.

4. Access to them is faster than accessing the Data warehouse.

  

  From a theoretical perspective:

    Their deployment environment is not the same as the scale architecture.

    Memcached:

      memcached is a flat array by a hash value Sharing ( I understand it's a hashid. Determine a flat array of data )

    Redis

      Redis is the Cluster-slave architecture,

  Here's a graph that reflects their principles and architecture:

    

     Creating a technology and architecture design is very difficult, especially for a very important cache structure.

The following sections are some of them with a few drawbacks:

        Memcached Advantages:

1. Not complex

2. Simple configuration

3. Macro command few, single host.

4. In the cluster, use a single host, using the hash value to find the key. (Easy to understand, simple in structure)

5. Work like rock music (no words for translation), original sentence: Runs likes a rock--memcached requires a nuclear strike to fall over

6. Many years of old products,

7. Many development languages have memcached libraries

Memcached Disadvantages:

1. Only memory cache function, no other function

2. You cannot share the cache through AWS zons.

3. Cannot satisfy all cache requirements for one host system

4. Adding a cluster member requires a new configuration and restart of the client.

Redis Benefits:

1. Caches can be stored in a variety of ways, such as list,array,sets,sorted sets

2. Can operate multiple pipelining command lines at the same time

3. Blocking reads.

4. You can insert cached data in bulk.

5. You can divide the cache by multiple slave Redis instances.

6. You can push the data to the hard drive.

Redis Cons:

1. Complex configuration.

2. Daemon, when it is changed from the main, it will automatically lose the original function, which is persistent on the unstable Redis branch.

3. The master-slave architecture means that if the main process fails, the daemon will not work, causing the system to not function properly.

4. Many system administrators are required to monitor redis, to allocate, to balance.

  

  

  

Memcached and Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.