55

缓存Tair高性能使用规范 - 简书

 6 years ago
source link: https://www.jianshu.com/p/6417083301c2?
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.
不要短时间大量重复读写相同的key server端的原理是网络收包后,放入到工作队列(读写队列分离,但都只有一个),再由工作线程从队列中取出进行处理。这里一个问题是,为保证数据的正确性,会对同一个key的读写加锁,而如果存在大量读写同一个key的情况,则势必会阻塞其他线程(锁不慢,锁竞争才慢),导致拖慢整个服务端的处理速度。 不要使用时间戳作为key的一部分,容易导致一段时间内所有流量都访问...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK