MongoDB, Redis, memcached

Source: Internet
Author: User
Tags memcached
MongoDB and memcached are not something within a category. MongoDB is a document-type non-relational database, its advantage is that the query function is more powerful, can store massive data. Memcached,redisMongoDB and memcached do not exist who replace who's problem. And memcached is closer to Redis. They are in-memory database, the data is stored in memory, through TCP direct access, the advantage is fast, high concurrency, the disadvantage is that the data type is limited, the query function is not strong, generally used as a cache. In the project, it started with memcached, and later with Redis instead. In contrast to Memcached:1, Redis has a persistence mechanism that can periodically persist the in-memory data to the hard disk. 2, Redis has the Binlog function, can write all operations to the log, when the Redis failure, can follow the Binlog data recovery. 3, Redis support virtual memory, can limit the size of RAM, when the data exceeds the threshold, the most infrequently used data in memory is saved to the paging file of the hard disk by an algorithm like LRU. 4. Redis native supports more data types and uses more space for imagination. 5, a friend mentioned in front of a consistent hash, used in Redis sharding, generally in the load is very high need to expand the level of use. We have not used this aspect of the function, the general project, stand alone enough to support the concurrency. Redis 3.0 will launch cluster, which is more powerful.

MongoDB, Redis, 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.