[flagged]
How to use Postgres for everything
51–60 of 181 posts
Re: How to use Postgres for everything
#52If anyone has seen a steams implementation in Postgres please let me know. Not just pub/sub, but full implementation of streams with consumer groups would be very interesting to me. Second best, how would you implement this in Postgres? I’m tempted to give it a go but I haven’t a fully-baked plan yet.
Re: How to use Postgres for everything
#53Re: How to use Postgres for everything
#54Re: How to use Postgres for everything
#55Re: How to use Postgres for everything
#56LISTEN/NOTIFY type functionality was sort of missing but otherwise it was surprising how it is keeping up also, while little of that is probably being used by many legacy apps.
Re: How to use Postgres for everything
#57Just don't use a single Postgres DB for everything as you scale up to 100+ engineers. You'll inevitably get database-as-the-API. Now if you have the actual technical leadership [1] to scale your systems by drawing logical and physical boundaries so that each unit has its own Postgres? Yeah Postgres for everything is solid. [1] Surprisingly rare I've found. Lots of "successful" CTOs who don't do this hard part.
Drop the scare quotes from "successful". These guys shipped products. The migration to multiple databases, syncing user information etc. is a milestone, not a necessity at every step.
As I see it the only way to look at scaling issues is that you’ve made it. Almost no user facing software will ever reach a point where something like Django couldn’t run it perfectly fine. It’s when you do, you build solutions, which sometimes means forking and beating the hell out of Django (Instagram), sometimes going into Java or whatever, spreading out to multiple data bases and so on. Of course once you actually hit the scaling issues you’ll also have enough engineers to actually do it.
Re: How to use Postgres for everything
#58Earlier quoted context omitted.
What do you mean local first? Postgres is an executable that you can run on your machine if you wish
I mean storing data in your https://localfirstweb.dev . Sqlite allows that so you can work fully in our client (browser/mobile) without internet potentially and then later sync (rqlite, pouchdb, etc for instance). If I get to do 'everything' with postgres, I need that too, so I was wondering if it exists.
https://www.powersync.com/ is a similar approach, but using sqlite on the client.
https://zero.rocicorp.dev/ also deserves a mention, but I believe it’s more of a read cache with writes going directly to the server. I’m not sure if it supports SQL client-side or has its own ORM.
Re: How to use Postgres for everything
#59"It's inspired by this article from the Amazing CTO [0]" Getting up in the morning, seeing an article that references you, bliss! [0]: https://www.amazingcto.com/postgres-for-everything/
pg fulltext search is very limited and user unfriendly, not a great suggestion here