The difference between vernacular Redis and memcached

Source: Internet
Author: User

If you simply compare the difference between Redis and memcached, the external difference is:

1 Redis not only supports simple k/v-type data, but also provides storage of data structures such as List,set,zset,hash.

2 Redis supports backup of data, that is, Master-slave mode of data backup.

3 Redis supports data persistence, which keeps the in-memory data on disk and can be loaded again when it is restarted.

Comparison of key technologies for memcached and Redis

Memcached's idea is to pre-apply many different sizes of memory into a number of groups, storage objects come, by size in the smallest can accommodate this object in the space, the advantage is that the object does not need to temporarily apply for memory, the disadvantage is that there will be wasted memory space.

The idea of Redis is that when an object comes in, it applies memory to the size of the object that has already been calculated, and then puts it in the head position of the memory, and then does not have to calculate the size again in the future operation. Equivalent to the need for time to calculate the results of preservation, and later use will not be calculated, using space for time to optimize the original memory management mode.

Comparison of cluster implementation mechanism between REDIS and memcached

Memcached calculates the distribution position on the client side in a consistent Hashi manner.

Redis is used in the server implementation of the cluster, the implementation of cluster concept, the client arbitrary access to nodes, the nodes will communicate with each other, complete data access. And because the nodes can communicate with each other, there is a master-slave mechanism, the data on one node is synchronized to other nodes, and the data will not be lost after the sudden outage.

The difference between vernacular Redis and memcached

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.