# Running cron jobs in the cloud - Amazon EC2 vs AWS Lambda

DevFeed: [Running cron jobs in the cloud - Amazon EC2 vs AWS Lambda](<https://devfeed.tech/articles/running-cron-jobs-in-the-cloud-amazon-ec2-vs-aws-lambda-14096.md>)

Original publisher: [Read original article](<https://www.serverless.com/blog/aws-lambda-vs-ec2-for-cron-jobs>)

Author: Gareth McCumskey

Published: 2019-10-31T00:00:00Z

Content type: comparison

Language: en

Sources: [Serverless Blog](<https://devfeed.tech/sources/serverless-blog.md>)

Topics: [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>)

Tags: [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [article](<https://devfeed.tech/tags/article.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-computing](<https://devfeed.tech/tags/cloud-computing.md>), [compare](<https://devfeed.tech/tags/compare.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [faas](<https://devfeed.tech/tags/faas.md>), [function-as-a-service](<https://devfeed.tech/tags/function-as-a-service.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [insights](<https://devfeed.tech/tags/insights.md>), [lambda](<https://devfeed.tech/tags/lambda.md>), [running](<https://devfeed.tech/tags/running.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [serverless-architecture](<https://devfeed.tech/tags/serverless-architecture.md>), [serverless-framework](<https://devfeed.tech/tags/serverless-framework.md>), [vs](<https://devfeed.tech/tags/vs.md>)

## AI overview

This article compares Amazon EC2 and AWS Lambda for running cron jobs in AWS and provides guidance on choosing between them.

## Source excerpt

In this article, we compare Amazon EC2 and AWS Lambda for running cron jobs in AWS and offer guidance for when to choose which of the two.