circuit_breaker 3.0.0
circuit_breaker: ^3.0.0 copied to clipboard
Implementation of the Circuit Breaker Design Pattern
3.0.0 #
- Breaking Change: Renamed
executemethod toexecuteRequestfor HTTP requests to distinguish from the new generic execution method. - New Feature: Added
execute<T>method to support generic asynchronous functions, allowing the circuit breaker to be used for non-HTTP operations. - Refactor: Improved exception handling with a new hierarchy:
CircuitBreakerException(Base class)CircuitBreakerOpenExceptionCircuitBreakerTimeoutExceptionCircuitBreakerBulkheadExceptionCircuitBreakerNetworkException
- Refactor: Updated
CircuitBreakerEventclasses to support generic execution (optionalurlandstatusCode). - Documentation: Added examples for exception handling and generic execution.
2.0.0 #
- Breaking Change: Complete architectural rewrite using Domain-Driven Design principles.
- New Feature: Added
CircuitBreakerEventsfor detailed monitoring and logging. - New Feature: Implemented
SlidingWindowmetrics for accurate failure rate tracking. - New Feature: Added flexible
RetryPolicyconfiguration. - New Feature: Introduced
CircuitBreakerStoragewith in-memory and JSON persistence support. - Documentation: Major update to
README.mdwith detailed usage guides and architecture overview. - Tests: Added comprehensive unit tests covering all new components.
1.0.3 #
- Update lint
- Update versions dependencies
1.0.2 #
- Update lint
- Remove import unused
1.0.1 #
- Clone request
- Add example
1.0.0 #
- Create project