# 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/tohqlgq
Golang 數據庫連接池技術原理與實現**
一、爲什麼需要連接池 如果不用連接池,而是每次請求都創建一個連接是比較昂貴的,因此需要完成 3 次 tcp 握手。同時在高併發場景下,由於沒有連接池的最大連接數限制,可以創建無數個連接,耗盡文件描述符。連接池就是爲了複用些創建好的連接。二、連接池設計\\*基本上連接池都會設計以下幾個參數:初始連接數:在初始化連接池時就會預先創建好的連接數量,如果設置得:過大:可能造成浪費 過小:請求到來時需要 ⌘ Read more