Comments on: Quarkus Microservices with Consul Discovery https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/ Java, Spring, Kotlin, microservices, Kubernetes, containers Sat, 20 May 2023 08:48:05 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-2008 Sat, 20 May 2023 08:48:05 +0000 https://piotrminkowski.com/?p=9118#comment-2008 In reply to icedeveloper93.

Maybe start Consul e.g. on Docker

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-2007 Sat, 20 May 2023 08:46:58 +0000 https://piotrminkowski.com/?p=9118#comment-2007 In reply to Rutul Shah.

Stork is for intergating with external discovery. Quarkus dosn’t have any dedicated project for API gateway (smth similar to Spring Cloud Gateway)

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-2006 Sat, 20 May 2023 08:45:44 +0000 https://piotrminkowski.com/?p=9118#comment-2006 In reply to Rutul Shah.

Yes, this article was created before Stork module for Quarkus has been implemented. Definitely, you can try to implement it with Stork

]]>
By: Rutul Shah https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1999 Fri, 12 May 2023 08:52:46 +0000 https://piotrminkowski.com/?p=9118#comment-1999 Thanks for making this. I am able to implement it. But I am looking to implement load balancer based on response time or weighted metric and not round robin.
As stork gives by default the best instance to pick to distribute the load, can we use stork with quarkus for weighted or response time load balancing in the architecture which you have shown ? Ofcourse on gateway side we may have to implement custom load balancer without stork as it is spring cloud and not quarkus. Can Stork be used or act as API gateway ?

]]>
By: Rutul Shah https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1994 Thu, 11 May 2023 18:07:21 +0000 https://piotrminkowski.com/?p=9118#comment-1994 I have already implemented spring cloud gateway with quarkus and consul as per this blog. But I need to implement weighted strategy in load balancer and not the round robin. Can quarkus stork be used in this architecture so it can help us to decide the best suitable instance ? Can quarkus stork be used as a gateway ?

]]>
By: icedeveloper93 https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1773 Sun, 01 Jan 2023 13:59:42 +0000 https://piotrminkowski.com/?p=9118#comment-1773 Hello !
When adding quarkus healthcheck & setting up a http check.
I take an error on the check : tcp dial cannot connect to 127.0.0.1:65300. The endpoint works well when I test it but fails on consul.

What do I have to do to fix this error ?

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1131 Wed, 26 May 2021 06:58:37 +0000 https://piotrminkowski.com/?p=9118#comment-1131 In reply to repdom809.

Hello,
OS shouldn’t have any impact on it. But if you use Windows, the question is how do you run Docker? It is available on localhost? What error you have during app startup?

]]>
By: repdom809 https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1130 Tue, 25 May 2021 22:30:14 +0000 https://piotrminkowski.com/?p=9118#comment-1130 Hello, I have a problem. When I register my service, it didn’t deregister. Is because I am using windows?

]]>
By: Ale Vouilloz https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1051 Mon, 15 Mar 2021 00:06:09 +0000 https://piotrminkowski.com/?p=9118#comment-1051 Consul-client uses the retrofit2 library that uses proxies. It is possible to define proxy interfaces with parameters de GraalVM. However, there are other problems that prevent using the client on native mode.
The definitive solution was to use vertx-consul-client that allows the compilation of the Quarkus application in native mode without problems. I hope this helps someone.

]]>
By: piotr.minkowski https://piotrminkowski.com/2020/11/24/quarkus-microservices-with-consul-discovery/#comment-1044 Tue, 09 Mar 2021 08:24:46 +0000 https://piotrminkowski.com/?p=9118#comment-1044 In reply to Ale Vouilloz.

Well, that’s a problem with the consul-client library. It probably does not support GraalVM since it uses proxies. You can as well replace it with your own code that just calls Consul REST API to work with the native image builds


com.orbitz.consul
consul-client
${consul-client.version}

]]>