FasterLog
FasterLog is a concurrent append-only log library with separate boundaries for in-memory visibility, committed storage and recovery.
FasterLog stores a sequence of entries; FasterKV instead exposes key-based operations over a hybrid log. The two abstractions are not interchangeable. [1]
Visibility: In version 2.6.5, AutoRefreshSafeTailAddress enables safe uncommitted scans. SafeTailAddress can advance beyond CommittedUntilAddress without making those records recoverable. AutoCommit is a separate setting. [2] [3]
Address boundary: WaitForCommitAsync waits for a boundary, not inclusively for the record starting there. Passing an enqueue's returned start address can therefore finish before that record commits. Capture the post-enqueue tail, or use the enqueue-and-wait helper with a separate commit producer; waiting alone does not request a commit. [3]
Native example: After a committed baseline ending at address 76, a new record occupied [76,92). Waiting for 76 completed, while waiting for 92 remained pending. The record was visible before commit but absent after killing and reopening the writer in three trials. With CommitAsync completed first, it was recovered in all three controls. These are process-restart observations, not power-loss tests or failure-rate estimates. [6]
System context: Netherite uses FasterLog for its commit log and FasterKV for partition state. Its outbox delays cross-partition sends until the producing event is persisted; early local processing is not permission for arbitrary external side effects. [5]
Relations
- related
- Hybrid log, Group commit
Advantages
- An atomic enqueue batch can keep its entries together at commit. [4]
Limitations
- Persisting a named iterator position does not by itself transact an external consumer's side effects. [4]
Citations
- Microsoft Research: FASTER project, FasterKV and FasterLog abstractions.
- FASTER v2.6.5: FasterLogSettings.cs, automatic safe-tail refresh and automatic commit.
- FASTER v2.6.5: FasterLog.cs, WaitForCommitAsync, enqueue-and-wait, Scan and safe-tail advancement.
- FasterLog Basics: enqueue, commit, iteration and named iterator recovery; older API examples.
- Burckhardt et al. Netherite: Efficient Execution of Serverless Workflows. PVLDB 15(8), 2022, sections 5.2-5.3.
- Hesela: native FasterLog 2.6.5 visibility, address-boundary and process-restart probe.
Further reading
Sources & caveats
- The native probe uses Microsoft.FASTER.Core 2.6.5 on .NET 10.0.12, Linux x64, ManagedLocalStorageDevice, one writer, two short payloads and three repetitions per condition. [6]
- The documentation's RefreshUncommitted examples are older than the pinned API; version 2.6.5 requires AutoRefreshSafeTailAddress for uncommitted Scan. [4] [3]
- The SIGMOD 2019 CPR paper concerns per-session FasterKV recovery, not FasterLog's single log-address frontier. Netherite DOI: 10.14778/3529337.3529344. [5]