Skip to content

Is there any sample code for using circuit breaker in grpc client? #6039

Closed Answered by hitoshi-isawa
hitoshi-isawa asked this question in Q&A
Discussion options

You must be logged in to vote

It is difficult to submit a well hidden reproducer due to the implementation at work (although the company is related to LINE).
However, I have tried several implementation patterns, some successful and some unsuccessful, and I would like to share them.

Is this consideration likely to be correct?

Consideration (imo)

  • I think that with CircuitBreakerRuleWithContent, only the decision by the object set in the Response is effective.
    • If it is a CircuitBreakerRule, can it handle other settings as well as judging by Response?
  • If we want the circuit breaker to make a decision based on the grpc status code value, don't we need to use onGrpcTrailers?
    • perhaps onResponseTrailers is for HTTP clie…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@hitoshi-isawa
Comment options

@minwoox
Comment options

@hitoshi-isawa
Comment options

Answer selected by minwoox
@minwoox
Comment options

@minwoox
Comment options

@hitoshi-isawa
Comment options

@minwoox
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants