How Merlonix Built a Monitoring SaaS on Cloudflare Workers and Supabase Near Zero Cost
Merlonix, a monitoring platform tracking uptime, SSL, DNS, and more, runs its entire infrastructure on eight Cloudflare Workers and a single Supabase Postgres database at minimal cost. The architecture uses Cloudflare Queues to schedule and distribute monitoring checks, with failures routed to a dead-letter queue for forensic logging rather than silent drops. A revenue-gated throttle automatically scales check frequency from every five minutes to every minute the moment a paying subscription is active, requiring no manual intervention or redeployment. The team identified a critical silent failure mode where a database error during a subscription check would quietly downgrade paying customers' monitoring cadence without triggering any alert. The bug was later fixed by preserving the safe fallback behavior while routing the error to Sentry and structured logs, ensuring sustained degradation triggers a page before customers notice.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in