1
5 Comments

Hosting rec for batch job

Novice here -

I need to run a simple script once a day.

What do you recommend to host and schedule this script?

  1. 2

    I always prefer AWS. I'd use Cloudwatch event to set up a cron to trigger LAMBDA function. This solution auto scales as it's completely serverless.

    If your script needs to run for more than 15 minutes however then you can't use LAMBDA and in that case, I'd recommend using BATCH job on AWS with Fargate. That's what I do and has been working great. We run our nightly backup tasks as well as few one off scripts this way without any issue.

    1. 1

      Thanks @sam26880. Ending up going this route.. CloudWatch + Lambda. Appreciate the tip!

      1. 1

        Glad to hear I was able to help :) Hope it's working out well for you.

  2. 1

    It really depends on what you need to do.

    I've used both AWS and Azure for this. I assume GCP and others have something similar. But none of those will work unless the activity is accessible to a process running in the cloud.

    1. 1

      Thanks @whipdancer! Went with AWS. Appreciate the tip!

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 49 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 28 comments My Top 20 Free Tools That I Use Everyday as an Indie Hacker 15 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments