Circuit Breaker Support

The Circuit Breaker feature is supported through the use of Resilience4j libraries.

By default, all the exceptions count as a failure. The list of the exceptions are not a part of this feature.

For more information, information, see HTTP Client in the Shared Resources section of the Bindings and Palette Reference.

  • Grafana Dashboard Integration
    To monitor the events that are generated by the Resilience4j library, use Prometheus and Grafana for visualization.  
    • VMware Tanzu - You can retrieve the Resilience4j metrics using http://<routable url>/resilience4j_metrics

      For example,

      http://myapp.demopcf.com:80/resilience4j_metrics

    • Docker or Docker-based platforms - You can retrieve the Resilience4j metrics using the command http://<Container IP>:8090/resilience4j_metrics

      For example,

      http://132.99.1.6:8090/resilience4j_metrics

Note: The applications running with Hystrix Circuit Breaker support with versions prior to 2.7.0, such applications base image does not need to be changed unless you want to link running applications with the TIBCO BusinessWorks Container Edition base image of 2.7.0.

 

For existing applications prior to TIBCO BusinessWorks Container Edition 2.7.0 with Circuit Breaker enabled through Hystrix, follow these steps to use Circuit Breaker using Resilience4j over Hystrix libraries.

    Procedure
  1. Import existing application in TIBCO Business Studio for BusinessWorks.

  2. Navigate to Problems tab and select EMF Validation Problem. Resolve all the EMF validation problems related to Circuit Breaker configuration error.

Note: Review the Circuit Breaker properties to ensure that the properties are configured as per the requirement after migrating to Resilience4j.

After all the issues related to Circuit Breaker configuration are resolved, you can use the application for Circuit Breaker configuration with Resilience4j libraries.