live_recorder/tests/LiveRecorder.Tests
nanxun 5196ffa0f0 feat: add database circuit breaker and health-readiness endpoint
Introduce a process-wide DatabaseCircuitBreaker that fails fast when Postgres is unavailable (e.g. disk full) instead of letting every request burn doomed EF Core retries. CircuitAwareExecutionStrategy derives from NpgsqlRetryingExecutionStrategy and records success/failure around the public Execute/ExecuteAsync seams; background workers skip work and back off while the circuit is open; the exception middleware maps an open circuit (and other DB outages) to 503. Adds /health (liveness) and /health/ready (readiness, reporting circuit state), plus unit tests for the open/half-open transitions and non-transient SQLSTATE detection.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 17:52:18 +08:00
..
DatabaseCircuitBreakerTests.cs feat: add database circuit breaker and health-readiness endpoint 2026-06-11 17:52:18 +08:00
LivePlatformCatalogTests.cs feat: expand platform adapters and preview tooling 2026-05-13 19:40:43 +08:00
LiveRecorder.Tests.csproj feat: add database circuit breaker and health-readiness endpoint 2026-06-11 17:52:18 +08:00
LiveRoomServiceLocalParsingTests.cs feat: expand platform adapters and preview tooling 2026-05-13 19:40:43 +08:00
LiveRoomStatusServiceTests.cs feat: expand platform adapters and preview tooling 2026-05-13 19:40:43 +08:00
SystemSettingsServiceTests.cs feat: expand platform adapters and preview tooling 2026-05-13 19:40:43 +08:00
Usings.cs feat: expand platform adapters and preview tooling 2026-05-13 19:40:43 +08:00