feat: implement circuit breaker for Horizon RPC and advanced DLQ mana… - #174
Merged
K1NGD4VID merged 2 commits intoAug 31, 2026
Merged
Conversation
…gement Implement circuit breaker pattern and fallback handlers for Stellar Horizon RPC calls (ASTROIDX556#70), and add queue management service with batch retry/purge and health endpoints for dead-letter queue administration (ASTROIDX556#69). Issue ASTROIDX556#70 — Circuit breaker & fallback handlers: - Core CircuitBreaker class with CLOSED/OPEN/HALF_OPEN state machine - HorizonCircuitBreakerService wrapping the breaker with configurable thresholds, fallback strategies, and monitoring event emission - HorizonCircuitBreakerInterceptor for NestJS controller-level protection - isRpcFailure classifier for network errors, 5xx, and DomainException exclusion - Integrated into StellarService.wrap() for all outbound Horizon calls - Wired HorizonCircuitBreakerService into StellarModule provider/export Issue ASTROIDX556#69 — DLQ management & requeue endpoints: - QueueManagementService with paginated failed job listing, advanced filtering (reason substring, job name, time range), and derived status inspection (failed/exhausted/unrecoverable) - QueueManagementController with RBAC-protected endpoints for batch retry, batch purge, job inspection, and queue health snapshots - Zod validation DTOs for all queue management inputs Both features fully tested with vitest — 756 tests passing. Closes ASTROIDX556#70 Closes ASTROIDX556#69 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@fadesany Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…gement
Implement circuit breaker pattern and fallback handlers for Stellar Horizon RPC calls (#70), and add queue management service with batch retry/purge and health endpoints for dead-letter queue administration (#69).
Issue #70 — Circuit breaker & fallback handlers:
Issue #69 — DLQ management & requeue endpoints:
Both features fully tested with vitest — 756 tests passing.
Closes #70
Closes #69
🤖 Generated with Codebuff
Summary
Type of change
Related issue
Closes #
Checklist
npm run buildpassesnpm testpassesnpm run lintpassesnpm run typecheckpasses