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.

preguntada hace un año264 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace un año
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas