# 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/oporyoa
Go 實現後臺任務調度系統**
一、背景----平常我們在開發 API 的時候,前端傳遞過來的大批數據需要經過後端處理,如果後端處理的速度快,前端響應就快,反之則很慢,影響用戶體驗。針對這種場景我們一般都是後臺異步處理,不需要前端等待所有的都執行完才返回。爲了解決這一問題,需要我們自己實現後臺任務調度系統。二、任務調度器實現---------poll.gopackage pollerimport ( "context" "fmt ⌘ Read more