apache / apache/rocketmq-client-go

add new kind of primitive.NsResolver

Open
#1,122 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
445
PR merge metrics
No merged PRs in 30d

Description

**FEATURE REQUEST**

When our team deploys the nameserver, the nameserver needs to use a domain name to access, so I need a resolver that can resolve DNS.

```
p, err := rocketmq.NewProducer(
producer.WithNsResolver(primitive.NewDNSResolver([]string{"ns1.example.com:9876"})),
producer.WithRetry(2),
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.