[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"term-r\u002Freplication":3,"related-r\u002Freplication":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\u002Fr\u002Freplication.md","Replication",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",{},"Replication means automatically copying your database to one or more other servers in real time. If the main server dies, a replica takes over. You can also send read queries to replicas to reduce load. It is how serious apps stay up 24\u002F7.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Database replication is the process of synchronizing data across multiple database instances. Primary\u002Freplica (master\u002Fslave) replication sends all writes to the primary and replicates to read-only replicas. It provides high availability, disaster recovery, and read scalability. PostgreSQL supports streaming replication and logical replication.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"We have a primary and two read replicas for the database.\" \u002F \"Replication lag can cause replicas to serve slightly stale data.\"",{"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","Replication means automatically copying your database to one or more other servers in real time. If the main server dies, a replica takes over.","advanced","md","r",{},true,"\u002Fterms\u002Fr\u002Freplication",[49,50,51,52],"Backup","Sharding","Connection Pool","Database",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Fr\u002Freplication","YIkfbkDRPtbldhB0AP52BSkJI-X_E9xKSy-1ssQA8zU",[60,64,69,72],{"title":49,"path":61,"acronym":6,"category":40,"difficulty":62,"description":63},"\u002Fterms\u002Fb\u002Fbackup","beginner","A database backup is a saved copy of your data at a specific point in time.",{"title":51,"path":65,"acronym":6,"category":66,"difficulty":67,"description":68},"\u002Fterms\u002Fc\u002Fconnection-pool","backend","intermediate","A connection pool pre-opens a bunch of database connections and reuses them instead of opening a new one for every request.",{"title":52,"path":70,"acronym":6,"category":40,"difficulty":62,"description":71},"\u002Fterms\u002Fd\u002Fdatabase","A database is like a super-organized filing cabinet for your app's data.",{"title":50,"path":73,"acronym":6,"category":40,"difficulty":42,"description":74},"\u002Fterms\u002Fs\u002Fsharding","Sharding splits your database across multiple servers based on some rule — like user IDs 1-1M on server 1, 1M-2M on server 2.",1776518307659]