[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"term-s\u002Fsharding":3,"related-s\u002Fsharding":59},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":6,"__hash__":58},"terms\u002Fterms\u002Fs\u002Fsharding.md","Sharding",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Sharding splits your database across multiple servers based on some rule — like user IDs 1-1M on server 1, 1M-2M on server 2. It is how you scale a database beyond what one machine can handle. Also massively increases complexity. Use only when you truly need it.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Sharding is a horizontal scaling strategy that partitions data across multiple database instances (shards). Each shard holds a subset of the data determined by a shard key. It allows virtually unlimited write scale but complicates queries that span shards, transactions, and schema changes. Many large-scale systems (Stripe, Discord) use sharding.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"We shard by user_id to distribute load across database nodes.\" \u002F \"Sharding makes cross-shard queries expensive and complex.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"database","Sharding splits your database across multiple servers based on some rule — like user IDs 1-1M on server 1, 1M-2M on server 2.","advanced","md","s",{},true,"\u002Fterms\u002Fs\u002Fsharding",[49,50,51,52],"Partitioning","Replication","Database","DynamoDB",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Fs\u002Fsharding","MloY7X5-J0JYpdykqrm4KNc00vfS6U4c_AVoOS3_A9c",[60,64,69,72],{"title":51,"path":61,"acronym":6,"category":40,"difficulty":62,"description":63},"\u002Fterms\u002Fd\u002Fdatabase","beginner","A database is like a super-organized filing cabinet for your app's data.",{"title":52,"path":65,"acronym":6,"category":66,"difficulty":67,"description":68},"\u002Fterms\u002Fd\u002Fdynamodb","cloud","intermediate","DynamoDB is Amazon's NoSQL database that scales to literally any size without you doing anything.",{"title":49,"path":70,"acronym":6,"category":40,"difficulty":42,"description":71},"\u002Fterms\u002Fp\u002Fpartitioning","Partitioning divides a huge table into smaller physical chunks while still appearing as one table to your queries.",{"title":50,"path":73,"acronym":6,"category":40,"difficulty":42,"description":74},"\u002Fterms\u002Fr\u002Freplication","Replication means automatically copying your database to one or more other servers in real time. If the main server dies, a replica takes over.",1776518312943]