Hacker News new | ask | show | jobs
by _tkzm 2340 days ago
next time try cockroachdb instead of postgres.
3 comments

Perhaps you could elaborate further on this to add to the discussion
when you hit scaling issues with standard postgres. cdb has the same wire format so no code change would be needed. for mysql alternative, there is tidb but that one is not a single binary so i never used it.
I’ve never heard of cockroachdb, what are the advantages of it and why is it preferable to Postgres?
A primary advantage is horizontal scalability. If you need more capacity, just add more nodes.

Additionally it offers better fault tolerance and zero-downtime online upgrades. For more advanced use cases it can be deployed in a geo-replicated topology and configured with partitioning for low latency transactions when confined to a single region while proving strong consistency and a single logical database globally.

Disclaimer: I work on cockroach.

An explanation of why would be nice