卓:我可以用来在RDS上运行定期任务吗? [英] AWS: What can I use to run periodic tasks on RDS?

查看:99
本文介绍了卓:我可以用来在RDS上运行定期任务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在特定的RDS列中作为日期,我保留用户试用期结束时的信息。

In specific RDS column as a date, I keep the information when user's trials end.

我将每天检查数据库中的这些日期,以及何时减少这些日期。试用期还剩几天,我想发送电子邮件(带有SES)。

I'm going to check everyday these dates in database and when less the few days lefts to the end of trial, I want send an email message (with SES).

如何在AWS中运行定期任务以检查数据库?我知道我可以使用:

How can I run a periodic tasks in AWS to check database? I know that I can use:


  • Lambda

  • EC2(或Elastic Beanstalk)

还有其他我错过的解决方案吗?

Is there any other solution which I've missed?

推荐答案

运行支票需要多长时间?如果所用时间少于300秒,并且完全在Lambda的限制内( AWS Lambda限制),然后使用Lambda安排任务:使用Rate或Cron的计划表达式

How long does it take to run your check? If it takes less than 300 sec and is well within the limits of Lambda (AWS Lambda Limits), then schedule tasks with Lambda: Schedule Expressions Using Rate or Cron

否则,最好的选择是使用: AWS数据管道。定期计划和运行自定义脚本非常容易。它至少要收取一小时的实例费用。

Otherwise, the best option is to use: AWS Data Pipeline. Very easy to schedule and run your custom script periodically. It charges at least one hour of instance.

这篇关于卓:我可以用来在RDS上运行定期任务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆