📜  Redis和MySQL之间的区别

📅  最后修改于: 2021-07-05 06:49:03             🧑  作者: Mango

1. Redis:
Redis代表Remote Dictionary Server ,它是一个内存中数据结构项目,实现了具有可选持久性的分布式内存中键值数据库。 Redis由Redis实验室开发,最初于2009年5月10日发布。它是用ANSI和C语言编写的。 Redis提供了内存效率,快速的操作速度,高可用性,并提供了一些功能,例如持久性,复制,集群等。

2. MySQL:
MySQL是基于结构化查询语言(SQL)的开源关系数据库管理系统(RDBMS)。它由oracle公司开发和管理,最初于1995年5月23日发布。它被广泛地用于许多小型和大型工业应用程序中,并且能够处理大量数据。

Redis和MySQL之间的区别:

S.No. REDIS MYSQL
1. It was developed by Redis labs and initially released on May 10, 2009. It was developed by Oracle and released on May 1995.
2. It is written in ANSI and C languages. It is written in C and C++.
3. The primary database model for Redis is Key-Value Store. The primary database model for MySQL is Relational DBMS.
4. It is Data Schema free. In MySQL Data Schema is fixed.
5. It does not support XML data format. It supports XML data format.
6. It supports secondary indexes with RediSearch module only. It supports secondary indexes without any restrictions.
7. It has no Triggers. It supports Triggers.
8. It does not provide the concept of Referential Integrity. Hence, no Foreign Keys. It provides concept of Referential Integrity and have Foreign keys.
9. Server operating systems for Redis are BDS, Linux, OS X and Windows. Server operating systems for MySQL are FreeBSD, Linux, OS X, Solaris, Windows.
10. Famous companies like Twinkl Educational Publishing, Merrill Corporation, ASOS.com Limited, Owler, Inc., etc use Redis. Famous companies like Airbnb, Pinterest, Slack, Udemy, Twitter, etc uses MySQL.