Tarragon
搜尋
文章
標籤
Now
RSS
"High-Frequency-Write"
2026-06-16
Firestore 高頻寫入與 distributed counter:單 document contention 邊界與分片計數
Firestore 單一 document 有持續寫入的軟上限、高頻計數寫爆 contention 是常見事故;本文展開寫入 contention 的成因、distributed counter 分片計數的實作與讀取彙總、shard 數量與讀寫成本的取捨、五個高頻寫入踩坑,以及計數需求超過分片能處理時改走外部聚合的邊界