Pub/Sub
SUBSCRIBE, UNSUBSCRIBE and PUBLISH implement the Publish/Subscribe messaging paradigm(范例) where (citing Wikipedia) senders (publishers) are not programmed to send their messages to specifi...
Request/Response protocols and RTT
Redis is a TCP server using the client-server model and what is called a Request/Response protocol.
请求流程
This means that usually a request is accomplished(完成) ...
慢操作的定位
在定位慢操作的时候,我们经常根据 slowlog 去定位
但是一个执行操作,如果是等待的时间过长,slowlog 是不进行记录的。
slowlog 仅仅记录动作的执行时间。
latency 就是为了解决这个问题而生的。
Redis latency monitoring framework
Redis is often used in the context of d...
serverCron 简介
在 Redis 中, 常规操作由 redis.c/serverCron 实现, 它主要执行以下操作
serverCron函数每100毫秒执行一次,负责管理服务器资源,并保持服务器自身的良好运转。
/* This is our timer interrupt, called server.hz times per second.
* Here is wher...