drizzle or prisma for two devs on cloudflare workers, bundle budget is tight Drizzle
Two of us, new B2B app, Workers in front of Postgres. Neither of us has strong feelings, we both know Prisma from previous jobs and neither has shipped drizzle. Deciding now so we do not rewrite the data layer in three months. What actually differs in practice on Workers specifically?
@slowtrainjo · 5mo ago · 2 replies
Drizzle on Workers, and the reasons are boring rather than ideological.
drizzle-kitruns when you change the schema, not on every build.Prisma does run on Workers with driver adapters and people ship it. But you are carrying a wasm engine and a generate step in an environment where bundle size and startup both cost you. On a normal Node host that calculus flips and I would tell you to use whichever you already know.
Reply
Report
@pentalobe_junie · 5mo ago
The generate step was our actual pain, not the size. Fresh CI checkout, generate, cache miss, three minutes. Every branch. drizzle-kit only runs when the schema file changes, which is once a fortnight.
Reply
Report