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
preguntada hace 10 meses345 visualizaciones
2 Respuestas
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
EXPERTO
respondido hace 10 meses
profile pictureAWS
EXPERTO
iBehr
revisado hace 10 meses
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
respondido hace 10 meses

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