quick-start-sample icon indicating copy to clipboard operation
quick-start-sample copied to clipboard

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

Open yb19890724 opened this issue 3 years ago • 1 comments

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 avatar Dec 22 '22 11:12 yb19890724

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

yedf2 avatar May 22 '23 13:05 yedf2