Home > Software design >  Internal communication between back-end and front-end pods - should it be from Ingress controller?
Internal communication between back-end and front-end pods - should it be from Ingress controller?

Time:09-14

In communication between front-end microservice and backend micro-service, which of the following is a better approach:

  1. define ClusterIp for backend service and define DNS name in that service and send HTTP request from the client microservice with that DNS name?
  2. 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.

  • Related