Trying to wrap my head around the best practices when it comes to having multiple cloud run services talking to each other.
Say that I have public-service
that is a HTTP API that is unauthenticated and fully available to the internet. There's also a service called private-service
that is running in the same region/project.
public-service
has an end point GET /hello
that does a request to private-service
when triggered. This request will be done using a regular HTTP client server to server.
If I configure private-service
to be publically accessible the above communication works fine. But I'm wondering if the request would be done inside the same network or will it be counted as egress/ingress?
Would it be better to set up a VPC and configure the private-service
to only accept internal connections? I currently have no need to talk with other services apart from other cloud run services.