📜  Redis 和 MySQL 的区别

📅  最后修改于: 2021-09-13 02:05:46             🧑  作者: Mango

1. Redis :
Redis 代表远程字典服务器,它是一个内存数据结构项目,实现了具有可选持久性的分布式内存键值数据库。 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.