简体   繁体   English

我应该使用哪种服务在 AWS 上运行计划任务?

[英]Which service should I use to run scheduled task on AWS?

I have a apache beam program on python.我在 python 上有一个apache beam程序。 To save running cost I would like to executed this python using service instead of on EC2 instance.为了节省运行成本,我想使用服务而不是 EC2 实例来执行这个 python。

The script lasts from 50s to over 60min .脚本从50s持续到超过60min

If this is GCP I think google app engine .如果这是 GCP,我认为是google app engine However, on AWS, I am not sure whether I should use AWS beanstalk or AWS batch .但是,在 AWS 上,我不确定我应该使用AWS beanstalk还是AWS batch Generally, which service is best to run long running script on AWS?通常,哪种服务最适合在 AWS 上运行长时间运行的脚本?

Thanks, Yu谢谢,于

AWS Batch is recommended for batch processing at any scale, However AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications.建议将 AWS Batch 用于任何规模的批处理,但是 AWS Elastic Beanstalk 是一种易于使用的服务,用于部署和扩展 web 应用程序。

Also there is no additional charge for both the services AWS batch & AWS Elastic Beanstalk.此外,AWS batch 和 AWS Elastic Beanstalk 服务均不收取额外费用。 You pay for AWS resources (eg EC2 instances or AWS Lambda functions) you create to store and run your application.您为存储和运行应用程序而创建的 AWS 资源(例如 EC2 实例或 AWS Lambda 函数)付费。

In your case Apache Beam is used which is an unified model and set of language-specific SDKs for defining and executing data processing workflows/pipelines which fall under category of batch processing .在您的情况下,使用 Apache Beam,它是一个统一的 model 和一组特定于语言的 SDK,用于定义和执行属于批处理类别的数据处理工作流/管道。

References:参考:

https://aws.amazon.com/batch/?nc=sn&loc=0 https://aws.amazon.com/batch/?nc=sn&loc=0

https://aws.amazon.com/elasticbeanstalk/ https://aws.amazon.com/elasticbeanstalk/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM