Small ants Learn Redis notes (1)--redis Introduction, application scenario, Comparison

Source: Internet
Author: User

Nosql = not only SQL anti-SQL motion, non-relational database

NoSQL is stored in the form of Key-value, and contrasts with traditional relational databases.

NoSQL has the following features: non-relational, distributed, open-source, level-scalable.

Advantages:

1. Handling ultra-large amounts of data 2. Run on a cheap PC server cluster 3. Smash Performance Bottlenecks

Scenarios for NoSQL:

1. High concurrency for data read and write 2. Efficient storage and access to massive amounts of data 3. High scalability and high availability for data

PS: Good extensibility is mainly manifested in the absence of a fixed table structure.


Introduction to Redis:

An open source, in key-value storage, is often called a data structure server. Keys can contain strings, hashes, linked lists, collections, and ordered collections.

The largest user of Redis is Sina Weibo, and its deployment scenario is broadly divided into two categories:

1. The application accesses the Redis database directly.

2. The application accesses Redis directly and only accesses MySQL if the Redis access fails.

Redis Application Scenarios:

1. Take out the latest N data operation

2. Leaderboard application, remove top n operation

3. Applications that need to set the expiration time accurately

4. Counter Application

5. Uniq operation, get a period of time all data exclude duplicate values

6. Real-time system, anti-spam system

7. Pub/sub build the real-time messaging system. Redis exclusive features, publish/Subscribe

8. Build a queue system

9. Caching


Comparison of Redis, Mysal, Mongo db

Redis Mysql MongoDB

Concept of library                  have                                        has                                             has

Concept of table                  none                                        has                                             Collection

The concept of a field does not have any

learn PHP's small ant original blog http://my.oschina.net/woshixiaomayi/blog




Small ants Learn Redis notes (1)--redis Introduction, application scenario, Comparison

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.