quick-start-sample
quick-start-sample copied to clipboard
用consul做dtm的服务发现可以吗?
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
要看具体是什么样的微服务协议。目前go-zero,kratos都有consul的支持