HackerTrans
TopNewTrendsCommentsPastAskShowJobs

magden

no profile record

Submissions

Postgres for analytics: these are the ways

justpostgres.tech
3 points·by magden·hace 5 meses·0 comments

Just Use Postgres the Book

manning.com
3 points·by magden·el año pasado·1 comments

What Is the Open Source Alternative to CockroachDB?

medium.com
10 points·by magden·hace 2 años·6 comments

Postgres to YugabyteDB in 100 Apps: The Postgres App Century Challenge

yugabyte.com
1 points·by magden·hace 2 años·0 comments

Does Open Source Work as a Long-Term Business Model?

yugabyte.com
24 points·by magden·hace 2 años·3 comments

[2019] We Changed YugabyteDB Licensing to 100% Open Source

yugabyte.com
2 points·by magden·hace 2 años·1 comments

When to use distributed Postgres for gen AI apps?

yugabyte.com
1 points·by magden·hace 2 años·0 comments

YugabyteDB Moves Beyond PostgreSQL 11

yugabyte.com
2 points·by magden·hace 2 años·0 comments

Will Postgres use my index or not?

medium.com
1 points·by magden·hace 2 años·0 comments

Why Has Figma Reinvented the Wheel with PostgreSQL?

medium.com
169 points·by magden·hace 2 años·91 comments

[untitled]

1 points·by magden·hace 2 años·0 comments

What we learned in 6 months of working on an AI Developer

blog.pythagora.ai
63 points·by magden·hace 2 años·49 comments

Live Streaming the Super Bowl: The Art of Scaling Across Multiple Cloud Regions

yugabyte.com
32 points·by magden·hace 2 años·3 comments

Why Postgres RDS didn't work for us

medium.com
2 points·by magden·hace 2 años·1 comments

We switched to Java 21 virtual threads and got a deadlock in TPC-C for Postgres

blog.ydb.tech
280 points·by magden·hace 2 años·243 comments

How to Scale a Single-Server Database: A Guide to Distributed PostgreSQL

yugabyte.com
33 points·by magden·hace 3 años·3 comments

AI Workforce Is Already Coming for Junior Developer Jobs on Wall Street

medium.com
22 points·by magden·hace 3 años·34 comments

Two Things to Keep in Mind Before You Start Building Another Database System

medium.com
1 points·by magden·hace 3 años·0 comments

Sharded Doesn’t Imply Distributed

medium.com
2 points·by magden·hace 3 años·0 comments

Is the DBEngine Database Ranking Fair?

medium.com
3 points·by magden·hace 3 años·0 comments

comments

magden
·el año pasado·discuss
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.
magden
·hace 2 años·discuss
Cool, works with my YugabyteDB deployment using the provided scripts for Postgres.
magden
·hace 2 años·discuss
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.
magden
·hace 2 años·discuss
In light of the recent license changes by CockroachDB, their competitor (YugabyteDB) took another approach that seems to work well.
magden
·hace 2 años·discuss
Here is a detailed article covering various design patterns for multi-region deployments: https://www.yugabyte.com/blog/multi-region-database-deployme...
magden
·hace 2 años·discuss
(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.
magden
·hace 3 años·discuss
CloudnativePg scales vertically. Distributed Postgres assumes you can data and read-write workload both horizontally and vertically.
magden
·hace 3 años·discuss
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.
magden
·hace 3 años·discuss
> 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.
magden
·hace 3 años·discuss
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...
magden
·hace 3 años·discuss
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
magden
·hace 3 años·discuss
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).
magden
·hace 3 años·discuss
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!
magden
·hace 3 años·discuss
I don't think we need specialized databases for vectors. Relational databases can easily be expanded by vector data types and operations. They will eventually catch up by supporting what was once a unique feature of the new system: https://medium.com/@magda7817/two-things-to-keep-in-mind-bef...