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

profile picture
Arjun
posta 10 mesi fa345 visualizzazioni
2 Risposte
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

profile pictureAWS
ESPERTO
con risposta 10 mesi fa
profile pictureAWS
ESPERTO
iBehr
verificato 10 mesi fa
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.

profile picture
Arjun
con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande