# 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/tnejjfa
高併發場景下如何實現系統限流?**
在分佈式高可用設計中,限流應該是應用最廣泛的技術手段之一,今天一起來討論一下,爲什麼需要限流,以及常見的限流算法都有哪些。一、常見限流算法限流是服務降級的一種手段,顧名思義,通過限制系統的流量,從而實現保護系統的目的。合理的限流配置,需要了解系統的吞吐量,所以,限流一般需要結合容量規劃和壓測來進行。當外部請求接近或者達到系統的最大閾值時,觸發限流,採取其他的手段進行降級,保護系統不被壓垮。常見的降 ⌘ Read more