Live data from Hacker News

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

news.ycombinator.com

51–60 of 336 posts

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

#53
post #23

Raspberry Pi at home if you don't have a home server already. Or some low spec cheap vps.

Yes yes yes. I came to post the exact same thing then saw this =)

Eh.

I tried to do Chromium/Puppeteer based scraping this way.

Building a Dockerfile took ages due to the low compute. (Rust was a non-starter).

I also had (foolishly) only bought the Pi with 2GB instead of 8GB so RAM was an issue.

Disk was super slow.

I'm not sure how viable this is, especially with how hard it is currently to source a Pi, let alone its computation/memory constraints.

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

#56

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…

Ooh and apparently everyone gets $30/mo of credits as a baseline, so this is within the free tier (if you don't want to pay 50 cents per month...)
Post reply on HN