I have a few compute engine instances in a Google Cloud Platform project. One is my API "api-inst" and is inside a backend-service: api-service One is my db 2db-inst" and is inside a backend-service: db-service

They are both callable through the load balancer. Sometimes the API needs to call the DB.

I would like these calls to be dealt with internally for performance purpose. But I might have several db instances inside my db-service, therefore I cannot make the call through the internal IP

Therefore I wonder if there is a way to make my call directly to the backend service?


Making the request directly to backend service is not possible. Instead you might want to include an internal Load Balancer in your architecture.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.