The short answer
A small Cloudflare Worker runs every five minutes, outside our server. It calls each app's ready endpoint, runs a short real journey in each app with a test account (sign in, write, read back, delete), and checks that every nightly backup and restore drill has reported in. Two failures in a row send an alert, then a reminder every hour, then a note when it recovers.
On this page
The first uptime checks we had ran on the same server as the apps they watched. That’s the one place an uptime check can’t be. When the server goes down, the checker goes down with it and says nothing. Other checks ran as scheduled jobs on CI runners on a workstation, which wait for hours when that machine is off.
In November 2026 we replaced all of them with one small program on Cloudflare: a cron Worker that runs every five minutes, on infrastructure that shares nothing with ours. It watches Forkly, Mesito, Kommo and our other apps. This post covers the three kinds of check it runs and how it decides to alert.
1. Is it up? Health checks
Every app has a ready endpoint. “Ready” means the app answers and can reach its database, not just that the process is running. Mesito, for example, has a cheap health endpoint that doesn’t touch the database and a ready endpoint that does; the Worker calls the ready one.
Adding an app, or a new health URL, is one line in the Worker’s list and a deploy.
2. Does it work? Journeys
A health check says the app is up. It doesn’t say a user can do anything. So each app also gets a journey: a short, real sequence of actions, run every five minutes as a dedicated test account in production, with fake data, an account that is never published and sends no email.
- Forkly: create a menu category, see it in the menu, delete it.
- Mesito: create a webhook through the public API, read it back, delete it.
- Kommo: sign in as a private, never-published professional, save a language on the profile, read it back, clear it, sign out.
Each journey cleans up after itself, even when a step in the middle fails, and deletes leftovers from an interrupted earlier run before it starts. A journey that leaves test data behind would slowly fill a production database with junk.
Two details we had to get right:
- Terms updates mustn’t turn a probe red. When an app asks users to accept new terms, the Kommo journey accepts them like a user would, instead of failing.
- Login protection mustn’t fight the probe. Signing in every five minutes would look like the very pattern an app’s login protection is built to catch. So the Forkly journey uses a long-lived session for its test venue instead of signing in each run.
3. Did it run? Heartbeats
Some failures make no noise at all: a nightly backup whose timer was disabled, or a restore drill that stopped running after a change. Its own failure alert never fires, because it never ran.
So each backup and each restore drill calls the Worker when it succeeds. The Worker remembers the time of the last success, and if one hasn’t reported within its allowed window (a little over a day for nightly jobs), it alerts. Silence counts as a failure.
When does it alert?
- Two failures in a row before the first alert. With checks every five minutes, that’s five to ten minutes, which means the restart during a deploy never wakes anyone.
- A reminder every hour while it’s still failing.
- A “recovered” note when it passes again.
- The Worker stores its state in one key-value entry, written only when something changes.
Why one Worker for everything?
Before this, monitoring was spread across GitHub scheduled jobs, timers on the server and per-app scripts, and some timers we thought existed had never been installed. One small program, with every check listed in one place, is easy to read and hard to forget to set up. It also costs almost nothing to run.
The short version
- Run uptime checks somewhere that shares nothing with what they watch.
- Check “ready”, not just “running”.
- Run a real journey with a test account, and make it clean up after itself.
- Have scheduled jobs report success, and alert on silence.
- Alert on the second failure, not the first.