# 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/yevqtzq
Golang 分佈式系統**
一、分佈式 id 生成器------------在高併發場景中,通常需要類似 MySQL 自增 id 一樣不斷增長且不會重複的 id。比如某電商雙 11 時,在 0:00 開始,會有千萬到億級的訂單湧入,每秒要處理 10w+ 的訂單。在將訂單插入數據庫前,我們需要給訂單一個唯一的 id 再插入數據庫內。也正因爲訂單量大,一個無意義的純數字 id 在對數據庫進行增刪改查時不能起到優化作用。此 id ⌘ Read more