内部服务调用是否需要通过API网关(例如zuul)?

时间:2019-05-31 03:37:25

标签: microservices spring-cloud

我已将eureka用作服务发现。如果所有内部服务都通过API网关互相调用,那么我将无法再使用功能区支持的RestTemplate或伪装客户端。

是否有必要或某些选择?

1 个答案:

答案 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

enter image description here

You can also find more info in Ken Finnigan's book "Enterprise java microservices" (https://www.manning.com/books/enterprise-java-microservices)