20

Redis 高频面试题:10w+QPS 的 Redis 真的只是因为单线程和基于内存?-Java_老男孩

 3 years ago
source link: https://blog.51cto.com/14230003/2509020
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
你以为Redis这么快仅仅因为单线程和基于内存?那么你想得太少了,我个人认为Redis的快是基于多方面的:不但是单线程和内存,还有底层的数据结构设计,网络通信的设计,主从、哨兵和集群等等方面的设计~下面,我将360°为你揭开RedisQPS达到10万/秒的神秘面纱。一、底层数据结构设计1、底层架构:首先值得称赞的第一点:Redis底层使用的数据结构很多,但是却没有直接使用这些数据结构来实现键值对数

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK