Does Amazon Fargate have a CPU-only-during-requests allocation like Google Cloud Run?

0

How i think it works is 1. request comes 2. Request is handled for about 15 seconds 3. response sent back 4. some time passes without requests (maybe 15 minutes?) 5. scale to 0 stops the container.

Am i billed for step 4. ? Is this the way Fargate works?

Here is the link describing CPU-only-during-requests allocation: https://cloud.google.com/run/pricing#billable-time.

1 Answer
1
Accepted Answer

Fargate currently doesn't have a feature like that; but I'd suggest that if you need it then Lambda would be a better way as it already does that without step (4) - once the request is processed the function is suspended and there is no further cost because it is no longer running.

profile pictureAWS
EXPERT
answered a year ago
  • Thanks very much for the answer! One more thing - I didn't know Lambda could deploy containers - i thought it was just an exact equivalent to Google Cloud Functions! Now i understand that Fargate is like Cloud Run with CPU-always allocated and with minimum instances. And Lambda is really both the Cloud Functions and the Cloud Run CPU-only-during-requests allocation equivalent.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions