Live data from Hacker News

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

news.ycombinator.com

71–80 of 336 posts

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

#71
post #23

Earlier quoted context omitted.

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.

You really don't need docker for this.

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

#72
post #23

Earlier quoted context omitted.

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.

You can use the "browserless" docker service which contains a headless chrome browser in a docker container. It also supports puppeteer and playwright connect api. Works flawless! I use it in combination with n8n. All on a raspberry pi4b (yes, I got one recently)

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

#74
post #22

All free: * free-tier vps on GCP or Oracle Cloud * lambda job on AWS I have a cheap VPS I use for other things and just run my cron jobs there.

The free tier on Oracle Cloud is nuts. 200GB block storage, 10gb object storage, 24GB RAM 4 core ARM VM, 2 x86 VM's 1GB RAM each. From my experience, it's also really hard to get charged since you have to upgrade your account from a free tier. I haven't been charged one cent in several years.

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

#77

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

A use case I've needed cloud services for is web scraping. Sites which IP ban web scrapers will still allow scraping from major cloud provider IP space.

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

#79
post #26
post #12

Github actions FTW! > https://docs.github.com/en/actions/using-workflows/events-th... I remember seeing a couple projects shared before, using this technique to scrape sites with GHA

AFAIK, scheduled GitHub workflows stop running after a while. But when that happens, GitHub will send you an email with a big green “Continue running workflow” button.

[deleted]

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

#80
post #26
post #12

Github actions FTW! > https://docs.github.com/en/actions/using-workflows/events-th... I remember seeing a couple projects shared before, using this technique to scrape sites with GHA

AFAIK, scheduled GitHub workflows stop running after a while. But when that happens, GitHub will send you an email with a big green “Continue running workflow” button.

I wonder if I can make a Github repo with an action that commits to another repo on a cron. Or itself?
Post reply on HN