Better HN
topnewbestaskshowjobs
Log inSign up

magden

230 karma · joined Jul 11, 2023 (3y ago) · 50 submissions

Submissions

1.

Postgres for analytics: these are the ways(justpostgres.tech ↗)

3 points · by magden · 9mo ago · discuss

comment 1y ago · link · parent

I’ve always thought that "Just Use Postgres" would make an excellent title and topic for a book. And we’ve partnered with Manning to bring it to life.

Looking forward to your feedback on the TOC and chapters that have already been released. The book is current in the Manning Early Access Program (MEAP), which lets read it while I continue to write the chapters.

3.

Just Use Postgres the Book(manning.com ↗)

3 points · by magden · 1y ago · 1 comment

comment 2y ago · link · parent

Cool, works with my YugabyteDB deployment using the provided scripts for Postgres.

comment 2y ago · link · parent

1. Nope, I don't think that CRDB is generally faster than Yugabyte. Vendors can't say otherwise in their own benchmarks :)

3. That code must be the tooling around the db and various smart drivers (that extend default drivers of Postgres for various programming languages). Overall, the core database engine of Yugabyte is written in C.

6.

What Is the Open Source Alternative to CockroachDB?(medium.com ↗)

10 points · by magden · 2y ago · 6 comments

7.

Postgres to YugabyteDB in 100 Apps: The Postgres App Century Challenge(yugabyte.com ↗)

1 points · by magden · 2y ago · discuss

8.

Does Open Source Work as a Long-Term Business Model?(yugabyte.com ↗)

24 points · by magden · 2y ago · 3 comments

comment 2y ago · link · parent

In light of the recent license changes by CockroachDB, their competitor (YugabyteDB) took another approach that seems to work well.

10.

[2019] We Changed YugabyteDB Licensing to 100% Open Source(yugabyte.com ↗)

2 points · by magden · 2y ago · 1 comment

11.

When to use distributed Postgres for gen AI apps?(yugabyte.com ↗)

1 points · by magden · 2y ago · discuss

12.

YugabyteDB Moves Beyond PostgreSQL 11(yugabyte.com ↗)

2 points · by magden · 2y ago · discuss

13.

Will Postgres use my index or not?(medium.com ↗)

1 points · by magden · 2y ago · discuss

14.

Why Has Figma Reinvented the Wheel with PostgreSQL?(medium.com ↗)

169 points · by magden · 2y ago · 91 comments

15.

What we learned in 6 months of working on an AI Developer(blog.pythagora.ai ↗)

63 points · by magden · 2y ago · 49 comments

comment 2y ago · link · parent

Here is a detailed article covering various design patterns for multi-region deployments: https://www.yugabyte.com/blog/multi-region-database-deployme...

comment 2y ago · link · parent

(I'm the author of the article)

There are several design patterns depending on whether you need to optimize the latency for reads, writes, or both.

If it's all abour reads, then you can use follower reads (as shown in the article) or read replicas. If you also need writes, then a geo-partitioned deployment or standalone database instances for each region would be good starting points.

18.

Live Streaming the Super Bowl: The Art of Scaling Across Multiple Cloud Regions(yugabyte.com ↗)

32 points · by magden · 2y ago · 3 comments

19.

Why Postgres RDS didn't work for us(medium.com ↗)

2 points · by magden · 2y ago · 1 comment

20.

We switched to Java 21 virtual threads and got a deadlock in TPC-C for Postgres(blog.ydb.tech ↗)

280 points · by magden · 2y ago · 243 comments

comment 2y ago · link · parent

CloudnativePg scales vertically. Distributed Postgres assumes you can data and read-write workload both horizontally and vertically.

comment 2y ago · link · parent

It was great to see the article about distributed Postgres by the Crunchy Data team trending on HN. Judging by the ongoing discussion, many got interested in the whys and hows of distributed Postgres.

I published the following guide to distributed Postgres at the end of 2023. It explains three solutions from the Postgres ecosystem that turn Postgres into a distributed database.

Should be useful for many. Curious to hear your feedback.

23.

How to Scale a Single-Server Database: A Guide to Distributed PostgreSQL(yugabyte.com ↗)

33 points · by magden · 2y ago · 3 comments

comment 2y ago · link · parent

> You handwaved this away, saying you can just store an entire table on a single node, but that defeats many of the benefits of these sharded SQL databases.

I just clarified one-liners listed under the closing "Cons" section. My intention was not to say that the author is utterly wrong. Marco is a recognized expert in the Postgres community. It only feels like he was too opinionated about distributed SQL DBs while wearing his Citus hat.

> Also, before attacking the author's biases, it seems fair to disclose that you appear to work at Yugabyte.

I'm sorry if I sounded biased in my response. I'm with the YugabyteDB team right now, but that's not my first and I bet not the last database company. Thus, when I respond on my personal accounts, I try to be as objective as possible and don't bother mentioning my current employment.

Anyway, I'm very positive to see that this article got traction on HN. As a Postgres community member, I truly love what's happening with the database and its ecosystem. The healthy competition within the Postgres ecosystem is a big driver for the database growth that's becoming the Linux of databases.

comment 2y ago · link · parent

There are good and solid HA options in the Postgres ecosystem that are fully open. You can use Patroni for standard Postgres or YugabyteDB that is fault-tolerant by design.

Specifics are here: https://www.yugabyte.com/postgresql/postgresql-high-availabi...

comment 2y ago · link · parent

You can achieve RPO=0 with Postgres using synchronous logical replication. You would need to replicate to 2+ standbys because if there is only one standby and it goes down then the primary will stuck. During the failover you would need to have Patroni or comparable tool, but I don’t know what’s the RTO.

But once you outgrow the primary/standbys severs storage or compute capacity you would need to scale to larger machines that can incur downtimes. With distributed Postgres such as YugabyteDB this is not gonna happen because you can scale horizontally

comment 2y ago · link · parent

Scalability is not the only reason for jumping on a distributed Postgres version.

Some apps might do just 1000 ops/second but still run on a distributed database for high availability or data locality reasons. For instance, shared-nothing databases usually guarantee RPO=0 (no data loss, recovery point objective) with RTO (recovery time objective) measured in seconds for zone and region-level outages. As for data locality, think automatic data placement/pinning to regions/data centers for data regulatory and low latency reasons (serve read/write requests equally fast for folks living in NYC, London, Tokyo).

comment 2y ago · link · parent

First time seeing someone call Spanner, CockroachDB, and YugabyteDB a "distributed key-value store with SQL" :)

The cons of the mentioned distributed shared-nothing SQL databases are questionable:

- "Key-value store" is in fact an LSM-tree-based document store that supports column-level versioning (Postgres supports row-level versioning only).

- "Many internal operations incur high latency." - I guess this conclusion is based on the referenced Gigaom benchmark that was paid for by Microsoft to compare apples to oranges.

- "No local joins in current implementations." (YugabyteDB certainly has colocated tables that store a whole table on a single node. CockroachDB and Spanner might do this as well.)

- "Not actually PostgreSQL..." - There is only one 100% compatible database with Postgres...It's Postgres itself. Citus, CockroachDB, Aurora, Alloy, YugabyteDB, and others can be classified as "not actually Postgres."

- "And less mature and optimized." - Well, both CockroachDB and YugabyteDB are on Gartner's Magic Quadrant of the top 20 cloud databases. Toys don't get there.

It feels like the author joined Crunchy to work on their own distributed version of Postgres. Good move for Crunchy, good luck!

29.

AI Workforce Is Already Coming for Junior Developer Jobs on Wall Street(medium.com ↗)

22 points · by magden · 2y ago · 34 comments

12