当前位置:网站首页>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)
边栏推荐
- 2022 Hangzhou Electric Multi-School 1st Game
- Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
- 今年七夕,「情蔬」比礼物更有爱
- [Software testing] unittest framework for automated testing
- Burp installation and proxy settings
- Cybersecurity and the Metaverse: Identifying Weak Links
- Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
- 通过模拟Vite一起深入其工作原理
- What is the difference between SAP ERP and ORACLE ERP?
- Call Alibaba Cloud oss and sms services
猜你喜欢
【已解决】Unity Coroutinue 协程未有效执行的问题
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
Principle and Technology of Virtual Memory
【 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
.NET应用程序--Helloworld(C#)
新人如何入门和学习软件测试?
引领数字医学高地,中山医院探索打造未来医院“新范式”
Use Unity to publish APP to Hololens2 without pit tutorial
Walter talked little knowledge | "remote passthrough" that something
How to sort multiple fields and multiple values in sql statement
随机推荐
leetcode-每日一题1403. 非递增顺序的最小子序列(贪心)
Talking about data security governance and privacy computing
Queue Topic: Recent Requests
从“能用”到“好用” 国产软件自主可控持续推进
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
结构体初解
How to discover a valuable GameFi?
YYGH-13-Customer Service Center
Dameng 8 database export and import
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
Linux下常见的开源数据库,你知道几个?
Ffmpeg - sources analysis
大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
Use SuperMap iDesktopX data migration tool to migrate map documents and symbols
Initial solution of the structure
十五. 实战——mysql建库建表 字符集 和 排序规则
MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation
如何在WordPress中添加特定类别的小工具
ffmpeg enumeration decoders, encoders analysis
.NET Application -- Helloworld (C#)