1.卡桑德拉(Cassandra):
Cassandra是一个免费的开放源代码的分布式宽列存储NoSQL数据库管理系统。它由Apache Software Foundation开发,最初于2008年7月发布。Cassandra旨在处理许多商用服务器上的大量数据,提供高可用性而没有单点故障。
2. MySQL:
MySQL是基于结构化查询语言(SQL)的开源关系数据库管理系统(RDBMS)。它由oracle公司开发和管理,最初于1995年5月23日发布。它被广泛地用于许多小型和大型工业应用程序中,并且能够处理大量数据。
Cassandra和MySQL之间的区别:
S.NO. | Cassandra | MySQL | ||||||
---|---|---|---|---|---|---|---|---|
1. | Developed by Apache Software foundation and released on July 2008. | Developed by Oracle and released on May 1995. | ||||||
2. | Cassandra is written only in Java language. | MySQL is written in C and C++ languages. | ||||||
3. | Cassandra is a NoSQL type database. | MySql is a RDBMS type database. | ||||||
4. | It does not provides ACID properties but can be tuned to support ACID properties. | MySQL provides ACID properties. | ||||||
5. | Read performance is highly efficient is Cassandra as it takes O(1) time. | MySQl requires reading from multiple tables using JOIN. Hence, to read it takes O(log(n)) time. | ||||||
6. | Writing performance in Cassandra is also very high and efficient. | Writing in MySQL requires a search first which slows down write performance. | ||||||
7. | Cassandra does not provides the concept of Referential Integrity. Hence no Foreign Keys. | MySQL provides the concept of Referential Integrity and have Foreign keys. | ||||||
8. | Cassandra provides Eventual Consistency and Immediate Consistency methods to ensure consistency in a distributed system. | MySQL only provides Immediate Consistency method to ensure consistency in a distributed system. | 9. | Server operating systems for Cassandra are BSD, Linux, OS X, Windows. | Server operating systems for MySQL are FreeBSD, Linux, OS X, Solaris, Windows. | 10. | Famous companies like Hulu, Instagram, Intuit, Netflix, Reddit, etc uses Cassandra. | Famous companies like Airbnb, Pinterest, Slack, Udemy, Twitter, etc uses MySQL. |