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.

Sharding data models

136 pointsby pedrobeloover 7 years ago

6 comments

contingenciesover 7 years ago
For financial transaction services I can recommend sharding first by customer, then by ledger. As a result, instead of enforcing double-entry book-keeping standards within a single database, do it at an application-specific middleware server layer to enforce only the guarantees you need.<p>As with all decisions, there are tradeoffs. For a little more up-front complexity and a tiny nominal performance hit, this allows maintenance, encryption, non-uniform storage paradigms to suit individual ledgers, rolling upgrades, storage location migration, and other cool stuff which is typically painful with traditional all-or-nothing RDBMS architectures.
评论 #15122470 未加载
njayover 7 years ago
Citus is a pretty powerful tool. We recently used Citus to help scale one of our databases and wrote a blog post about it: <a href="https:&#x2F;&#x2F;hipmunk.github.io&#x2F;posts&#x2F;2017&#x2F;Aug&#x2F;16&#x2F;a-fare-cache-in-a-sharded-data-cluster&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hipmunk.github.io&#x2F;posts&#x2F;2017&#x2F;Aug&#x2F;16&#x2F;a-fare-cache-in-...</a>
评论 #15121523 未加载
xchaoticover 7 years ago
Then there&#x27;s the 0 model for sharding - don&#x27;t shard, just replicate everything, everywhere, with eventual consistency and MVCC
评论 #15121790 未加载
评论 #15123529 未加载
评论 #15123159 未加载
sdrothrockover 7 years ago
What ORMs out there natively support sharding well? I use Django the most and whenever I look into Django sharding, I don&#x27;t see very many options being kept up to date...
评论 #15122170 未加载
评论 #15122073 未加载
评论 #15122910 未加载
Beanisover 7 years ago
What distinction is being made between sharding by entity and sharding a graph? The approach seems to be the same, just with different naming.
评论 #15122488 未加载
edemover 7 years ago
I would have liked to read more about graph sharding. The article was rather sparse about it.