Expand description
Batch processor for CDC events.
Collects events with key deduplication (latest wins) and flushes to sync-engine in batches for efficiency.
§Design
CDC Events ──┬──▶ BatchProcessor ──┬──▶ Debounce (time/count)
│ │
│ HashMap<key, state> │
│ (latest wins) │
│ ▼
└─────────────────────┼──▶ Parallel is_current() dedup
│
▼
submit_many() / delete_many()Structs§
- Batch
Config - Configuration for batch processing.
- Batch
Processor - Accumulates CDC events and flushes to sync-engine in batches.
- Batch
Result - Result of processing a batch.
- Shared
Batch Processor - Thread-safe wrapper around BatchProcessor.