Relational Database V. S. Non-relational database, relational database v. s

Source: Internet
Author: User

Relational Database V. S. Non-relational database, relational database v. s
The most important feature of a relational database is transaction consistency: The read and write operations of a traditional relational database are transactions and ACID-based, this feature allows relational databases to be used in almost all systems with consistency requirements, such as typical banking systems.

However, in Web applications, especially SNS, consistency is not so important, user A's content is tolerable when user B sees updates of the same user C content, or when two people see updates of the same friend's data, the time difference is several seconds, therefore, the biggest feature of relational databases is useless, at least not that important.

On the contrary, the huge cost paid by relational databases to maintain consistency is poor read/write performance. SNS such as Weibo and facebook have extremely high requirements on concurrent read/write capabilities, relational databases are no longer able to cope with this situation. (In reading, traditionally, to overcome the defects of relational databases and improve performance, a level-1 memcache is added to the static Web page. In SNS, the changes are too fast, memchache is powerless.) Therefore, a new data structure storage must be used to replace relational databases.

Another feature of relational databases is that they have a fixed table structure. Therefore, their scalability is very poor. In SNS, system upgrades and feature increases often mean huge changes in data structures, this is also difficult for relational databases and requires new structured data storage.

As a result, non-relational databases emerged. Since it is impossible to use a structured data storage to meet all new requirements, non-relational databases are not strictly a type of database, it should be a collection of structured data storage methods.

It must be emphasized that the persistent storage of data, especially the persistent storage of massive data, still requires a relational database veteran.

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.