TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What has been your experience with CockroachDB?

57 点作者 punkpeye超过 2 年前
I literally cannot find a single person describing their experience using CockroachDB, which is bizarre considering how long they have been around.<p>Would love to hear from someone who&#x27;ve used them in production.

10 条评论

mduggles超过 2 年前
Yeah I’d be glad to talk about it. Was part of a team that was asked to design a whistleblowing software platform for large corporate and government customers. The rest of the stack was RDS Postgres but this whistleblowing app had super different requirements. We would need to run in basically every region and also not exclusively in AWS.<p>After trying some different options it became clear that Cockroach was the best option by far. The strongly consistent nature of Cockroach made it a good choice for a SoR like whistleblowing unlike say Mongo. The ease of deployment and the stability of the Raft consensus protocol for managing ranges of data was better than expected.<p>For me having done a global rollout of it, I’d recommend it with very few caveats. You do need to train developers on what queries it can and cannot support, since it does have Postgres client support but obviously cannot handle the full range of queries. You also need to have lots of alerting around the Raft log, since that is your bread and butter in terms of “is this working or not”. However in aggressive testing, removing nodes with no warning under load, simulating pretty severe networking problems, etc, it has held up remarkably well.
评论 #32627589 未加载
评论 #32627742 未加载
tluyben2超过 2 年前
Maybe people who answer&#x2F;read this also evaluated yugabytedb, which has a much friendlier license (apache 2)? We are evaluating different solutions and we depend on some Postgres compatibility as we have a lot of code to that effect. Yugabyte and cockroach come up all the time.
评论 #32633213 未加载
notmymainlogin超过 2 年前
(note the username!)<p>Check out Aerospike. It&#x27;s the most robust and truly &quot;zero effort scale&quot; real time data platform I&#x27;ve ever seen. Properly configured and used, it whups everything in terms of TPS and performance&#x2F;machine aka TCO. By a huge, huge, factor.<p>Downside is ... everything else. :&#x2F; Less polished developer experience, docs, &amp;c. There are so many huge customers, but very few who are talking about it. Requires more of a time investment -- because you&#x27;re learning a new platform, not using a drop in replacement for what you already know. But the reward is performance beyond anything else.<p>(the VLDB 2016 paper is a good high level overview of the architecture)<p>If you do check it out, be sure to use version 6.1 or later, in particular see what can be done combining secondary indexes with container data types.... A, uh, birdie told me that. :P<p>edit: Same birdie told me Aerospike has customers who replaced CockroachDB, when they found out it has trouble scaling past a point.<p>I really hope they can get their act together in terms of communication and marketing -- it&#x27;s sadly &quot;the most advanced solution you&#x27;ve never heard of&quot;.
评论 #32628561 未加载
评论 #32626894 未加载
评论 #32627028 未加载
com超过 2 年前
I know of two scaleups that have left it. As usual, this might just be poor implementation choices rather than product or support issues.
egorfine超过 2 年前
Launched it on a t3.nano (0.5GB RAM) in a single node configuration for two extremely small tables - got oom kills in couple of hours.<p>Launched on a t3.micro (1GB RAM) - same.<p>Launched on a t3.small (2GB RAM) - finally it works and doesn&#x27;t crash.<p>So, min 2GB RAM to serve about 10 (as in: ten, not thousands) records queried every other second.
truth_seeker超过 2 年前
Why don&#x27;t you try swapping your existing PG server with CockroachDB and see how it goes.<p>Being a die hard fan of Postgresql for more than 15 years, I think time has come for me to select CockroachDB as new default.<p>I miss Table Partitioning (only available in enterprise edition ) and Full text search (yet to be built). Also minimum hardware I had to employ was quad core and 8 gigs of RAM.<p>But other than that everything is so smooth including installation, online documentation. It made me lazy.
评论 #32655825 未加载
Dan_Rivel超过 2 年前
We tried it for a payment system, the concurrency issues where an absolute nightmare to deal with.Especially in combination with Hibernate. In serializable isolation level some queries would just never finish, no matter how many retries you gave it.
rad_gruchalski超过 2 年前
Haven’t used them in production because their license doesn’t allow operating as a service.<p>I have used an alternative.
评论 #32643510 未加载
评论 #32627417 未加载
punkpeye超过 2 年前
All these comments and still no one really talking about their experience... For what it is worth, the biggest put off for me was that they no longer allow to export data in PostgreSQL compatible way, i.e. You are locked in when you start using them.
评论 #32655898 未加载
sean0-超过 2 年前
Yes. AMA and I’ll do my best to answer.