Middleware (3) NoSQL

Source: Internet
Author: User
Tags memcached redis

The most common explanation for NoSQL is that non-relational, or not-only SQL, can be seen from the field meaning that it refers to the generic term of a non-relational database.

Background of the birth of NoSQL

With the development of the distributed architecture of large-scale Web sites, the use of traditional relational databases seems to be inadequate in the following ways:

1, high concurrent read and write to the database

With the popularity of distributed architecture and microservices, the database load is very high, if the query requirements of 1W+/S is still barely top, but for the 1w+/s write operation, the performance of the relational database is very low.

2, storage and query of massive data

When hundreds of billions of data are generated per day, the performance is very low for relational databases in a data table with billions of records.

3, high scalability and high availability

For relational databases, upgrades and extensions are difficult.

The emergence of NoSQL is the solution to the above problems.

Categories of NoSQL

There are four types of NoSQL: The Key/value database, the document database, the Columnstore database, and the graph database. The most common in the project is the Key/value database, represented by memcached and Redis, and the document database represented by MongoDB.

Key/value Database representative: memcached and Redis.

Document-based database representative: MongoDb.

The advantages of NoSQL

Since NoSQL is a problem in bridging relational databases, its advantages are obvious:

1. Handle massive amounts of data.

2, easy to expand, due to its non-relational nature.

3, high availability, such as Redis can form a cluster, providing 7 * 24-hour service.

So, does NoSQL have no drawbacks? No, for example, it does not have a relational data transaction.

Summarize

1,nosql can not replace relational database, can only be used to compensate for the lack of relational database, the core business is to use the relational database, due to its acid characteristics.

2, for the processing of big data, we can study the better Framework es (ElasticSearch).

Middleware (3) NoSQL

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.