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

messages in B & C Service wrongly refering it as A Service #5

Open
nagkumar opened this issue Jul 23, 2023 · 1 comment
Open

messages in B & C Service wrongly refering it as A Service #5

nagkumar opened this issue Jul 23, 2023 · 1 comment

Comments

@nagkumar
Copy link

nagkumar commented Jul 23, 2023

https://github.com/resilience4j/resilience4j-spring-boot3-demo/blob/master/src/main/java/io/github/robwin/service/BackendBService.java

has 1 message that say backend A while it may need to be backed B
the

 @Override
    public CompletableFuture<String> futureTimeout() {
        Try.run(() -> Thread.sleep(5000));
        return CompletableFuture.completedFuture("Hello World from` backend A"`);
    }

https://github.com/resilience4j/resilience4j-spring-boot3-demo/blob/master/src/main/java/io/github/robwin/service/BackendCService.java

has 7 messages that say backend A while it may need to be backend C

@nagkumar
Copy link
Author

nagkumar commented Jul 24, 2023

Trying to understand the example code better..

when the URL to go is http://localhost:9080/backendC/success

image

it fetches response as Hello World from backend A

Unable to know, the code that is routing to backend A Service..

as console says
dev-app-1 | 2023-07-24T09:54:29.567Z INFO 205 --- [or-http-epoll-3] io.github.robwin.Application : 2023-07-24T09:54:29.567386638Z[Etc/UTC]: CircuitBreaker 'backendC' recorded a successful call. Elapsed time: 0 ms

Can you pl. point me to the code making this happen.

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

No branches or pull requests

1 participant