Hi all, I will describe a new way for sevice discovery. I hope the experts will point out where this scheme is feasible.
General speaking, the provider can be registry, service discovery in consumer can simple call provider method from k8s service just as meta service. How can a provider become registry? Provider can Interact with k8s, monitor endpoint changes. Doing so, the interaction with k8s moving from consumer to provider.The interact with k8s from application will be more stable. What happened when consumer call list provider method from k8s service? The k8s service represents for cluster of provider and it will be responsibility for loadbalance.
