我已将eureka用作服务发现。如果所有内部服务都通过API网关互相调用,那么我将无法再使用功能区支持的RestTemplate或伪装客户端。
是否有必要或某些选择?
答案 0 :(得分:0)
No. Zuul is a gatekeeper. You need it to pass requests from the UI. Internal communication should not pass through a gateway.
Just for reference:
https://medium.com/microservices-in-practice/service-mesh-vs-api-gateway-a6d814b9bf56
You can also find more info in Ken Finnigan's book "Enterprise java microservices" (https://www.manning.com/books/enterprise-java-microservices)