18
Views
2
Comments
[Circuit Breaker Library] Caching in CircuitBreaker_Lib
Question
circuit-breaker
Service icon
Forge asset by Team Resilience
Application Type
Service

Hi,

I'm trying to understand how your Circuit Breaker component works, and there is something I don't understand about the caching in the library.

There seems to be code pointing to the use of caching, such as the ClearCache action that is called in multiple places.  However, I can't seem to find any action, Advanced SQL or Aggregate that has caching enabled.

Am I missing something?  Which parts of the implementation are supposed to be cached?

Kind regards,

Steven

2023-05-02 10-33-02
Madhuri Patil

Hi @Steven Decock,

Cache is not only about aggregates or Advance SQL. .In this Circuit Breaker Library they have one action where they written the code of caching for 5 minutes to reopen the default configurations for that API.
Please check below screenshot for more detail.

UserImage.jpg
Vicky Mekes

Hi @Steven Decock ,

It's just as @Madhuri Patil says, the ClearCache is used to reset the values cached in the front end server(s) from the output of the CircuitBreakerRequest. 

After cache is cleared, whenever the CircuitBreakerRequest is called again, there's no more cached value and the server is checked again.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.