Monday, April 12, 2021

Spring Cloud, Netflix, Microservices - V V IMP

https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-ribbon.html


https://cloud.spring.io/spring-cloud-netflix/1.0.x/

https://stackoverflow.com/questions/39587317/difference-between-ribbonclient-and-loadbalanced

https://www.baeldung.com/spring-cloud-rest-client-with-netflix-ribbon

https://howtodoinjava.com/spring-cloud/spring-boot-ribbon-eureka/#ribbon

https://dzone.com/articles/using-new-spring-cloud-load-balancer-in-microservi

@EnableEurekaClient

@EnableDiscoveryClient


@RibbonClient(name="")

https://stackoverflow.com/questions/31976236/whats-the-difference-between-enableeurekaclient-and-enablediscoveryclient

https://piotrminkowski.com/2020/05/13/a-deep-dive-into-spring-cloud-load-balancer/

A New Era of Spring Cloud. While almost all of Spring Cloud Netflix components will be removed in the next release, it seems that the biggest change is a replacement of Ribbon client into Spring Cloud Load Balancer.

---------------------------------------------------------------------------------------------------

https://www.baeldung.com/spring-component-scanning

@ComponentScan Without Arguments

we use the @ComponentScan annotation along with @Configuration annotation to specify the packages that we want to be scanned. 
@ComponentScan without arguments tells Spring to scan the current package and all of its sub-packages.

The trick with Spring Boot is that many things happen implicitly. 
We use the @SpringBootApplication annotation, but it's just a combination of three annotations:
Using @ComponentScan in a Spring Boot Application.

@Configuration
@EnableAutoConfiguration
@ComponentScan
@ComponentScan With Arguments
@ComponentScan(basePackages = "com.baeldung.componentscan.springapp.animals")

spring.application.name=user-service
server.port=8888

1
2
3
4
5
6
spring:
  application:
    name: user

server:
  port: 8888






No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass