当前位置:网站首页>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)
边栏推荐
- public static <T> List<T> asList(T... a) 原型是怎么回事?
- Use CH341A to program external Flash (W25Q16JV)
- 新人如何入门和学习软件测试?
- sql怎么找字段里所有数据为空的字段
- The sword refers to Offer--find the repeated numbers in the array (three solutions)
- 冒泡排序与快速排序
- .NET应用程序--Helloworld(C#)
- 开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
- 10 years of testing experience, worthless in the face of the biological age of 35
- Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
猜你喜欢

public static
List asList(T... a) What is the prototype? 
用CH341A烧录外挂Flash (W25Q16JV)

21 Days Learning Challenge (2) Use of Graphical Device Trees
![[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]](/img/c9/fff226b6d33a773b59a0314a99a788.png)
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]

大像素全景制作完成后,推广方式有哪些?

Never put off till tomorrow what you can put - house lease management system based on the SSM

龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入

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

CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations

Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
随机推荐
ffmpeg 枚举decoders, encoders 分析
XMjs cross-domain problem solving
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
沃谈小知识 |“远程透传”那点事儿
ffmpeg 像素格式基础知识
public static
List asList(T... a) What is the prototype? Common open source databases under Linux, how many do you know?
运维监控系统之Open-Falcon
Spark基础【介绍、入门WordCount案例】
Bubble Sort and Quick Sort
数据库设计的酸(ACID)碱(BASE)原则
905. 区间选点
After the large pixel panorama is completed, what are the promotion methods?
用Unity发布APP到Hololens2无坑教程
Package zip is not available, but is referred to by another package.
Dynamic management of massive service instances
剑指Offer--找出数组中重复的数字(三种解法)
Use CH341A to program external Flash (W25Q16JV)
[GYCTF2020]EasyThinking
Getting Started with Kubernetes Networking