Live data from Hacker News

PgDog is funded and coming to a database near you

pgdog.dev

121–130 of 275 posts

Re: PgDog is funded and coming to a database near you

#121

Earlier quoted context omitted.

Is a load balancer HA?

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.

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.

Re: PgDog is funded and coming to a database near you

#122
post #102

Earlier quoted context omitted.

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.

That's great news! I'll bookmark this in case I'm forced to manage Postgres again.

What do you use instead?

Re: PgDog is funded and coming to a database near you

#123
post #117

Earlier quoted context omitted.

Is 100k order per minute a lot? Even a single Postgres instance should serve that fine?

One assumes they mean 100,000s (plural) concurrent users actively building carts

Is that still a lot? Feels like a single 64-core, 256GB RDS instance with some caching should handle that fine. RDS has instances up to 192-core and 768GB.

Re: PgDog is funded and coming to a database near you

#124

"Why Us" => "I ran Postgres at Instacart, where we scaled the company 5x in April of 2020. The biggest problem we had was making Postgres serve 100,000s of grocery delivery orders per minute" Couldn't be a better why us :)

Is 100k order per minute a lot? Even a single Postgres instance should serve that fine?

Average throughput is one thing, tail latency, quite another.

Re: PgDog is funded and coming to a database near you

#125

"Why Us" => "I ran Postgres at Instacart, where we scaled the company 5x in April of 2020. The biggest problem we had was making Postgres serve 100,000s of grocery delivery orders per minute" Couldn't be a better why us :)

Is 100k order per minute a lot? Even a single Postgres instance should serve that fine?

100k(s) orders per minute is several orders of magnitude more than realistic. Amazon does 20k orders per minute.

Instacart doesn't need "100,000s of grocery delivery orders per minute".

There must be some 0s added for the sake of the story.

Re: PgDog is funded and coming to a database near you

#126

"Why Us" => "I ran Postgres at Instacart, where we scaled the company 5x in April of 2020. The biggest problem we had was making Postgres serve 100,000s of grocery delivery orders per minute" Couldn't be a better why us :)

I’ve always found Instacart to be extremely slow with giant latencies. Of course I don’t know if that’s due to Postgres or some other design flaw…

Re: PgDog is funded and coming to a database near you

#127
> The reason DBs like Mongo or Dynamo exist is because

Not quite. The reason "DBs" like those exist is purely due to fashion. Lets not kid ourselves into thinking they do anything better, save the exception of making data hard to access, which might be a project goal in some cases.

Re: PgDog is funded and coming to a database near you

#128
post #70
post #39

Earlier quoted context omitted.

I have not ran MySQL for some years but it at least used to have exactly the same issue. Upgrading a database with MySQL can take a long time if you have many tables. The main difference is only really that PostgreSQL does it with a separate tool, pg_upgrade, while MySQL does it as part of the main binary. For both MySQL and PostgreSQL you will need to use some kind of logical upgrades if you want no downtime.

They don't change the on-disk structure all the time though...

Mostly because MySQL development is slower.

Re: PgDog is funded and coming to a database near you

#129
I us pg. not that I know much about database internals, besides the 'b-tree' stuff we learned in college.

I don't know how the pg scaling story gets fixed unless certain things are rewritten. that's my fear of going all in pg.

mysql has vitess etc & even upgrades are easier. though pg is more extensible.

Re: PgDog is funded and coming to a database near you

#130
post #102

Earlier quoted context omitted.

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.

Is a load balancer HA?

What happens when the load balancer fails?
Post reply on HN