In spring cloud, what should the load balancer do when accessing the interface of the front-end page?

when microservices call each other, ribbon does the client load balancing.
but if the front-end page accesses the micro-service, how can multiple micro-service instances do load balancing? Do you still use nginx or something?
if this is done, there is no point in invoking each other in microservices using client-side load balancers. It is better to use nginx instead. What"s more, it goes against the original intention of deploying microservices independently.

Mar.06,2021

add @ LoadBalanced to the corresponding restTemplate entity to allow


micro services to have zuul gateways.

Menu