Expand description
Switchover Buffer - Query buffering during controlled switchover
Buffers write queries during the brief switchover window to ensure zero transaction loss. Queries are replayed to the new primary once switchover completes.
§How it works
Normal Operation:
Client → Proxy → Primary
During Switchover:
Client → Proxy → Buffer (queued)
↓
[Switchover completes]
↓
Buffer → New Primary (replayed)§Timeout Behavior
If switchover takes longer than buffer_timeout, buffered queries
will fail with a timeout error rather than blocking indefinitely.
Structs§
- Buffer
Config - Buffer configuration
- Buffer
Stats Snapshot - Statistics snapshot
- Buffered
Query - A buffered query waiting to be executed
- Switchover
Buffer - Switchover buffer for zero-downtime primary transitions
Enums§
- Buffer
Result - Result of a buffered query after replay
- Buffer
State - Buffer state