# 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/tahrptq
Golang 分佈式鎖技術攻略**
0 前言幾個月前和大家分享過一篇——Golang 單機鎖實現原理,恰逢最近在研究 etcd 的 watch 機制,這是一項可以應用於實現分佈式鎖的核心能力,於是擇日不日撞日,接下來就和大家一起來聊聊單機鎖的升級版本——Golang 分佈式鎖技術攻略介紹本文內容分爲兩部分:第一部分聊聊如何通過 redis 實現主動輪詢模型下的分佈式鎖;第二部分和大家一起探討如何使用 etcd 實現 watch 回調 ⌘ Read more