Replication vs Backup

Replication provides redundancy so that in case of hardware failure, the service is still available

Backup periodically stores a copy of the data offline in case it needs to be restored

Replication is useful to protect against hardware failures

Backup is to prevent against the case where operator error or application bug or user error wipes out all replicas of a piece of data

 

Regarding Cassandra, replication with factor 3 means the data will be stored in 3 nodes to prevent single point failure. But when you write something wrong to the nodes and want to get your original data back, backups earlier is here to help.

Replication doesn't mean the data is in memory, instead disk mirroring is often used for replication, check RAID 1

 

In summary, replication itself provides high availability already while backup is for restoring to a point.

posted @ 2018-05-02 17:14  小张的练习室  阅读(177)  评论(0)    收藏  举报
编辑推荐:
· 源码浅析:SpringBoot main方法结束为什么程序不停止
· C#性能优化:为何 x * Math.Sqrt(x) 远胜 Math.Pow(x, 1.5)
· 本可避免的P1事故:Nginx变更导致网关请求均响应400
· 还在手写JSON调教大模型?.NET 9有新玩法
· 复杂业务系统线上问题排查过程
阅读排行:
· AI 的力量,开发者的翅膀:欢迎使用字节旗下的 AI 原生开发工具 TRAE
· 「闲聊文」准大三的我,思前想后还是不搞java了
· C#性能优化:为何 x * Math.Sqrt(x) 远胜 Math.Pow(x, 1.5)
· 千万级的大表如何新增字段?
· 《HelloGitHub》第 112 期
历史上的今天:
2017-05-02 CountDownLatch, CyclicBarrier and Semaphore
点击右上角即可分享
微信分享提示