miroir/crates
jedarden 1b08973509 feat(cdc): implement tiered buffer backend (memory → overflow)
Implements plan §13.13 buffer backend with configurable overflow strategy.

- Primary buffer: memory (64 MiB default) with backpressure semaphore
- Overflow backends:
  - Redis (1 GiB per sink): uses miroir:cdc:overflow:{sink} list
  - PVC: circular log file at /data/cdc-overflow-{sink}.log
  - Drop: increments miroir_cdc_dropped_total immediately
- Added CdcBuffer trait with MemoryBuffer, RedisOverflow, PvcOverflow, DropOverflow
- Updated CdcManager with per-sink tiered buffers and buffer_bytes metric
- Re-exported RedisPool from task_store for CDC use
- Added tokio fs and io-util features for PVC backend

Closes: miroir-uhj.13.5

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 02:08:03 -04:00
..
miroir-core feat(cdc): implement tiered buffer backend (memory → overflow) 2026-05-24 02:08:03 -04:00
miroir-ctl feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00
miroir-proxy feat(multi-search): implement timeout enforcement and acceptance tests (§13.11) 2026-05-24 01:54:20 -04:00