Fork me on GitHub
#aws
<
2017-12-01
>
stvnmllr216:12:32

What's the easiest way to run a nightly job on aws? I have a clojure webapp I'm running currently. But don't know enough about devops to know the best way. Would have run a spring chron service pre-cloud.

stvnmllr216:12:52

The job just sends out daily emails

richiardiandrea16:12:10

@stvnmllr2 there is a new cron-like trigger for lambda I think now

stvnmllr216:12:05

yeah. I saw that I think. But apparently lambda doesn't easily talk to RDS?

stvnmllr216:12:43

I did think of having the lambda job just call a url in my webapp that would then do the work. But seemed there had to be a better way.

richiardiandrea16:12:29

@stvnmllr2 no? I am using node-postgres pretty well. True no connection pool but...it works.. depending on what performance you want to get ..

stvnmllr216:12:44

Ok, I'll look down that road (though with java), performance is not a big deal in this case since it's a background thing. If anyone else has any non-lambda ideas, even if it's old school. let me know. thanks @richiardiandrea

valtteri17:12:00

Lambda is the easiest and cheapest way to run scheduled jobs on AWS. If lambda is not optimal to execute your job then you can use the lambda just to invoke some other service that can run your stuff (AWS Batch for instance).