# 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/ewafn5a
億級排行榜設計**
問題--假如有 10 億的用戶,每個用戶有自己的分數 (score),請你設計一個排行榜,可以根據用戶的分數進行排名,每個用戶可以知道自己在排行榜中的排名情況。分析一說到排行榜,我們的第一反應肯定是使用 Redis 的 ZSET 結構實現,那麼使用 ZSET 如何實現對 10 億用戶進行排序?ZSET 單 key第一種思路,使用 ZSET 單 key,也就是將 10 億用戶都放入一個 ZSET k ⌘ Read more