# 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/xxcdxpa
微服務 - 分庫分表的自增主鍵 ID 該如何設計?**
一. 前言-----分佈式 ID 是分佈式系統裏面非常重要的一個組成部分,那麼我們在設計分佈式 ID 的時候,需要考慮什麼問題呢?❓簡單結構下是怎麼實現 ID 的控制的? 單實例系統 :通過時間戳,系統內自增,上鎖等方式保證 ID 的唯一性 單數據庫實例 : 通過自增字段(不談性能)實現 ID 的唯一 ❓微服務 + 分庫分表了 ,又該如何進行控制? 問題 : 單個系統沒辦法 ⌘ Read more