Live data from Hacker News

Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

news.ycombinator.com

221–230 of 336 posts

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#221
I've had good luck implementing this "git scraping" pattern: https://simonwillison.net/2020/Oct/9/git-scraping/

Might be more precise to call it "GitHub scraping" as you set up your script to run on a schedule on GitHub Actions CI and keep its state by committing into the git repo.

We have our scripts running on GH Actions end by hitting the Slack API to notify us with a message.

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#223

You should check out Modal! Does much more than just cronjobs, but super easy and cheap: https://modal.com/docs/guide/cron . They have an example with a simple web scraper as well: https://modal.com/docs/guide/web-scraper From their pricing example: > You schedule a job to run once an hour for 15 seconds. This job uses 50% of one CPU core and 256 MiB of memory. This job will cost $0.016/day for the CPU, and $0.001/da…

I can't get their site to load.

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#224

If you are comfortable using AWS , You could us AWS Batch (free) with Spot Fargate jobs with Cloudwatch cron as the trigger . You only pay for the vcpu hours your job consumes https://aws.amazon.com/fargate/pricing/ , it’s a set it up once and forget it model. You could use lambda if your runtime is expected to always be less than 15 minutes Batch fargate jobs documentation - https://docs.aws.amazon.com/batch/latest/…

AWS’s Chalice framework also offers a high-level way to declare these scheduled functions (amongst other things): https://aws.github.io/chalice/

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#225

Earlier quoted context omitted.

I exclusively use Lambda with Cloudwatch Rules for all the crons I write these days. It just works out of the box.

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.

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 cronjob in 2022?

#228
post #171

Earlier quoted context omitted.

Cheapest linode is $5/month. Not sure why you'd need one that is $20/month

And LowEndBox has a reasonable list of $1/month servers. And that's not as low as it goes either.

NAT VPS. Under $10/Year

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#229

Earlier quoted context omitted.

Overthinking it? Your solutions costs $240/year. There are solutions out there that would probably bring that under $20/year, and be more reliable than your VM that falls over when it's full of logs (at some indeterminate future date). 10x+ savings with greater reliability isn't "overthinking it", it's a greatly improved solution.

I charge my clients $550 an hour, so a $240 a year solution which takes 15 mins to set up is what I would choose over the time consuming alternatives offered.

I think you are just more used to creating a VM and running crons from there. The other alternatives aren't necessarily time consuming, you just aren't used to them

Re: Ask HN: What is the cheapest, easiest way to host a cronjob in 2022?

#230

https://www.abstracloud.com/jobs It is definitely the easiest way for Python code. Just paste your code and thats it Full disclosure: I made this product. We are a YC company

Basic plan is $35/m which is much higher than alternatives discussed in this thread, isn't it?
Post reply on HN