Keep health probes independent of mirror status scans #95

Merged
Collaborator

Read the last successful sync through a short-lived read-only connection, reuse the aggregate in status(), and run both health-route reads in worker threads. Preserve response contracts and add four regression tests covering query scope, connection mode, event-loop isolation and lock independence.

Validation: make check passed with 342 tests passing and 4 skipped; source and wheel builds passed. On 200,000 synthetic messages, 20 health probes measured 0.79 ms median and 2.06 ms maximum; status() measured 65.15 ms median.

Closes #90
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Read the last successful sync through a short-lived read-only connection, reuse the aggregate in status(), and run both health-route reads in worker threads. Preserve response contracts and add four regression tests covering query scope, connection mode, event-loop isolation and lock independence. Validation: make check passed with 342 tests passing and 4 skipped; source and wheel builds passed. On 200,000 synthetic messages, 20 health probes measured 0.79 ms median and 2.06 ms maximum; status() measured 65.15 ms median. Closes #90 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Read the last successful sync through a short-lived read-only connection, reuse the aggregate in status(), and run both health-route reads in worker threads. Preserve response contracts and add four regression tests covering query scope, connection mode, event-loop isolation and lock independence.

Validation: make check passed with 342 tests passing and 4 skipped; source and wheel builds passed. On 200,000 synthetic messages, 20 health probes measured 0.79 ms median and 2.06 ms maximum; status() measured 65.15 ms median.

Closes #90
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Sign in to join this conversation.
No description provided.