News for hackers. Stuff that matters.
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by giaour on Monday December 19, 2022 @04:42PM (#34058164)
AWS Lambda and Azure Functions both support timer triggers and probably round down to $0/ month if your job only runs for a few seconds an hour
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by shadeslayer_ on Monday December 19, 2022 @04:49PM (#34058249)
I exclusively use Lambda with Cloudwatch Rules for all the crons I write these days. It just works out of the box.
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by rjbwork on Monday December 19, 2022 @06:01PM (#34059055)
You should check out EventBridge Scheduler. Just released last month and seems like the go-to solution for such things going forward. I especially like the "run once at this time in the future" feature.
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by holler on Tuesday December 20, 2022 @01:23AM (#34062310)
Is that the same event source that's been available to the aws::serverless::function transform for awhile now?
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by mcintyre1994 on Tuesday December 20, 2022 @02:18AM (#34062664)
That’s neat! I remember hacking that together at an old job using step functions with a “pause until Timestamp” step.
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by rblatz on Monday December 19, 2022 @06:02PM (#34059067)
Yeah, this is exactly where my mind went too. I think it’s a great example of not jumping to technical solutions too fast. The poster was so locked in on specifically cron as a solution that they forgot what they really want is code or jobs to run on a schedule and then missed alternate solutions.
Re:Ask HN: What is the cheapest, easiest way to host a cronj... by lukewiwa on Monday December 19, 2022 @06:10PM (#34059160)
Yep and with the CDK it's not only easy to spin up, it's super easy to connect services to it.

I wrote a notifier for when a local business has open appointments. A quick fetch every day and connected it to SNS seamlessly. Now I can easily add family members if they want the notifications and they can easily unsubscribe right from the email. All within the free tier.

Re:Ask HN: What is the cheapest, easiest way to host a cronj... by throwaway894345 on Monday December 19, 2022 @07:21PM (#34059821)
You get something like a million lambda executions per month in the free tier.