Edge functions are my ops team
Sentinel is an eleven-tool pipeline serving real investigators, and its entire operations department is me, before breakfast, on my phone. That's only possible because I made one architectural bet early: no servers. Ever. Anywhere.
At Google I sat next to SRE teams whose job was keeping things alive at planetary scale, and I absorbed their core lesson without noticing: the machine you own is the machine that owns you. As a solo developer the lesson compounds brutally. Every server is a pager, and there's exactly one person on my rotation, and he'd like to go diving on Saturdays.
What the shape looks like
Everything in Sentinel is a Supabase Edge Function triggered by either a cron schedule or a database change. The Telegram poller wakes every few minutes, diffs channels against what's been seen, and writes new posts to Postgres. That insert wakes the translation function. Its write wakes scoring. Scoring's write wakes dossier cross-referencing. Nothing talks to anything directly — the database is the message bus, and each function is small enough to fit in one AI-assisted rewrite, which is my new unit of maintainability.
This shape has three properties that matter enormously at team-size one:
- Every step is resumable. Because state lives in the database rather than in a running process, a crashed function costs nothing — the next tick picks up where the row says to. I have never once "restored service." Service restores itself.
- Every step is inspectable. Debugging means reading rows, not attaching to processes. When an investigator reports a weird score, I query the pipeline's history like any other data.
- Every step is replaceable. Functions that only communicate through tables can be rewritten in isolation. I've replaced the scorer three times; the poller never noticed.
Every server is a pager. There is one name on my rotation.
Where it bites
Honesty section. Cold starts are real, and for the interactive paths I keep functions warm with a heartbeat ping, which feels like paying rent to avoid a bigger rent. Execution time limits force anything long — bulk re-scoring, historical backfills — to be written as resumable batches with a cursor in the database, which is more design work up front. And local development of trigger-driven flows is still clunky; my honest workflow is a staging project that mirrors production, because emulating the cascade locally lies to you in small ways.
The deeper limitation: this architecture assumes your load is bursty and your latency tolerance is human-scale. Sentinel triages ads in minutes, not milliseconds, so it fits perfectly. If I were serving real-time queries at volume, the maths would change. Architecture is always a fit to the problem — mine just also has to fit inside one person's attention.
The number that matters
My total ops time last month, measured honestly: about forty minutes, most of it reading logs out of curiosity rather than necessity. That's the entire point. Those forty minutes are the difference between "solo developer with a production system" and "solo developer slowly becoming a sysadmin for his own past decisions." Guard them like the scarce resource they are.