# 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/gqosqlq
分佈式鎖的實現原理**
介紹分佈式鎖的實現原理。一、分佈式鎖概述分佈式鎖,顧名思義,就是在分佈式環境下使用的鎖。衆所周知,在併發編程中,我們經常需要藉助併發控制工具,如 mutex、synchronized 等,來保障線程安全。但是,這種線程安全僅作用在同一內存環境中。在實際業務中,爲了保障服務的可靠性,我們通常會採用多節點進行部署。在這種分佈式情況下,各實例間的內存不共享,線程安全並不能保證併發安全,如下例,同一實例中 ⌘ Read more