Clever use of Cloud Run. I'd like it more if it had the ability to connect to VPCs, which as far as I know is still a feature in progress for Cloud Run. Could use a Cloud Function instead, since they can connect to VPCs, but then you can't serve it on a custom domain. Ah well, can't have it all I guess. :P
Yea, I've been following this issue to see when VPC support will land.
Cloud Functions is good workaround, I hadn't considered that! Having each request spin up a new nginx instance feels like a bit of overhead but workable. There might be a messy hybrid approach pointing Cloud Run -> Cloud Function using something lighter weight than a full nginx instance on Cloud Functions.
Cloud Functions would only spin up a new backing container if it needs to scale up. The first nginx instance would keep running until traffic warrants a second instance being spun up. Thanks for the issue link! I'll be watching that closely too.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Clever use of Cloud Run. I'd like it more if it had the ability to connect to VPCs, which as far as I know is still a feature in progress for Cloud Run. Could use a Cloud Function instead, since they can connect to VPCs, but then you can't serve it on a custom domain. Ah well, can't have it all I guess. :P
Yea, I've been following this issue to see when VPC support will land.
Cloud Functions is good workaround, I hadn't considered that! Having each request spin up a new nginx instance feels like a bit of overhead but workable. There might be a messy hybrid approach pointing Cloud Run -> Cloud Function using something lighter weight than a full nginx instance on Cloud Functions.
Cloud Functions would only spin up a new backing container if it needs to scale up. The first nginx instance would keep running until traffic warrants a second instance being spun up. Thanks for the issue link! I'll be watching that closely too.