In communication between front-end microservice and backend micro-service, which of the following is a better approach:
- define ClusterIp for backend service and define DNS name in that service and send HTTP request from the client microservice with that DNS name?
- send the request to the Ingress controller and it will know to which microservice to forward the request ?
CodePudding user response:
Both are possible. But obviously it's more convenient and secure to simply use svc name and keep traffic inside local network.
CodePudding user response:
I would take approach #2, several reasons, usage of certificates, load balancer, external dns name and not a "local" service name among other things.