Docker Container running in aws app runner or Ecs Fargate to pay per request??

0

Hello Everyone, I have created my docker image for my algorithm container. Now, I want to deploy this docker image where i have to pay per request. Is there any system available in aws that gives this service other than aws lambda. Initially i have deployed my docker container in Ecs Fargate but there i have to pay for the whole container running. That's why i have switched to aws app runner but there also i have to pay for Provisioned container instances 0.007 $/hr and for Active container instances $0.064 / vCPU-hour*, $0.007 / GB-hour*

Can you guys please help me with the perfect service and its configuration where i can deploy my docker container and pay for the request coming to that container service.

1 Answer
1
Accepted Answer

Hi

AWS App Runner and ECS Fargate with on-demand instances charge for the time the container instance is running, regardless of incoming requests.

Here is the reference to run How do I use container images with Lambda

Some More detailed information about the differences - https://mkdev.me/posts/processing-background-jobs-on-aws-lambda-vs-ecs-vs-ecs-fargate

Choosing the right service depends on your specific needs:

  • If your workload consists of short-lived tasks triggered by events, and fits within Lambda's limitations, then Lambda is the most cost-effective option.
  • If your workloads are longer-running and require more resources than Lambda allows, or if you can't tolerate interruptions, then ECS Fargate with Spot Instances is a better choice.
profile picture
EXPERT
GK
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
profile picture
EXPERT
A_J
reviewed 2 months ago
  • Hello GK, Thank you for your help, can i ask you is there any service available other than lambda that provides pay per request type architecture for container hosting

  • No, The possibilities are described in the answer

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