Load balancer does not have available server for client

After doing research, and with help of @Bloodysock, I found that I was missing registration of remote server in ‘client-app’ micro-service. The document is at Spring Cloud Netflix. I used Ribbon without Eureka with configuration in application.yml in ‘client-app‘ micro-service as: movie-api: ribbon: listOfServers: http://localhost:8090

Difference between @RibbonClient and @LoadBalanced

TL;DR: @LoadBalanced is a marker annotation & @RibbonClient is used for configuration purposes. @LoadBalanced Used as a marker annotation indicating that the annotated RestTemplate should use a RibbonLoadBalancerClient for interacting with your service(s). In turn, this allows you to use “logical identifiers” for the URLs you pass to the RestTemplate. These logical identifiers are typically … Read more

Eureka and Kubernetes

How can I setup something like eureka.client.serviceUri? You have to have a Kubernetes service on top of the eureka pods/deployments which then will provide you a referable IP address and port number. And then use that referable address to look up the Eureka service, instead of “8761”. To address further question about HA configuration of … Read more

How to check two condition while using @ConditionalOnProperty or @ConditionalOnExpression

Since from the beginning of @ConditionalOnProperty it was possible to check more than one property. The name / value attribute is an array. @Configuration @ConditionalOnProperty({ “property1”, “property2” }) protected static class MultiplePropertiesRequiredConfiguration { @Bean public String foo() { return “foo”; } } For simple boolean properties with an AND check you don’t need a @ConditionalOnExpression.

How is Spring Cloud Gateway different from Zuul?

I am the author of spring cloud gateway. Zuul is built on servlet 2.5 (works with 3.x), using blocking APIs. It doesn’t support any long lived connections, like websockets. Gateway is built on Spring Framework 5, Project Reactor and Spring Boot 2 using non-blocking APIs. Websockets are supported and it’s a much better developer experience … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)