Home Database Mysql Tutorial NoSQL的是与否

NoSQL的是与否

Jun 07, 2016 pm 04:44 PM
nosql oracle database

随着大量数据的出现,NoSQL数据库架构正在被越来越多的人所使用,因为NoSQL架构对于大数据的处理上面更为有效。如今,当你需要存

To NoSQL or not toNoSQL

随着大量数据的出现,NoSQL数据库架构正在被越来越多的人所使用,因为NoSQL架构对于大数据的处理上面更为有效。

如今,当你需要存储和处理高容量的数据时,许多的年轻开发人员更倾向于选择开源的NoSQL。他们宣称NoSQL才是属于未来的数据库架构,甚至于一些硅谷的创业企业认为传统的关系型数据库已经没有存在的意义了。

与此同时,有经验的DBA和开发者却提出了一个值得注意的例子:由于NoSQL的弱点,黑客利用这些弱点成功进入了系统,导致了Flexcoin和Poloniex这两家比特币交易公司的失败。甚至还有坚持拥护RDBMS的人认为,NoSQL根本就不适合任何关键应用(missioncritical)的开发。

当然,事实的真相肯定就在这两极观点的中间,两种架构都有他们的独特特性和适合的场景,所以这两者应该是共存的。与其把特性发挥到极致,先专心处理实际应用所需的数据准确度显然更为有用,尤其是当不一致的数据遇到低容忍性的环境时。电子商务、金融、航运、物流和制造业都是这样的,对于这些产业,“最终一致性”并不能完全满足他们的需求,不一致的数据库可能会让业务变得很糟糕。

对于关键任务的开发,管理员需要即时的一致性而非“最终一致”,这才能保证数据可以立即使用并且在应用中保持一致,,而不需要等到应用的操作结束之后。为了能实现这种级别的安全防护,开发者需要数据库对于每个事务都具有ACID特性。最终一致性不能满足这些行业的需求,只有完全的ACID数据库才能解决,因为有ACID特性,每一个事务的操作才是可靠的、一致的,同时ACID特性也保重数据的一致性不会受到运行事故或者是外界干扰的影响。

而与此同时,一些流行的开源NoSQL数据库,如MongoDB和Cassandra,它们更容易搭建也可以很快的编写和部署应用。他们的快速也吸引了许多争分夺秒抢夺市场的公司。如今,这些数据库还提出了对应于ACID的新的概念BASE(基本可用性、软状态、最终一致)。

虽然流行的NoSQL数据库架构不都支持ACID的特性,一些NoSQL的集成实现却可以。这些集成实现甚至能实现关键性任务所需要的即时一致性的ACID特性。事实上,已经有一些金融服务企业正在采用具有即时一致性的NoSQL数据库,在严格管理的环境下来支持他们每秒数以百万计的金融事务。

有许多的在线零售商这样的商家,他们需要即时一致性的ACID支持,可是他们也需要能快速处理比如用户反馈一类的数据,这些数据不需要特别强的ACID支持,最终一致性就可以满足处理的需求了。

对于那些坚决使用NoSQL或者SQL的任何一方,不管怎么样,他们都要认识到SQL架构在金融应用中确实有它适合的场景,比如分析一个标准格式的报表。

所以,对于需要短时间处理大量的数据、拓展的弹性能力,也需要即时的准确性的那些关键任务性应用,那么他们应该选择带有即时一致性ACID支持的NoSQL数据库。

对于那些不需要即时数据一致性,比如社交网络内容和其他只需要保证最终一致性就可以满足的场景,支持BASE的NoSQL就足够满足需求了。

而对于需要深度分析、报告等严苛商务操作的场景,还是传统的SQL最能胜任。

最后,现在有许多的数据库客供大家选择,甚至有的可以提供同样数据集NoSQL和SQL混合使用的技术。面对这些种种选择,还是需要考虑实际应用场景再做选择,SQL和NoSQL都有各自的优点和不足,只有把他们使用到了最适合的场景之中,才能发挥他们最大的作用!

《NoSQL数据库入门》,高清PDF 版下载见

NoSQL数据库的基础知识

企业应用NoSQL的关键

本文永久更新链接地址:

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How long will Oracle database logs be kept? How long will Oracle database logs be kept? May 10, 2024 am 03:27 AM

The retention period of Oracle database logs depends on the log type and configuration, including: Redo logs: determined by the maximum size configured with the "LOG_ARCHIVE_DEST" parameter. Archived redo logs: Determined by the maximum size configured by the "DB_RECOVERY_FILE_DEST_SIZE" parameter. Online redo logs: not archived, lost when the database is restarted, and the retention period is consistent with the instance running time. Audit log: Configured by the "AUDIT_TRAIL" parameter, retained for 30 days by default.

How much memory does oracle require? How much memory does oracle require? May 10, 2024 am 04:12 AM

The amount of memory required by Oracle depends on database size, activity level, and required performance level: for storing data buffers, index buffers, executing SQL statements, and managing the data dictionary cache. The exact amount is affected by database size, activity level, and required performance level. Best practices include setting the appropriate SGA size, sizing SGA components, using AMM, and monitoring memory usage.

Oracle database server hardware configuration requirements Oracle database server hardware configuration requirements May 10, 2024 am 04:00 AM

Oracle database server hardware configuration requirements: Processor: multi-core, with a main frequency of at least 2.5 GHz. For large databases, 32 cores or more are recommended. Memory: At least 8GB for small databases, 16-64GB for medium sizes, up to 512GB or more for large databases or heavy workloads. Storage: SSD or NVMe disks, RAID arrays for redundancy and performance. Network: High-speed network (10GbE or higher), dedicated network card, low-latency network. Others: Stable power supply, redundant components, compatible operating system and software, heat dissipation and cooling system.

How much memory is needed to use oracle database How much memory is needed to use oracle database May 10, 2024 am 03:42 AM

The amount of memory required for an Oracle database depends on the database size, workload type, and number of concurrent users. General recommendations: Small databases: 16-32 GB, Medium databases: 32-64 GB, Large databases: 64 GB or more. Other factors to consider include database version, memory optimization options, virtualization, and best practices (monitor memory usage, adjust allocations).

Oracle scheduled tasks execute the creation step once a day Oracle scheduled tasks execute the creation step once a day May 10, 2024 am 03:03 AM

To create a scheduled task in Oracle that executes once a day, you need to perform the following three steps: Create a job. Add a subjob to the job and set its schedule expression to "INTERVAL 1 DAY". Enable the job.

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

How to start the listening program in oracle How to start the listening program in oracle May 10, 2024 am 03:12 AM

Oracle listeners are used to manage client connection requests. Startup steps include: Log in to the Oracle instance. Find the listener configuration. Use the lsnrctl start command to start the listener. Use the lsnrctl status command to verify startup.

See all articles