Skip to content

Conversation

TalkySafe143
Copy link

This PR comes with:

  • Circuit Breaker implementation for HTTP and gRPC calls.
  • File config new validations.

This first version of the circuit breaker use a simple policy to states changes (CLOSED -> OPEN -> HALF OPEN).
The following new configurations can be added to the input file:

"endpoints" : [
   "name": "...",
   ...,
   "resilience_patterns":  {
         "circuit_breaker" : {
              "timeout": 2,
              "retry_timer": 10
           }
     },
     ...
     "network_complexity": {
            ....
            "called_services": [
              {
                "service": "service2",
                "endpoint": "endpoint1",
                "active_circuit_breaker": true,
                ....
              }
            ]
       }
]

Retry timer stands for how many seconds the Circuit Breaker should wait until make a retry to the called service. The documentation of the circuit breaker was added in generator-parameters.sh.

The objective of the contribution is to represent better the patterns implemented in production workloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant