Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微服务可以通过mesher访问外部http服务吗? #36

Closed
sundayslove opened this issue Jan 21, 2019 · 7 comments
Closed

微服务可以通过mesher访问外部http服务吗? #36

sundayslove opened this issue Jan 21, 2019 · 7 comments

Comments

@sundayslove
Copy link

mesher对接的微服务如何访问外部服务呢?

访问内部服务时,url中直接填服务名就行,mesher的负载均衡模块会将服务名映射为ip:port。

那如果是外部服务呢,如果url中填的是外部的域名(http://github.com/......),此时能通过mesher代理请求吗?

@tianxiaoliang
Copy link
Contributor

@sundayslove
Copy link
Author

简单看了一下代码,mesher貌似是优先给服务名匹配egress调用链,没匹配上再去匹配consumer调用链。

然后go-chassis中有提供相似的功能吗?看了一下,好像go-chassis中egress相关的功能还没有实现?

@tianxiaoliang
Copy link
Contributor

是的,go chassis并没有egress流量管理

@sundayslove
Copy link
Author

是的,go chassis并没有egress流量管理

那基于go-chassis开发的微服务目前有什么好的方法访问外部http服务吗?

@tianxiaoliang
Copy link
Contributor

@sundayslove
Copy link
Author

好的,谢谢解答

@tianxiaoliang
Copy link
Contributor

go chassis有另一种解法 service center中可以创建永久租约的实例,比如说你有搜索引擎等第三方服务需要调用就可以纳入go chashis的治理和监控了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants