The difference between a memcache database and a Redis database (theory)

Source: Internet
Author: User
Tags redis cluster

After understanding the Memcache cluster and the Redis cluster, I have some problems:

Redis cluster supports more storage types than memcache clusters, and Redis cluster supports data persistence, which can protect data integrity better.

So why are some companies still keen on memcache clusters? Let's think about it together.


differences in data storage :

In a Redis cluster, not all of the data is kept in memory,

The memcache data is kept in memory.


differences in Resource usage :

Redis uses a single core, and memcache can use multiple cores.


The difference in performance:

When the data on each core is less than 100K, Redis is faster and vice versa is faster than memcache.

But that's not the point of the difference, because the number of requests per second is not a bottleneck.


Differences in Data recovery:

Redis has data persistence and master-slave replication, and the data can be recovered after the power outage restarts.

Memcache without these features, the data is lost after the power outage restarts.

Select which cluster to choose, this depends on the business requirements, if data loss is not allowed, then you can only choose Redis.


Differences in storage data categories:

Redis supports storage tables: Key-value, hash tables, list tables, etc.

Memcache only supports Key-value, but memcache can cache images, videos, etc. in memory.




The difference between a memcache database and a Redis database (theory)

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.