logoalt Hacker News

PGLite Evangelism

49 pointsby surprisetalklast Thursday at 1:53 PM6 commentsview on HN

Comments

trelliumDtoday at 5:53 AM

if you look merely for a replacement of SQLite i can higly recommend Firebird Embedded. it is faster, has better concurrency and has very low memory footprint

memsettoday at 4:16 AM

Is there a feasible way to run this in a different language? (Go, in my case?)

yatherntoday at 12:45 AM

I used PGLite for a project (monkeys.zip) and it was absolutely fantastic! Loved how speedily I could have a "real" postgres instance without spinning up docker. Worked really really well with pnpm workspaces and a monorepo setup (EG pnpm run will run the DB package, as well as frontend and backend).

The only downside (and this applies for SQLite as well) is that it runs too well that you can get some bad habits - or at least follow patterns that don't support horizontal scaling which you would want to do in production. A number of problems across different projects have bit me because I relied too long on SQLite (or PGLite) when moving from local dev to setting up cloud infra. This includes things like connection pooling, read replicas, consistency issues with sharding. Maybe all those people who productionize *Lite have a point!

lateforworktoday at 1:59 AM

Also checkout https://www.doltgres.com/

adsharmatoday at 1:58 AM

Pgembed is pglite for native code.

show 1 reply