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
已提問 10 個月前檢視次數 345 次
2 個答案
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
專家
已回答 10 個月前
profile pictureAWS
專家
iBehr
已審閱 10 個月前
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
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南