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

用consul做dtm的服务发现可以吗? #2

Open
yb19890724 opened this issue Dec 22, 2022 · 1 comment
Open

用consul做dtm的服务发现可以吗? #2

yb19890724 opened this issue Dec 22, 2022 · 1 comment

Comments

@yb19890724
Copy link

yb19890724 commented Dec 22, 2022

https://github.com/dtm-labs/quick-start-sample/blob/main/dtmgrpc-qs/main.go#L19
当前这行代码可以替换成对应consul的注册地址吗?还是必须是注册到consul的地址

这里看到有大佬这样配置是可以直接通过etcd获取地址直接去call dtm server
https://github.com/nivin-studio/go-zero-mall/blob/dtm/service/order/api/internal/logic/createlogic.go#L44

我这块配置 consul中心的地址:这样可以支持服务发现吗? consul://locahost:8500/dtmservice

@yb19890724 yb19890724 changed the title 用户consul做dtm的服务发现可以吗? 用consul做dtm的服务发现可以吗? Dec 22, 2022
@yedf2
Copy link
Contributor

yedf2 commented May 22, 2023

要看具体是什么样的微服务协议。目前go-zero,kratos都有consul的支持

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