Build in public
A CVE feed fits on Neon's free tier, as long as the database gets to sleep
How FlawDB keeps a full CVE feed on Neon Free: hot and cold storage, no polling, and the 03:00 deadlock that kept the database awake.
Tina Mrakupdated 4 min read
On this page
FlawDB runs its database on Neon's free plan. That plan gives one project 1 GB of storage and 100 compute hours a month, and a CVE feed sounds like the wrong kind of app for it. New records arrive all day, the archive goes back decades, and there's a worker that never stops.
It fits anyway. Neon scales compute to zero when nothing is talking to it, and the 100 hours only count while it's awake. Storage turned out to be the easier half of the problem.
The hard half is making sure nothing keeps the database awake by accident.
Most of the archive doesn't belong in Postgres
The first rule I set was that historical CVEs never get bulk-loaded into Neon. Entries published on or after a cutoff date live in Postgres. Everything older is stored as JSON files, one per entry, in a private Bunny Storage zone. Full-text search covers the recent entries, and lookup by exact ID works across all of them, because an ID tells you exactly which file to fetch.
There is one exception. When CISA adds an old CVE to its Known Exploited Vulnerabilities catalog, the entry gets promoted: it's copied into Postgres, the database copy becomes the authoritative one, and the archive file is rewritten from it on the next sync. An old bug that's being exploited today is news again, so it gets treated like news.
There's also a size guard for later. If the database passes 750 MB, a job moves entries that haven't changed in a year, and weren't added to KEV recently, back into the archive. The JSON is written and verified before the row is deleted.
Anything that runs on a timer is a bill
Compute is where a free plan actually gets used up. Every query wakes Neon, and once it's awake it stays up for at least five minutes. A health check every minute, a polling job queue or a keep-alive query is enough to keep it running around the clock.
So the worker doesn't poll. Scheduled work runs at :00 and :30, plus a few fixed daily slots, and Postgres advisory locks make sure two copies of a job never run at once. There's no queue table to poll either. An email waiting to go out is a row in an outbox table, and the next scheduled run sends it.
The cost of that is freshness. New CVEs used to show up 50 to 90 minutes after other feeds had them, because CVE List publishes its hourly release files about 25 minutes after the hour they cover. Reading the repository's bot commits instead cut that to 30 minutes or less, with no extra wakes.
There's also an optional probe that asks GitHub every 10 or 15 minutes whether CVE List has a new commit. The probe itself never touches the database, but every time it finds something, it runs an ingest, and that wakes Neon. CVE List commits about every seven minutes, so at a 10-minute interval nearly every probe would fire and the database would be up most of the day: roughly 120 to 180 compute hours a month against a quota of 100. At 15 minutes it's about 48 extra wakes a day and around 70 to 80 hours, before anyone visits the site. It's off by default.
Half an hour is slow for a security feed. It's also what the free tier pays for.
The deadlock that kept Neon awake
On November 28 I found out how quietly "sleeps by default" can break.
Each job holds a reserved database connection for its advisory lock, then borrows more connections from the same pool for its run record and the actual work. The pool has three connections. At 03:00 UTC the ingest cycle, the Neon usage check and the archive sync all fired together. Each one reserved a connection, and each waited for one the others were holding.
Nothing crashed. The scheduler saw that the previous runs hadn't finished and skipped every later one, so production stopped ingesting after 02:31, while the idle sessions kept Neon awake the whole time. A frozen feed that also burns compute hours is the worst combination this setup can produce.
The fix sends every scheduled job through one queue that runs them one at a time. There's now a test that fires three jobs at once on a three-connection pool, and without the queue it times out.
What the free tier actually costs
The plan doesn't charge money, but it charges engineering time. Every design decision has to answer "does this wake the database?", and the answer shapes things users see: how fast a new CVE appears, which entries search can find, why there's no live-updating dashboard.
For a feed that mostly gets read, the trade works. I'd rather have a CVE show up 30 minutes late than run out of compute hours in the third week of the month.
Numbers in this post come from FlawDB's own decision log and Neon's published Free plan limits. CVE data on the site is merged from CVE List, NVD, GHSA, OSV, CISA KEV and EPSS, among others; see About for the full source list and licenses.
Get alerts for the technologies you run
Pick your stack and get an email when a vulnerability hits it: a free weekly digest, or daily and instant alerts on Pro.
Get alertsMore from the blog
Thoughts3 min read
Patch what's being exploited first, then worry about the 9.8s
CVSS scores how bad a bug could be. CISA KEV and EPSS say whether anyone is using it. Why the second question should decide what you patch first.
Monthly roundup2 min read
Edge devices and old bugs still outrank a quiet KEV month
CISA added 36 vulnerabilities to KEV in October 2026. What stood out, with the numbers.