Service Discovery

Currently, only one service discovery extension is open-sourced: DNS Resolver.

DNS Resolver is suitable for the clusters where DNS is used as a service discovery, commonly used for Kubernetes clusters.

Extended repository: Extended Repository

Usage

import (

    ...
    dns "github.com/kitex-contrib/resolver-dns"
    "github.com/cloudwego/kitex/client"
    ...

)

func main() {
    ...
    client, err := echo.NewClient("echo", client.WithResolver(dns.NewDNSResolver()))
	if err != nil {
		log.Fatal(err)
	}
    ...
}