Urgent.News

What's breaking now, across thousands of outlets.

Editions

Tech

Running a Monitoring SaaS on Cloudflare Workers + Supabase for Almost Nothing

Originally published on the Merlonix blog . Merlonix monitors uptime, SSL/TLS, DNS, email authentication, blacklists, Certificate Transparency, Core Web Vitals, and MCP servers for agencies. A monitoring product has an unforgiving shape: it must run continuously , hit arbitrary customer-supplied hostnames , and stay up more reliably than the things it watches — while, in our case, keeping the…

Merlonix is a monitoring product that provides continuous uptime, SSL/TLS, DNS, email authentication, blacklists, Certificate Transparency, Core Web Vitals, and MCP server monitoring for agencies. To keep infrastructure costs low until revenue is generated, the system runs on eight Cloudflare Workers, including an HTTP API worker and seven background workers that handle scheduling, check-running, vendor-checking, vendor-fetching, dead-letter queue management, browser-checking, and database backup.

The frontend consists of two static Cloudflare Pages projects for marketing and the app, with dynamic content served through the API worker. Communication between components is facilitated by Cloudflare Queues, and state is managed using one Supabase Postgres database with forced row-level security for tenant data. The system employs a revenue-gated SLA throttle that only enforces full monitoring cadence when a paying customer is present, ensuring cost-effectiveness.

An issue was discovered where a database blip could silently throttle monitoring cadence, but this was fixed by tracking failures and notifying operators through Sentry and structured logs. To avoid relying solely on Cloudflare for monitoring, the system uses Supabase with pg_cron and the http extension for external watchdog monitoring, ensuring redundancy and no shared faults.

The monitoring system also includes SSRF protection by checking DNS resolution against a blocklist of private IP ranges and limiting response and request sizes to prevent stalls and memory ballooning.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The homoglyph trick against similarity checking is documented - as not working

Drop a Cyrillic о into the middle of a word and a string matcher stops seeing the word, while the page looks identical. It is the kind of thing you would write in ten lines and it is exactly the kind…

  • Homoglyph trick exploits similarity checking software
  • Cyrillic о inserted into word, fails recognition
  • Turnitin algorithms detect and correct substitutions

More from Friday 21 August →