Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

v0.4 : better DX and introduction of manual controls

Pre-release
Pre-release
Compare
Choose a tag to compare
@mickaelandrieu mickaelandrieu released this 24 May 19:17
543d886

CHANGELOG

Looking at the awesome C# Polly library, we have refactored the library to make the creation of a circuit breaker easier.

We end up with only one implementation of the CircuitBreaker interface, and we have removed the annoying step of having to configure places behind the MainSystem class.

This refactoring allowed us to implement 2 new methods for the Circuit Breaker:

  • isolate(string $service) that keeps the circuit open until we ...
  • reset(string $service) that close the circuit that was previously isolated from the external system

See the complete changelog above:

5449892 Refactored the System class
d0096e3 && e9a7f37 && fcfae84 Added more tests, code coverage is near to 100% right now
0641fd4 Introduced CircuitBreaker::isolate($service) and CircuitBreaker::reset($service) functions

Enjoy!