DNS

Service Discovery DNS Extensions provided by Kitex.

How To Use

Some application runtime use DNS as service discovery, e.g. Kubernetes.

Example:

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)
	}
    ...
}

Last modified September 14, 2024 : doc: add kitex v0.11.0 release log (#1135) (796ca7c)