News for hackers. Stuff that matters.
Re:Single dependency stacks by lmm on Wednesday February 09, 2022 @09:43PM (#30281835)
Redis is a better default-without-thinking than Postgres IMO. Transactions and referential integrity make some big tradeoffs and it's easy to accidentally rely on them without thinking through the consequences. Global serializability is theoretically even worse, but the direct analogy with application-layer threading makes it easier to understand and avoid the pitfalls.
Re:Single dependency stacks by naasking on Wednesday February 09, 2022 @11:16PM (#30282395)
Funny, I think the exact opposite is the case. It's rare that an application needs more throughput than Postgres on modern hardware can provide. Unless you know you actually need that throughput, you're better off defaulting to Postgres and enjoy that referential integrity.
Re:Single dependency stacks by lmm on Thursday February 10, 2022 @01:24AM (#30283009)
> It's rare that an application needs more throughput than Postgres on modern hardware can provide.

Agreed, but it's extremely common to need more resilience and/or better multi-DC support than Postgres can provide, and if you've implicitly built your datamodel on Postgres' guarantees then you might find it very hard to migrate to something more distributable. Frankly true master-master HA should have been table stakes for any serious datastore for at least the past decade, as soon as it became clear that cloud was a thing or even before that. (Redis also falls down on that front in terms of what it offers itself, but it's much easier to migrate to something more distributable, IME).