# 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/ii6draq
Go 的 IO 流怎麼併發?小技巧分享**
今天聊一個存儲的實現細節,數據副本的併發寫入。存儲的高可靠性和高可用,必須依賴於數據的冗餘機制。比如 3 副本就是把用戶數據複製成 3 份。然後把 3 份數據分發到不同的地方。這個寫下去的動作是有講究的,因爲肯定不希望時延線性增加,你肯定希望的是雖然多寫 2 份數據,但還只耗費 1 份時間。換句話說,原則上數據雖然變多了,但是時間開銷不能增加。那就只能併發寫入嘍!那這個動作怎麼實現呢?帶大家思考幾 ⌘ Read more