David
David

Reputation: 85

Node Express REST hosted in Google Cloud Run

I am thinking of setting up Google Cloud Run to host Docker container services. If the existing service is a Node - Express REST service listening on a port, do I need to remove Express, so it isn't constantly running / listening and charged?

Upvotes: 2

Views: 389

Answers (2)

Steren
Steren

Reputation: 7909

If your existing service is an Express app, you are all set.

You will not be charged when you are not receiving any request.

Just package it in a container using a Dockerfile and you can deploy it to Cloud Run. Take a look at the Node.js sample in the quickstart

Upvotes: 0

Dustin Ingram
Dustin Ingram

Reputation: 21520

No, your container is only scaled up when it is receiving incoming requests. See "Cloud Run container instances" in the Cloud Run Resource model docs.

Upvotes: 2

Related Questions