6/10/2026 at 5:12:52 PM
> The reason DBs like Mongo or Dynamo exist is because Postgres has a scaling problem.I've used Postgres at a few places and the #1 problem was always high availability, not scaling. One Postgres cluster could easily handle 100000 transactions per minute, but when a primary node went down it was a page and manually failing over to the spare then manually replacing the spare. The manual tooling was very finicky but at least it worked, no automated solution came even close. Lack of a good HA story is why I avoid self-managed Postgres as much as possible.
by eikenberry
6/10/2026 at 5:19:10 PM
Good thing we support HA as well: https://docs.pgdog.dev/features/load-balancer/Load balancer with health checks and failover, works out of the box. :) Battle-tested at this point too, so could be worth a look.
by levkk
6/10/2026 at 6:56:40 PM
I've extensively used Dynamo (internally at Amazon and externally) and even founded a DB startup with it at it's core. Boiling down scalability of Postgres vs Dynamo as it's written in blog is a bit terse. Dynamo scales writes horizontally with the keyspace, forever. Postgres simply can't, and no number of layers between the machines and the developer changes that. Sharding, pooling, Citus are all layered on top of an engine where a given row's writes still land on one primary.by r7n
6/11/2026 at 3:27:42 AM
Dynamo DB isn’t even good at being a KV store. Almost every time we have to also back it with S3 because of size limitations.by bofaGuy
6/11/2026 at 10:58:57 AM
If you know your access patterns really well and they are non-relational, then you can design the best possible tables for dyanmoDB. In such a case DynamoDB works and scales amazingly. Ofc, you cannot do multi table relationships etc shoehorning a relational scheme onto DynamoDB does not work.by ngc248
6/11/2026 at 7:03:53 AM
did you use single table design?and yeah you have to spend a lot of upfront time designing your data models
by moomoo11
6/10/2026 at 7:04:04 PM
Dynamo is a fundamentally different DB to Postgres. If your problem fits into the dynamo approach (I'd argue that more problems do), then you should be using it. No all problems fit, though.by zamalek
6/10/2026 at 7:12:18 PM
Agreed, my critique was about how the article frames scalability. I've yet to see an OLTP problem that can't live in something like Dynamo. KV can model anything if you put in the work, the question is how much modeling discipline you trade for the scale, and in my experience the up front work is always worth it. Most of the time operational issues are swept under the rug and not consider tech debt.Take for example AuroraDB: the sheer engineering it took to make SQL do scalable OLTP at all tells you how much that flexibility actually costs to keep.
by r7n
6/11/2026 at 12:50:37 PM
Upfront modeling work is always worth it, but that only holds if you actually know your access patterns upfront. Most teams don’t, especially early on.by ah27182
6/10/2026 at 7:10:42 PM
Curious how the DB startup with Dynamo at its core went. We use it heavily. The primary tricky thing for us at the moment is aligning pricing with workload value.by jsw
6/10/2026 at 7:22:27 PM
We obsessed over optimizations and pushing the apis to the limits of how we could pack it.So much so, we re-wrote the DynamoSDK to squeeze out more optimizations so we could be the same cost even though we were a layer in front of dynamo. We used key encoding and other various technique as well as managed capacity (on demand vs reserved) to transparently optimize workloads for price. In our experience we saw dramatic gains vs just vanilla SDK usage.
If you're curious, here was the marketing website, but we're now part of Databricks: https://stately.cloud/
by r7n
6/10/2026 at 7:35:18 PM
Interesting! We interact with the low-level APIs too vs the SDK, also: an IO scheduler for request batching and conn management, request hedging, full MVCC transactions, etc. We store raw bytes in DDB and manage schema/etc elsewhere. Curious if there is other low-hanging fruit, or not so low, you found that we haven't discovered yet.by jsw
6/10/2026 at 8:13:41 PM
Except that dynamo is still just glorified mysql? https://news.ycombinator.com/item?id=18871661I don’t think the backend matters. It’s the frontend wrapper that makes or breaks HA.
by cherioo
6/11/2026 at 1:03:47 AM
If Dynamo is glorified MySQL then Hacker News is also glorified MySQL. The system is the whole system, not just one part of it.by inigyou
6/10/2026 at 5:33:40 PM
Is a load balancer HA?by doctorpangloss
6/10/2026 at 5:52:12 PM
Not by itself if it's naive, but if it's able to assess target health and avoid degraded instances then it becomes a component in HA, the other being integrating an orchestrator for gracious recovery.by gchamonlive
6/10/2026 at 6:28:37 PM
from their docs:> PgDog does not detect primary failure and will not call pg_promote(). It is expected that the databases are managed externally by another tool, like Patroni or AWS RDS, which handle replica promotion.
by doctorpangloss
6/10/2026 at 7:00:18 PM
Why the snark comment? The PgDog project has been around for a while, it's not vibe coded.by nikolatt
6/11/2026 at 5:43:23 AM
Not gp but I didn’t perceive any snark in the comment you are replying toby znpy
6/10/2026 at 7:40:42 PM
okay, it does appear that the LLM didn't write any of this. i guess the simple answer is that it is not HA.by doctorpangloss
6/10/2026 at 5:53:41 PM
Combined with a replication strategy and automated health checks, a load balancer could direct traffic to a healthy instance automatically.by dev-ns8
6/10/2026 at 6:52:09 PM
What happens when the load balancer fails?by dotancohen
6/10/2026 at 8:19:57 PM
HA has to be all the way through, in which case you might not need a load balancer because each client already connects to a separate server. If you do, then you can have one load balancer per client machine.by inigyou
6/10/2026 at 5:27:23 PM
That's great news! I'll bookmark this in case I'm forced to manage Postgres again.by eikenberry
6/10/2026 at 6:31:31 PM
What do you use instead?by MeetingsBrowser
6/11/2026 at 1:51:25 AM
I tend towards using key-value databases as I find them general purpose enough while being much more robust. I'm not married to any one in particular, depends on the requirements.by eikenberry
6/10/2026 at 6:23:34 PM
Patroni 1.0 was released in 2016, i.e ~10 years ago.by parthdesai
6/10/2026 at 7:02:23 PM
Yup Patroni handles automatic failures and cluster management quite wellby nijave
6/11/2026 at 8:59:59 PM
Noted. If I ever have to administer a Postgres setup again I'll take a look. Thanks.by eikenberry
6/10/2026 at 5:17:59 PM
Have you looked into things like CloudnativePG? https://cloudnative-pg.io/by globular-toast
6/10/2026 at 7:24:52 PM
CNPG is quite nice and robust but I'd still be a bit reluctant to stack PG on k8s for really big clusters just because k8s ecosystem moves quite quickly and there's lots of patching/maintenance/churn which means more PG failovers so depends on how well your workload handles that (they're normally only a few seconds)by nijave
6/11/2026 at 7:12:27 AM
Most K8s upgrades can happen independently of node reboots etc., you only need to update for OS updates really, but that would be true of anywhere you run PG, even RDS.by globular-toast
6/11/2026 at 4:34:35 PM
>but that would be true of anywhere you run PG, even RDSIt's a little easier to strip down userland if the machine is only running PG. Technically possible on k8s with distros like Talos, Bottlerocket, etc but you still have all the k8s deps on top of PG. It's also a little easier to do defense-in-depth on a dedicated PG machine which means you might have mitigating controls in place to skip security patches (minimal kernel modules, selinux)--possible on k8s but now you're fighting through a 2nd layer of configuration
RDS is a bit of a special case because you also have AWS curating and prioritizing updates. You can do that yourself but it's a bit of a time sink scrutinizing every upgrade to see if you _really_ need it. Our RDS instances tend to go 3+ months without restarts
by nijave
6/10/2026 at 6:03:08 PM
Patroni serves this niche pretty well at this point.by tempest_
6/11/2026 at 3:26:04 AM
Have you tried cnpg? Worked amazingly well for my usecasesby pinkgolem
6/10/2026 at 7:53:15 PM
~1600 TPS is not 'high scale'.by VirusNewbie
6/10/2026 at 8:21:50 PM
Pretty good for 98% of projects though.by inigyou