Why I Run Temporal on an £8 Hetzner Server Instead of Relying on Cron Jobs

https://hackernoon.imgix.net/images/2jqChkrv03exBUgkLrDzIbfM99q2-pr0222e.jpeg

There's a point in every indie product where you have jobs that need to run reliably: publish a post, send a notification, retry a failed API call. The standard answer is a cron job or a queue. Both work until they don't.

I run Temporal on the same £8 Hetzner server as everything else. Here's why, and what it actually buys.

What cron jobs can't do

Cron jobs run on a schedule. If the job crashes halfway through, cron has no idea. The next run starts fresh with no knowledge of what happened before. If the server restarts during the job, the work is lost.

For Spellcast's publish pipeline, that's a real problem. Publishing a post to five platforms involves five separate API calls. If the server restarts after the third call, a naive cron implementation either re-publishes to all five (duplicates) or skips the remaining two (silent failure).

Queues...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE