AWS: what can I use to run periodic tasks in RDS?

In a specific column in the RDS, as the date, I save the information when the user trials end.

I am going to check these dates in the database on a daily basis, and when there are fewer days left until the end of the trial period, I want to send an email (with SES).

How do I run periodic tasks in AWS to check the database? I know I can use:

  • Lambda
  • EC2 (or elastic bobsleigh)

Is there any other solution I missed?

+3


source to share


3 answers


How long will the verification take? If it takes less than 300 seconds and is within Lambda ( AWMS Lambda Limits ) then schedule jobs with Lambda: Expression Schedule Using Rate or Cron



Otherwise, the best option would be to use: AWS Data Pipeline . It is very easy to schedule and run a custom script periodically. It charges for at least one hour.

+1


source


You can also use AWS Batch . This is better if the job is hard and takes longer to complete.



+2


source


Go with lamda here

You can create a Lambda function and direct AWS Lambda to run on a regular schedule. You can specify a fixed rate (for example, execute a lambda function every hour or 15 minutes), or you can specify a Cron expression.

+1


source







All Articles