# 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/qiy5vqq
分佈式系統模式 - Write-Ahead Log
在分佈式系統中,節點之間複製數據對於確保用戶服務連續性至關重要。正如 CAP 定理所總結的,根據在故障情況下數據一致性是否關鍵,或者是否優先考慮可用性,需要做出設計選擇。考慮 CP 的情況,有一種稱爲狀態機複製的技術可以實現容錯性,同時也能保證強一致性。在狀態機複製中,諸如鍵值存儲之類的存儲服務在多臺服務器上進行復制,並且用戶輸入按照相同的順序在每臺服務器上執行。其中的關鍵實現技術是在多臺服務器上 ⌘ Read more