Skip to content

To run a service as a background service

0

Hi AWS, I am working on an application whose background is deployed on Amazon EC2 instance. Now I need to have a background service that will run on a separate instance. This instance must have a port exposed for HTTP connections. Also this instance must be able to run Puppeteer(https://pptr.dev/) for report generation.

Please suggest how can I do that in reliable and cost effective manner with least operational overhead. Also I want to know which AWS service is the best choice for this use case.

  • Hi would you like to run this service on EC2 instance directly or on a Docker Container for example? I'm asking because you tagged Containers on your question

2 Answers
1

Hi, to be cost-effective with least effort, ECS/Fargate will be you best choice:. It will take care of upscaling/downscaling, HA, etc. If you ho with classical EC2, which is non-managed, you will have to take care of it by yourself, which significantly adds to the costs.

To run Puppeteer in ECS/Fargate, see https://medium.com/innomizetech/building-serverless-web-crawler-with-puppeteer-on-aws-fargate-1202c8a66ec4

Hope it helps!

Didier

EXPERT
answered 3 years ago
AWS
EXPERT
reviewed 3 years ago
0

Hi @Simone Tallevi that's what I am not able to identify with which to proceed with or is there any better option apart from EC2 and ECS as I have to use Redis as data store in this case. I just tagged ECS as I have used this service in one such use case before so it was just the instinct which made me tagged the service name while asking this question.

answered 3 years ago

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.