How to do distributed cronjobs with worker queues?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cron

    a cron library for go

  • I had a similar design challenge recently and I haven’t worked it out completely yet. But I needed to dynamically create CronJob a based on a request and run each job in a go routine. I landed on https://github.com/robfig/cron which supports that behavior and removing jobs as well. I see this as being similar to your need since each scheduled cron entry via this library is sorta like having a queue with each having their own possible schedule. But I suppose it’s totally different from what you’re looking for. Curious to watch replies here.

  • gocron

    Easy and fluent Go cron scheduling. This is a fork from https://github.com/jasonlvhit/gocron

  • There is gocron which you would need to implement with a locking solution like in apscheduler perhaps with postgres or redis.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • BeanstalkD

    Beanstalk is a simple, fast work queue.

  • aurora

    Cross-platform beanstalkd queue server admin console. (by xuri)

  • proposals

    Temporal proposals (by temporalio)

  • Use Temporal open source project. It is much more than a cronjob service. But it supports managing periodic jobs natively.

  • Airflow

    Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

  • Airflow might also be a good option for you. Essentially DAGs of cronjobs. We like it a lot.

  • Dkron

    Dkron - Distributed, fault tolerant job scheduling system https://dkron.io

  • Works great. Hope this helps. (For easiness GH here).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts