SQL (关系型数据库)VS NoSQL(非关系型数据库)
SQL | NoSQL |
---|---|
RELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS) | Non-relational or distributed database system. |
These databases have fixed or static or predefined schema | They have dynamic schema |
These databases are not suited for hierarchical data storage. | These databases are best suited for hierarchical data storage. |
These databases are best suited for complex queries | These databases are not so good for complex queries |
Vertically Scalable | Horizontally scalable |
Follows ACID property | Follows CAP(consistency, availability, partition tolerance) |
Redis=Remote Dictionary Server 远程词典服务器
2009年开发的,键值型NoSQL数据库.
特征:
-
键值型
-
单线程,每个命令具有原子性
-
低延迟,速度快(原因:基于内存,IO多路复用,良好的编码)
-
支持数据持久化
-
支持主从集群,分片集群
-
支持多语言客户端
Installation(base on Linux System):
yum inst