aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
2019-05-02T00:58:34.007400Z

Step functions can wait till a certain time or until an amount of time elapses then call a lambda

2019-05-02T03:56:43.008100Z

will check out AWS step functions, thanks.

lloydshark 2019-05-02T07:22:28.009100Z

@wei AWS Lambda can be triggered by CloudWatch events (could easily add extra logic inside the lambda if needed).

lloydshark 2019-05-02T07:42:28.010Z

We used Lambda via CloudWatch for any time based triggering at my last work.

2019-05-02T07:43:34.010800Z

@lloydshark thanks, I'm concerned about the 100 rule limit on cloudwatch events though, seems better suited for recurring events. for my use case I'd need to schedule thousands of one-time events

valtteri 2019-05-02T07:46:04.011700Z

What is the timespan? I mean, how long time there’s between receiving the event and handling it?

valtteri 2019-05-02T07:46:14.011900Z

(in case it’s known)

valtteri 2019-05-02T07:46:58.012400Z

And how precise does the triggering need to be?

lloydshark 2019-05-02T07:47:58.013100Z

If it really suits you can ask for an increase in the 100 rule limit.

lloydshark 2019-05-02T07:48:41.014Z

But like @valtteri says - there might be other options depending on what you actually need to do.

2019-05-02T08:45:59.014200Z

could be weeks or months

2019-05-02T08:46:30.014400Z

I've applied so we'll see what they say, not sure if I'll be able to get an order of magnitude more though

lloydshark 2019-05-02T10:46:44.014700Z

Yeah I don't know what the hard limit is...

valtteri 2019-05-02T11:54:46.014900Z

In that case probably the simplest solution is to use Step Functions as hiredman mentioned. If the timespan was less than 30 days you could’ve abused SQS as well. DynamoDB TTL feature sounds like an interesting alternative though! Is the idea that you use delete events in the DDB Stream as triggers?

viesti 2019-05-02T13:41:14.017100Z

step functions have some limits too https://docs.aws.amazon.com/step-functions/latest/dg/limits.html

viesti 2019-05-02T13:42:04.018700Z

while googling around, ran into aws simple workflow, which has eerily ~similar limits https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html

viesti 2019-05-02T13:43:07.020400Z

don't know how the cost of quartz + ec2 compare to these, probably depends on the number of tasks to be scheduled