ActivityWatch / ActivityWatch/aw-server-rust

Decide bounded-staleness contract for parallel read connections

未關閉
#646 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
315
分支
96
平均合併
2 天 21 小時
30 天內合併 PR
14

描述

## Question

Is bounded read staleness acceptable for ActivityWatch read endpoints when reads are served from parallel read-only SQLite connections? If yes, what bounds should we design for?

Erik's current preference is:

- under 1 second in the average case
- never more than 1 minute in the worst case

## Why this gates the design

WAL landed in #616, so readers no longer need to block the serial writer. The remaining fork for the parallel-read TODO in `aw-datastore/src/worker.rs` is consistency:

- if bounded staleness is acceptable, reads can use a read-only pool with that freshness contract;
- if read-your-writes is required, dispatch needs a synchronization/guard path before serving a read.

This issue is only to settle the consistency contract; implementation and benchmarking can follow separately.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。