当前位置:网站首页>Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
2022-08-05 03:32:00 【Hao Kai】
Write custom directory title here
Introduction to Redis
Remote Dictionary Service: The translation is the Remote Dictionary Service, or redis for short.
Why use redis, you need to first understand the difference between relational databases and non-relational databases, that is, the difference and usage scenarios between SQL and NoSQL.
Acid (ACID) Base (BASE) Principles for Database Design
Relational Database
Commonly known as SQL database, mainstream MySQL, Oracle.
Characteristics of relational databases
- Store data based on rows, two-dimensional mode (stored in a table, with rows and columns)
- Storing structured data, the data is stored with a fixed schema
- Relationship exists between tables
- Most support SQL (Structured Query Language) operations and complex associated queries
- Provide strict or real-time data consistency by supporting transactional ACID (acid)
Weaknesses of relational databases
- It is difficult to achieve expansion, only upward (vertical) expansion is possible, dynamic expansion and contraction are not supported. If you want to achieve horizontal expansion, you need to introduce some complex technologies, such as sub-database and sub-table
- The table structure is difficult to modify, so the format of the stored data is also limited
- In the case of high concurrency, the disk-based read and write pressure is relatively large
Non-relational database
non relational, or NoSQL, mainstream Redis, MongoDB.
At the beginning, it was called NoSQL, because it did not support the operation of Structured Query Language (SQL), and later evolved into not only SQL, not just SQL.
Non-relational database features
- Store unstructured data such as text, images, audio, video
- There is no association between tables, and the scalability is strong
- Ensure the eventual consistency of data and follow the BASE (base) theory
- Support massive data storage and high concurrent efficient read and write
- Support distributed, can store data in shards, easy to expand and shrink
Types of NoSQL
- KV Storage: Redis and Memcached
- Document Storage: MongoDB
- Column Store: HBase
- Graph storage: Neo4j
- Object Storage
- XML Storage
- ······
Database development stage
| Features | SQL | NoSQL | NewSQL (such as TiDB) |
|---|---|---|---|
| Relational Model | √ | × | √ |
| SQL syntax | √ | × | √ |
| ACID | √ | × | √ |
| Horizontal expansion | × | √ | √ |
| Mass data | × | √ | √ |
| Unstructured | × | √ | √ |
Redis basic features
- Fast speed, placed in memory
- Supports multiple data types (Memcached only supports KV)
- Multiple programming languages supported
- Persistence, memory elimination (Memcached has no persistence mechanism)
- Function-rich: transaction, publish-subscribe, pipeline, lua
- Cluster, distributed (Memcached does not support the master-slave setting of the cluster, Memcached is designed to be multi-threaded)
边栏推荐
- 【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
- 为什么pca分量没有关联
- A small tool to transfer files using QR code - QFileTrans 1.2.0.1
- public static
List asList(T... a) What is the prototype? - You may use special comments to disable some warnings. Three ways to report errors
- 达梦8数据库导出导入
- Redis1:Redis介绍、Redis基本特性、关系型数据库、非关系型数据库、数据库发展阶段
- The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
- Native js realizes the effect of selecting and canceling all the multi-select boxes
- 905. Interval selection
猜你喜欢

Kubernetes 网络入门
![[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)](/img/10/dafea90158adf9d43c4f025414fef7.png)
[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)

MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation

Initial solution of the structure

Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full

Walter talked little knowledge | "remote passthrough" that something

On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion

2022-08-04 The sixth group, hidden from spring, study notes

【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】

用Unity发布APP到Hololens2无坑教程
随机推荐
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
Solana NFT开发指南
Linux下常见的开源数据库,你知道几个?
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
Defect detection (image processing part)
You may use special comments to disable some warnings. 报错解决的三种方式
A small tool to transfer files using QR code - QFileTrans 1.2.0.1
MySql的索引学习和使用;(本人觉得足够详细)
【软件测试】自动化测试之unittest框架
ffmpeg 像素格式基础知识
Kubernetes 网络入门
2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
Turn: Charles Handy: Who you are is more important than what you do
包拉链不可用,但是是被另一个包。
shell脚本:for循环与while循环
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
Initial solution of the structure
Ffmpeg - sources analysis
After the large pixel panorama is completed, what are the promotion methods?
2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试