guanw / ct-dns

service discovery with support for different storage options + http/grpc protocols (WIP)
0 stars 0 forks source link

add ttl for storage #41

Closed guanw closed 4 years ago

guanw commented 4 years ago

initially I want record to expire with a ttl because we might have a separate service that does healthcheck polling and remove any invalid hosts.

etcd: https://godoc.org/github.com/coreos/etcd/clientv3#example-Lease--Grant

guanw commented 4 years ago

Update: with envoy integrated this might not be necessary.