---
title: Building Vex on Cloudflare Workers
date: 2026-06-25
---
# Building Vex on Cloudflare Workers
Vex is a security monitoring platform — subdomain takeover detection, uptime monitoring, and webhook relay. It runs entirely on Cloudflare Workers and costs about $5/month to operate.
## The stack
- **Workers** for all backend logic (auth, scanning, monitoring, webhooks)
- **D1** for relational data (users, domains, monitors, events)
- **KV** for caching and rate limiting
- **R2** for webhook payload storage
- **SvelteKit** on Cloudflare Pages for the frontend
## Why Workers?
No servers to manage. Automatic scaling. Global edge deployment. The free tier covers most needs, and paid plans start at $5/month.
## The tradeoffs
Workers have a 30-second CPU limit per request. Long-running scans use cron triggers instead of HTTP requests. Durable Objects would help with stateful monitoring, but cron + D1 works well enough for now.
[← Back to blog](/blog)