Comments on: A Deep Dive Into Spring Cloud Load Balancer https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/ Java, Spring, Kotlin, microservices, Kubernetes, containers Fri, 09 Oct 2020 16:23:31 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-922 Sat, 22 Aug 2020 12:08:23 +0000 http://piotrminkowski.com/?p=7986#comment-922 In reply to Kyriakos Mandalas.

I’ll try to take a look on that next week. Sorry, for the delay …

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-871 Wed, 03 Jun 2020 14:54:06 +0000 http://piotrminkowski.com/?p=7986#comment-871 Not yet polished but please have a look at: https://github.com/petros94/smart-home-websockets/blob/custom-load-balancer/gateway-server/src/main/java/com/pmitseas/gateway/lb/LeastConnLoadBalancer.java and https://github.com/petros94/smart-home-websockets/blob/custom-load-balancer/gateway-server/src/main/java/com/pmitseas/gateway/GatewayApplication.java

Your feedback/observations is more than welcome.

Kyriakos.

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-870 Fri, 22 May 2020 18:18:51 +0000 http://piotrminkowski.com/?p=7986#comment-870 In reply to Piotr Mińkowski.

I will provide github link in a couple of days. I tested it on local machine with eureka, gateway and 2 instances of a microservice along with a traffic load simulator.

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-878 Fri, 22 May 2020 18:18:51 +0000 http://piotrminkowski.com/?p=7986#comment-878 In reply to Piotr Mińkowski.

I will provide github link in a couple of days. I tested it on local machine with eureka, gateway and 2 instances of a microservice along with a traffic load simulator.

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-877 Fri, 22 May 2020 18:12:12 +0000 http://piotrminkowski.com/?p=7986#comment-877 In reply to Kyriakos Mandalas.

Hello. How did you test it? Have you got any source code?

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-869 Fri, 22 May 2020 18:12:12 +0000 http://piotrminkowski.com/?p=7986#comment-869 In reply to Kyriakos Mandalas.

Hello. How did you test it? Have you got any source code?

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-876 Fri, 22 May 2020 18:08:34 +0000 http://piotrminkowski.com/?p=7986#comment-876 Hello. Just to inform that I have tried it with the gateway with a custom load balancer (more specifically based on a custom actuator metric) and it does work as expected.

]]>
By: Kyriakos Mandalas https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-868 Fri, 22 May 2020 18:08:34 +0000 http://piotrminkowski.com/?p=7986#comment-868 Hello. Just to inform that I have tried it with the gateway with a custom load balancer (more specifically based on a custom actuator metric) and it does work as expected.

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-867 Thu, 14 May 2020 09:31:36 +0000 http://piotrminkowski.com/?p=7986#comment-867 In reply to Kyriakos Mandalas.

The communication between gateway and microservices is defacto inter-service communication too 🙂 Gateway uses discovery to locate service and uses the same lb logic as other Spring Cloud applications. So, the answer is that it should work for gateway the same as for applications demonstrated in this article. However, I haven’t verified it on gateway yet.

]]>
By: Piotr Mińkowski https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/#comment-875 Thu, 14 May 2020 09:31:36 +0000 http://piotrminkowski.com/?p=7986#comment-875 In reply to Kyriakos Mandalas.

The communication between gateway and microservices is defacto inter-service communication too 🙂 Gateway uses discovery to locate service and uses the same lb logic as other Spring Cloud applications. So, the answer is that it should work for gateway the same as for applications demonstrated in this article. However, I haven’t verified it on gateway yet.

]]>