# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/t74fpzq
超高併發下 Redis 分 key 的實現原理**
衆所周知 Redis 扛併發的能力是非常強的,所以高併發場景下經常會使用 Redis,但是 Redis 單分片的寫入瓶頸在 2w 左右,讀瓶頸在 10w 左右,如果在超高併發下即使是集羣部署 Redis,單分片的 Redis 也是有可能扛不住的,如下圖所示: 雖然 Redis 做了集羣部署,但是 Redis 的 key 只會存在一個分片上,此時超高併發下 redis1 很有可能會被打 ⌘ Read more