Structsยง
- Replay
Progress - Tracks how far behind the standby is from the primary.
Constantsยง
Traitsยง
- Replay
Handler - Callback that the replay loop calls for each command. The implementation should deserialize and call apply() on the standby engine.
Functionsยง
- apply_
replay_ ๐message - is_
caught_ ๐up_ to_ stream_ tail - is_
promote_ ๐signal - Check if the shutdown signal is a real promote (Ok) vs sender dropped (Err). Only returns true for an explicit promote signal.
- refresh_
catch_ ๐up_ state - run_
replay_ loop - Runs the standby replay loop: subscribes to NATS JetStream and continuously replays engine commands to keep the standby engine caught up with the primary.