iconsulting/packages/services
hailin 1a1573dda3 feat(resilience): add circuit breaker for downstream services
- New CircuitBreaker class: CLOSED → OPEN → HALF_OPEN three-state model
- Zero external dependencies, ~90 lines, fail-open semantics
- KnowledgeClientService: threshold=5, cooldown=60s, protects all 9 endpoints
- PaymentClientService: threshold=3, cooldown=30s, protects all 7 endpoints
- Both services refactored to use protectedFetch() — cleaner code, fewer try-catch
- Replaces verbose per-method error handling with centralized circuit breaker
- When tripped: returns null/empty fallback instantly, no network call

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 04:21:30 -08:00
..
conversation-service feat(resilience): add circuit breaker for downstream services 2026-02-08 04:21:30 -08:00
docling-service fix(docling): align volume mount with HF default cache path 2026-02-07 07:38:28 -08:00
evolution-service fix(analytics): handle statDate as string from database 2026-01-26 08:40:09 -08:00
file-service fix(files): replace MinIO presigned URLs with API proxy + base64 for Claude 2026-02-07 04:49:39 -08:00
knowledge-service feat(knowledge): add Docling document parsing microservice 2026-02-07 05:24:10 -08:00
payment-service fix(payment): return paymentUrl from adapters, strip base64 from tool output 2026-02-07 11:44:54 -08:00
user-service fix(nginx): fix admin location try_files path and add multi-tenancy migrations 2026-01-26 07:46:52 -08:00