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回答
1
承認された回答

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
エキスパート
回答済み 1年前
  • 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ