Support for Microservice communication without service discovery #2746
-
Hi, I am using go-micro library for inter service communication with Eureka as the service discovery right now, but I planning to move to a different architecture where we use Kubernetes services which has internal routes for within the namespace communication. msvc := micro.NewService( service.Client = Proto.NewService( Any help here would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The easiest way is probably to use the DNS selector in the plugins repo. The idea being that rather than using the registry it will just lookup DNS at the time of the request and since kubernetes has kube DNS and a DNS record per service it should work just fine. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/micro/plugins/blob/main/v5/selector/dns/dns.go Import path "github.com/micro/plugins//v5/selector/dns" |
Beta Was this translation helpful? Give feedback.
The easiest way is probably to use the DNS selector in the plugins repo. The idea being that rather than using the registry it will just lookup DNS at the time of the request and since kubernetes has kube DNS and a DNS record per service it should work just fine.