Home > Back-end >  Spring cloud services, between different service calls
Spring cloud services, between different service calls

Time:11-30

SpringCloud micro service:
A service call their service, whether you need this time of the consumers and producers,

Such as: I am configured with A gateway, the gateway to specify A directory into A service, A service does not call other services, this time
Whether from the gateway into the associated producers without @ FeignClient remote found call this step,

If so if I build A service deployed A 2 application, does it still exist distributed load balancing

CodePudding user response:

Springcloud, for example, between the service call depends on eureka (registry), the service will be your registered to eureka (contain your application name, address),
Both remote and local, without judgment, service calls between available through fegin calls, just need to know the name of the called service line,
As you go to the supermarket directly (had) for the boss said give me a bottle of water, you don't know where need water, but the boss know it on

CodePudding user response:

1. The gateway if you use spring cloud provided by himself, the gateway also need to register to the registry, which is equivalent to A gateway is the consumer, the service is A producer, spring at this time you configure the gateway load balancing will certainly is distributed,
2. The gateway if you use the own development, the load balancing is not you to decide
  • Related