当前位置:网站首页>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)
边栏推荐
- 毕设-基于SSM房屋租赁管理系统
- Talking about data security governance and privacy computing
- Summary of domestic environments supported by SuperMap
- On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
- AI+PROTAC | dx/tx completes $5 million seed round
- Mathematics - Properties of Summation Symbols
- Static method to get configuration file data
- 10 years of testing experience, worthless in the face of the biological age of 35
- public static <T> List<T> asList(T... a) 原型是怎么回事?
- You may use special comments to disable some warnings. 报错解决的三种方式
猜你喜欢
数据库设计的酸(ACID)碱(BASE)原则
静态方法获取配置文件数据
21天学习挑战赛(2)图解设备树的使用
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
新人如何入门和学习软件测试?
冰蝎V4.0攻击来袭,安全狗产品可全面检测
毕设-基于SSM房屋租赁管理系统
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
Is your data safe in this hyperconnected world?
随机推荐
冰蝎V4.0攻击来袭,安全狗产品可全面检测
告白数字化转型时代,时速云镌刻价值新起点
Cybersecurity and the Metaverse: Identifying Weak Links
Solana NFT开发指南
用CH341A烧录外挂Flash (W25Q16JV)
静态方法获取配置文件数据
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
GC Gaode coordinate and Baidu coordinate conversion
Talking about data security governance and privacy computing
Dive into how it works together by simulating Vite
How to sort multiple fields and multiple values in sql statement
[GYCTF2020]EasyThinking
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
[TA-Frost Wolf_may-"Hundred Talents Project"] Graphics 4.3 Real-time Shadow Introduction
2022-08-04 The sixth group, hidden from spring, study notes
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
运维监控系统之Open-Falcon
Getting Started with Kubernetes Networking
Defect detection (image processing part)
Use Unity to publish APP to Hololens2 without pit tutorial