글

12월, 2026의 게시물 표시

What Is Database Replication - and When a Single Database Is Still the Right Answer

이미지
Database replication is keeping more than one copy of your data on more than one database server, and having changes made on one copy flow automatically to the others. That is the whole idea: one database accepts writes, and something ships those changes to one or more other machines so they end up holding the same rows. It exists to solve two problems that a single database cannot solve by itself. The first is survival: if the only machine holding your data dies, you have an outage and possibly data loss. The second is read capacity: a single server has a fixed number of CPUs, a fixed amount of RAM for cache, and a fixed disk, and at some point your read traffic exceeds what it can serve while still committing writes promptly. What replication does not solve is write capacity. In almost every replication setup you will meet, writes still go to exactly one machine. Confusing "I added replicas" with "I scaled my database" is the single most expensive misreading o...