-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d738ec
commit 148c2ea
Showing
24 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
03~键值型数据库/Redis/99~参考资料/2024~ByteByteGO~How Redis Architecture Envolves?.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# How Redis Architecture Envolves? | ||
|
||
![Redis 架构变迁](https://ngte-superbed.oss-cn-beijing.aliyuncs.com/uPic/IZnKSxxcHKDI.png) | ||
|
||
- 2010 - Standalone Redis | ||
When Redis 1.0 was released in 2010, the architecture was quite simple. It is usually used as a cache to the business application. | ||
|
||
However, Redis stores data in memory. When we restart Redis, we will lose all the data and the traffic directly hits the database. | ||
|
||
- 2013 - Persistence | ||
When Redis 2.8 was released in 2013, it addressed the previous restrictions. Redis introduced RDB in-memory snapshots to persist data. It also supports AOF (Append-Only-File), where each write command is written to an AOF file. | ||
|
||
- 2013 - Replication | ||
Redis 2.8 also added replication to increase availability. The primary instance handles real-time read and write requests, while replica synchronizes the primary's data. | ||
|
||
- 2013 - Sentinel | ||
Redis 2.8 introduced Sentinel to monitor the Redis instances in real time. is a system designed to help managing Redis instances. It performs the following four tasks: monitoring, notification, automatic failover and configuration provider. | ||
|
||
- 2015 - Cluster | ||
In 2015, Redis 3.0 was released. It added Redis clusters. | ||
|
||
A Redis cluster is a distributed database solution that manages data through sharding. The data is divided into 16384 slots, and each node is responsible for a portion of the slot. | ||
|
||
- Looking Ahead | ||
Redis is popular because of its high performance and rich data structures that dramatically reduce the complexity of developing a business application. | ||
|
||
In 2017, Redis 5.0 was released, adding the stream data type. | ||
|
||
In 2020, Redis 6.0 was released, introducing the multi-threaded I/O in the network module. Redis model is divided into the network module and the main processing module. The Redis developers the network module tends to become a bottleneck in the system. |