Big key
Big key
Scenarios
Star's follower list
Comments under hot topic
Value stores too many items(e.g. redis Hash/List/Set/SortedSet)
The upper limit size is 2^32
As long as number of items inside collection >= 1 million, the latency is roughly 1s.
Diagnose
Using redis as example
Solutions: Delete big keys in the background**
Using redis as example
Solutions: Compression
When cache value is bigger than a certain size, use compression.
Solutions: Split key
Under the same key, limit the size of buckets.
TODO
https://mp.weixin.qq.com/s?__biz=MjM5ODYxMDA5OQ==&mid=404202261&idx=1&sn=1b8254ba5013952923bdc21e0579108e&scene=21#wechat_redirect
Extension read: Facebook lease get problem "Scaling Memcache at Facebook"
Last updated