"High-Frequency-Write"
- Firestore 高頻寫入與 distributed counter:單 document contention 邊界與分片計數 Firestore 單一 document 有持續寫入的軟上限、高頻計數寫爆 contention 是常見事故;本文展開寫入 contention 的成因、distributed counter 分片計數的實作與讀取彙總、shard 數量與讀寫成本的取捨、高頻寫入事故(直接 increment 單一 document、shard 數估太少或太多、選 shard 有偏、把分片計數當強一致餘額用),以及計數需求超過分片能處理時改走外部聚合的邊界