TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Distributed Databases Should Work More Like CDNs

212 pointsby loiselleatworkover 7 years ago

18 comments

astineover 7 years ago
Sooo, being able to distribute data globally is good for performance? Who knew? The thing about distributed systems, including distributed databases is that they need to navigate around the the CAP theorem(Consistency, Availability, Partition Tolerance, pick two, essentially,) and every solution is ultimately a trade off. This article would be a lot more interesting if it showed <i>how</i> CockroachDB made a better trade off than the other solutions listed.
评论 #16328307 未加载
评论 #16328057 未加载
评论 #16328189 未加载
评论 #16329042 未加载
评论 #16328311 未加载
dantiberianover 7 years ago
I love CockroachDB, but feel like this article was a bit misleading in it&#x27;s claims. I started out writing a comment response, but it got so long that it turned into a blog post: <a href="https:&#x2F;&#x2F;danielcompton.net&#x2F;2018&#x2F;02&#x2F;08&#x2F;add-context-cockroachdb-databases-acting-like-cdns" rel="nofollow">https:&#x2F;&#x2F;danielcompton.net&#x2F;2018&#x2F;02&#x2F;08&#x2F;add-context-cockroachdb...</a>.
cagenutover 7 years ago
this is true, and why fastly is kindof like a globally distributed nearly-cache-coherent key value store that people <i>use</i> as a CDN.<p>there&#x27;s a great talk on how its done with a custom gossip protocol implementation: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=HfO_6bKsy_g" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=HfO_6bKsy_g</a>
评论 #16326157 未加载
dstrootover 7 years ago
CDN: no trade offs. Faster everywhere. More reliable overall<p>Cockroach DB: trade some performance for geographic redundancy. The trade off may work in your favor - e.g. read heavy workloads (or not).<p>I plugged in CDB I place of Postgres for some testing this week, was surprised it worked so well.
评论 #16327549 未加载
评论 #16327604 未加载
评论 #16327940 未加载
zzzcpanover 7 years ago
&gt; When partitions heal, you might have to make ugly decisions: which version of your customer’s data to you choose to discard? If two partitions received updates, it’s a lose-lose situation.<p>When partitions heal you simply merge all versions through conflict-free replicated data types. No ugly decisions, no sacrificing neither latency nor consistency. We call it strong eventual consistency [1] nowadays. And it&#x27;s exactly like CDNs, except more reliable.<p>I&#x27;m wondering, since CockroachDB keeps lying about and attacking eventual consistency in these PR posts, the whole &quot;consistency is worth sacrificing latency&quot; mantra might not work in practice after all. People just don&#x27;t buy it, they want low latency, they want something like CDNs, something fast and reliable, something that just works. Something that CockroachDB can never deliver.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Eventual_consistency#Strong_eventual_consistency" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Eventual_consistency#Strong_ev...</a>
评论 #16328066 未加载
评论 #16328442 未加载
pdeva1over 7 years ago
Am I wrong, or does seems the article not really tell how CDB deals with the latency issue, especially with regards to writes?<p>If the write has to be consistent and available across multiple regions, it will need to synchronously replicate that write to all the regions, thus incurring the same performance penalty as RDS or any other consistent database.
评论 #16328536 未加载
daxfohlover 7 years ago
Does GDPR really require all Europeans&#x27; data to stay on EU soil without explicit consent?
评论 #16329498 未加载
评论 #16330597 未加载
评论 #16329544 未加载
jjevanoorschotover 7 years ago
I used CockroachDB for a university project, and while I think it looks very promising, I found the tooling and documentation to be a bit lacking. I wouldn&#x27;t use it in production yet. However, when CockroachDB matures a bit I can really see it take off.
timkpaineover 7 years ago
Imagine a globally replicated and version controlled object store. You could use this for data, assets, source code, anything you like. Would be incredibly useful for both the development side of things, as well as production.
评论 #16326780 未加载
评论 #16326448 未加载
评论 #16327555 未加载
评论 #16326445 未加载
评论 #16326675 未加载
评论 #16327566 未加载
supergirlover 7 years ago
what a dumb article about nothing. hey, a database replicates stuff but so does a CDN! what a brilliant insight. let&#x27;s make an article with this title but fill it with marketing text.
hexspeakerover 7 years ago
If this interests you, you&#x27;ll probably enjoy reading Google&#x27;s paper on Spanner. Cockroachdb was heavily influenced by it.<p><a href="https:&#x2F;&#x2F;research.google.com&#x2F;archive&#x2F;spanner.html" rel="nofollow">https:&#x2F;&#x2F;research.google.com&#x2F;archive&#x2F;spanner.html</a>
philbogleover 7 years ago
As long as we&#x27;re advertising, consider: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;spanner&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;spanner&#x2F;</a>
russell_hover 7 years ago
I&#x27;m curious, what sort of read latency is achievable with CockroachDB? Does it support some notion of tunable read consistency in order to achieve lower read latency at the expense of consistency?
评论 #16331380 未加载
appdragover 7 years ago
Very interesting! Have you used it at big scale for production or not yet?
HumanDrivenDevover 7 years ago
The only distributed database I&#x27;m familiar with is CouchDB. Can anyone give me a birds eye view on how Cockroach is different?
评论 #16329441 未加载
anon1253over 7 years ago
so immutable, like datomic? <a href="https:&#x2F;&#x2F;www.infoq.com&#x2F;articles&#x2F;Datomic-Information-Model" rel="nofollow">https:&#x2F;&#x2F;www.infoq.com&#x2F;articles&#x2F;Datomic-Information-Model</a><p>Or more like federated SPARQL on RDF? <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;sparql11-federated-query&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;TR&#x2F;sparql11-federated-query&#x2F;</a>
yuzover 7 years ago
advertisement
ddorian43over 7 years ago
CDN post with no performance talk (beside keyword).<p>Never mention lower performance (even on single-node). Add to that aws-vps with pseudo-cores and spectre-upgrade and good luck with your tps-reports.
评论 #16326687 未加载