r/node • u/Minimum-Ad7352 • Feb 27 '26
Postgres for everything, how accurate is this picture in your opinion?
For those interested Image from the book "Just use postgres"
267
Upvotes
r/node • u/Minimum-Ad7352 • Feb 27 '26
For those interested Image from the book "Just use postgres"
3
u/jasterrr Feb 28 '26
I have a pleasure of using both DynamoDB and horizontally sharded Postgres (via Citus extension) in a professional environment, and at scale. DynamoDB has extremely narrow use cases and for that reason I can't recommend it to most projects. Especially to very dynamic projects that evolve very fast and can easily go into many directions. To be more precise, with DynamoDB you lose so many things that other databases offer, which usually forces you to have much more complex infra as a result. E.g. if your app has any kind of search, filtering, customizable reports, etc. you will have to reach out for search DB (ElasticSearch), OLAP DB (e.g. Clickhouse or anything that supports columnar storage) and often a regular relational DB for proper transaction support. All of this requires some kind of sync/ETL process between all these databases in stack.
Postgres ecosystem has an answer for dynamo and that's horizontally sharded cluster (tbf you mentioned). But it's not hard to have that as there are managed services that offer that (e.g. Citus-based service on Azure called CosmosDB for Postgres, and a new one called PG Elastic Cluster). There are more coming soon such as PlanetScale's Neki, a Vitess for Postgres. And Supabase is working on their own tech for this called MultiGress; the lead is one of the Planetscale cofounders. CrunchyData also offers this for a couple of years now.
DynamoDB had a much stronger selling point 10 years ago, but not today. Not anymore.
As for other aspects of this infographic, I know for a fact that some of the solutions (e.g. BM25 based extensions for FTS) or caching (via UNLOGGED tables) are not mature enough for a scale of their main competitors. But things are moving fast and we're going to that direction. Each year more and more projects are becoming eligible to fit into Postgres for everything model.