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

配置问题 #17

Open
luzhu123 opened this issue Sep 1, 2017 · 3 comments
Open

配置问题 #17

luzhu123 opened this issue Sep 1, 2017 · 3 comments

Comments

@luzhu123
Copy link

luzhu123 commented Sep 1, 2017

你好!如果我的应用要实现网关的话,是不是可以直接接入saluki-gateway这一个模块就行,另外我的应用里里面需要如何配置才行

saluki:
grpc:
registryAddress: daily.quancheng-ec.com:8500
这个注册地址值得是什么意思,谢谢。

@linking12
Copy link
Owner

@luzhu123
saluki.grpc.registryAddress 是你的consul地址,grpc服务的注册中心

@luzhu123
Copy link
Author

luzhu123 commented Sep 1, 2017

我看配置里面有eureka,是不是我的应用服务注册到eureka, grpc服务注册在consul

@linking12
Copy link
Owner

eureka是针对rest的api进行转发,因为zuul原生是支持rest请求的,所以只要接入spring cloud的注册中心,zuul就能支持rest api的转发;
目前saluki的注册中心是consul,所以为了支持rest和grpc两种不同的方式,接了两个注册中心

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