
vedant
on July 10, 2025
4 min read
so i gave a talk at work about convex, a tool for the database side of an app, and this is that talk in plain words. a database is just where an app keeps its data, like your orders or your messages.
we had a bug where a page didn't refresh, so someone could keep clicking around on an old version of it, and the numbers they saw weren't real anymore. with convex the page stays hooked up to the data, so when something changes your screen changes too, no refresh. google docs and figma work like that. you can build it yourself, but then every new screen is another place to forget it.
right now, when we change how our data's laid out, it goes through a queue. you finish the feature, wait on the coworker who runs database changes, wait for the build, and only then can someone look at it. that can take a few hours, and putting it live means doing the whole loop again. with convex the change just applies and it's ready to look at, and putting it live is one command.
we use supabase. it doesn't keep pages live the same way, and database changes all sit on one person, which is fine until you want five test versions in a day. we'd also seen supabase's ai connector leak live data to the public, so we were already nervous about what we had.
convex is new, so how it holds up long term is a real question. we also didn't have an answer on security compliance, which is the rules a company has to meet to keep data safe. i didn't pretend i'd sorted either of those in the room.
convex puts its docs in a shape ai coding tools can actually read, plus a guide full of examples, so the ai stops making stuff up. that's a bonus though. the real reason is simpler software, and pages that show what's actually true right now.
so I gave a talk at work about Convex, and this is that talk written out. it's not a recap of the docs, it's the bits I actually stood up in front of people and argued for.
the short version is Convex is a backend where your queries stay live. you change a row and the page updates, no refresh, and no cache invalidation you had to remember to wire up. that's the main sell, and the schema and deploy stuff kinda falls out of it.
we had a bug on a work project where a page didn't refresh, so a user could keep clicking around on an outdated version of it. the code fix was a useEffect. but the real fix is the page should've been subscribed to the data in the first place. that's how trading UIs work, and Google Docs, and Figma.
you can do that without Convex. you just write the websocket and the invalidation yourself, and then you miss a spot and someone submits on stale state.
a couple of other work projects have the same shape. numbers on screen that should match what's in the db right now, and if they don't, someone's looking at a figure that isn't real. Convex gives you that subscription out of the box. without it every new screen is one more place to forget to revalidate.
so the path we've got today goes like this. you change the schema and that has to land on a preview. then you ping the coworker who owns migrations and wait. then the migration runs, then you wait for the build, and then it's finally ready for review. that whole block, from "I finished the feature" to "someone can look at it", can be a few hours. and if you want it in prod you do the same loop again.
Convex is the other diagram. you change the schema, it applies, it's ready for review, and prod is one command. nothing blocking in the middle. the schema's just TypeScript, so adding a field is literally adding a field. you're not generating a migration file and then waiting on someone else to run it.
preview deploys help the same way. the change is isolated, so you're not poking staging to see if your column landed. you push, wait for the preview, and that's your check.
we're on Supabase. it doesn't give you live queries the same way, and migrations are manual, so they all sit on one person. which is fine until you want five previews in a day.
we also looked at MCP, and that slide was one line, Supabase MCP leaking live data to public. I'm not gonna dress that up. if your agent connector's pointed at prod, prod is what it can see. you'd still have to aim Convex's version carefully too. the difference is we were already nervous about the one we've got.
the drawbacks I actually put on a slide were that it's new, so the longer term is a real question, and that we didn't have an answer on security compliance. I didn't close either of those in the room and I'm not gonna pretend I did.
this was the bonus, not the reason we want it. Convex was built for developers and hides a lot of the usual backend mess, and they ship docs an LLM can actually eat. /llms.txt is a page for exactly that, and convex_rules is a doc from their team that's full of examples of how to write the code. drop the docs and the rules into Cursor, pick Claude, and it stops inventing a REST API you don't have.
but yeah, we already made the stack simpler by going this way. the LLM stuff's useful, it's just not the pitch.
Sign in to join the conversation