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
I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Promptzone - first-of-its-kind social media platform dedicated to all things AI. 8 comments How to create a rating system with Tailwind CSS and Alpinejs 7 comments