Alternatives to Cron Jobs Print

  • cronjobsscheduledtasks, cron, webhosting, wordpress, firewall, guide, howto, solution
  • 0

Other ways to schedule work.

EXTERNAL CRON SERVICES

Services that request a URL on a schedule.

Useful where you cannot set a server cron job, and dependent on an external provider.

They are also subject to web server timeouts.

APPLICATION SCHEDULERS

Many applications provide their own, triggered by a single cron job.

That is generally the right pattern: one job, the application decides what runs.

QUEUE WORKERS

Some applications expect a persistent process.

Shared hosting generally does not support that.

A frequent cron job is the usual alternative.

EVENT-DRIVEN ALTERNATIVES

Instead of polling on a schedule, some tasks can be triggered by the event itself.

A webhook when an order is placed, rather than a job checking for new orders.

Frequently better where available.

WHAT NOT TO USE

Visitor-triggered scheduling, which is what WordPress does by default and is blocked here.

WHEN TO ASK US

If an application needs something shared hosting does not provide.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot