Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added few endpoints for checking diff patterns from resiliency4j #1

Merged
merged 3 commits into from
Dec 1, 2024

Conversation

shaileshpadave
Copy link

@shaileshpadave shaileshpadave commented Nov 29, 2024

Added 3 endpoints :

  1. sayHelloWithDelay - Circuit Breaker
  2. sayHelloIntermittentFailures - Retry
  3. sayHelloServiceDown - Circuit Breaker
  4. sayHelloOverloaded - Bulkhead
  5. sayHelloWithFailureTypes - Circuit Breaker, Retry
  6. sayHelloWithExternalDependency - Circuit Breaker, Retry

public void sayHelloWithDelay(HelloRequest request, StreamObserver<HelloResponse> responseObserver) {
try {
// Simulate a delay (e.g., 5 seconds)
TimeUnit.SECONDS.sleep(5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we make this random or driven by input parameter?
how about this

85% --> ~5sec
10% --> 10sec
4% --> 15sec
1%. --> 20sec

@v1r3n v1r3n merged commit 5907dcf into conductor-oss:main Dec 1, 2024
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.

2 participants