D
D
duoman2018-12-24 22:40:35
Spring
duoman, 2018-12-24 22:40:35

Spring cloud how to organize it correctly?

Good afternoon! I read the spring book in the cloud and there were several questions about the architecture:
Let's say there are 4 types of microservices. I want to put each microservice in the balance (2 pieces each) through the ribbon. For a single entry point, I will use zuul gateway. Well, it's over Eereka. And then I have a question... the books describe some border service on which ribbon is configured and feign is described for access to microservices. Indeed, for each type of microservices, you need to implement your own feign client as a separate service, or zuul can run it all. I ask for help in the correct implementation, also advise what to read about the correct architecture on the spring cloud. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alek_sys, 2018-12-26
@alek_sys

Not sure about Zuul, but Spring Cloud Gateway (Zuul alternative from the Spring team) can use LoadBalancerClientFilter - specify upstream service uri as lb://<service name in Eureka> and automatically get client side load balancing.
Update: Apparently Zuul can also do this without any problems https://www.baeldung.com/zuul-load-balancing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question