# 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/xc5ghiq
Go: 屏障併發模式**
什麼是屏障併發模式?假設有這麼一種場景,一個微服務需要調其他兩個微服務,通過組合他們的響應結果來返回給客戶端。屏障併發模式在這裏就有用武之地了。屏障併發模式會使一個服務阻塞等待給客戶端響應結果,直到從其他一個或多個不同的 Goroutine(服務) 中獲取到返回內容。怎樣才能使服務具有阻塞性質?我們可以用鎖,但是在 Go 中更習慣使用通道。目標顧名思義,屏障模式就是讓程序阻塞直到準備就緒爲止。其目 ⌘ Read more