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 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há um ano
  • 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.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas