News for hackers. Stuff that matters.
Re:Postgres scaling advice by kevincox on Tuesday January 26, 2021 @09:02AM (#25915818)
I don't think it is quite the same.

- Switching from a car to a van to a lorry is fairly low cost. You don't need to recreate your product (probably).

- You don't need to run distributed databases in a cluster to start.

But I think most importantly the decrease in dev speed and performance is an investment in future scalability. And I only imagine that this different will shrink over time to where for example a 1 node "distributed" DB isn't that different to work with than a 1 node "traditional" DB. And that small difference pays off because adding a second node doesn't have huge tradeoffs.

I agree that right now it doesn't make sense. If I was starting a new product I would still fire up a PostgreSQL instance. However I think that the day will come where the difference is small enough and software support is complete enough that we will start with something distributed, much like people don't often start with SQLite today, even though it is quicker to get going (also not a great comparison because it has less features).

Re:Postgres scaling advice by WJW on Tuesday January 26, 2021 @09:23AM (#25916036)
Making investments in future scalability at the cost of dev speed and performance is exactly the wrong tradeoff given that 90% of startups fail. At the start, when you have very little income, you want to allow for as much speed and flexibility as possible so that you can get to product/market fit ASAP. By the time your company gets big enough that plain MySQL/Postgres can't handle the load any longer, you will have more than enough money to afford a few experts that can help you migrate.
Re:Postgres scaling advice by andreimatei1 on Tuesday January 26, 2021 @01:36PM (#25919516)
> I agree that right now it doesn't make sense.

This CRDB engineer respectfully disagrees. This thread takes it as a given that a non-distributed DB is better if you don't need to scale up (i.e. if you run a single "node"). Let me offer a couterpoint: it's easier to embed CRDB into some software you're distributing than it is to embed Postgres. This is to say, we do try to compete at every scale (well, perhaps not at SQLite scale). CRDB doesn't have all the SQL features of PG, but it does have its pluses: CRDB does online schema changes, it is generally simpler to run, comes with a UI, comes with more observability, can backup to the cloud, can be more easily embedded into tests.

Online schema changes are a big deal; the other thing that I hope will help us win small-scale hearts and minds is the ever-improving observability story. I hope CRDB will develop world-class capabilities here. Other open-source databases traditionally have not had many capabilities out of the box.

Re:Postgres scaling advice by csharptwdec19 on Thursday January 28, 2021 @11:03AM (#25943950)
For RDBMS, Firebird SQL has managed to survive well in this sphere, for all of it's warts.

You can run it either as an embedded DLL or as a standalone server, and changing between the two is often just a connection string change; It seems to be fairly popular in the POS space for this reason.

Re:Postgres scaling advice by yuribro on Tuesday January 26, 2021 @09:18AM (#25915971)
> But I think most importantly the decrease in dev speed and performance is an investment in future scalability.

It makes sense only if you'll ever need this scalability. And you take a hit on other fronts too: Infra cost, Deployment complexity. And both deployment complexity and code complexity also increase QA cost, instability, product and company reputation.

>> much like people don't often start with SQLite today

Maybe they should start with SQLite by default

Re:Postgres scaling advice by lrem on Tuesday January 26, 2021 @10:00AM (#25916452)
For personal projects, I start with SQLite by default. Never came close to its scalability limit too ;)