当前位置:网站首页>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)
边栏推荐
- MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
- AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
- 调用阿里云oss和sms服务
- 数据库设计的酸(ACID)碱(BASE)原则
- 告白数字化转型时代,时速云镌刻价值新起点
- markdown如何换行——md文件
- 七夕节代码表白
- Queue Topic: Recent Requests
- Web3.0 Dapps - the road to the future financial world
- Getting Started with Kubernetes Networking
猜你喜欢

.NET应用程序--Helloworld(C#)
![[GYCTF2020]EasyThinking](/img/40/973411c69d1e4766d22f6a4a7c7c01.png)
[GYCTF2020]EasyThinking

Bubble Sort and Quick Sort

2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试

This year's Qixi Festival, "love vegetables" are more loving than gifts

Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~

Use SuperMap iDesktopX data migration tool to migrate ArcGIS data

Question about #sql shell#, how to solve it?

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

毕设-基于SSM房屋租赁管理系统
随机推荐
What is the difference between SAP ERP and ORACLE ERP?
高项 02 信息系统项目管理基础
How to Add Category-Specific Widgets in WordPress
队列题目:最近的请求次数
通过模拟Vite一起深入其工作原理
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
Use SuperMap iDesktopX data migration tool to migrate ArcGIS data
How to sort multiple fields and multiple values in sql statement
The usage of try...catch and finally in js
【软件测试】自动化测试之unittest框架
Use @Mapper to query the partition status of oracle and report an error
数学-求和符号的性质
How to find all fields with empty data in sql
Cybersecurity and the Metaverse: Identifying Weak Links
21 Days Learning Challenge (2) Use of Graphical Device Trees
How to simulate the background API call scene, very detailed!
A small tool to transfer files using QR code - QFileTrans 1.2.0.1
Burp installation and proxy settings
Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?