Skip to content

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

Open
@yb19890724

Description

@yb19890724

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions