Datenreplikation (Data Replication)

Der Prozess der Speicherung identischer Datenkopien auf mehreren Servern zur Verbesserung von Verfügbarkeit und Fehlertoleranz.

Topologien: Primary-Secondary (nur Master erlaubt Writes) und Active-Active (Multi-Master, erfordert komplexe Konfliktlösung wie CRDTs).

        graph LR
  Center["Datenreplikation (Data Replication)"]:::main
  Rel_data_recovery["data-recovery"]:::related -.-> Center
  click Rel_data_recovery "/terms/data-recovery"
  Rel_data_obfuscation["data-obfuscation"]:::related -.-> Center
  click Rel_data_obfuscation "/terms/data-obfuscation"
  Rel_data_integrity["data-integrity"]:::related -.-> Center
  click Rel_data_integrity "/terms/data-integrity"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Erkläre es wie einem 5-Jährigen

Wenn du ein Geheimrezept nur in einem Notizbuch hast und es verlierst, ist es weg. Replikation bedeutet, Kopien an fünf Freunde zu verteilen. Wenn dein Buch brennt, haben die Freunde das Rezept noch. Änderst du das Rezept, musst du alle anrufen, damit sie ihre Kopien aktualisieren.

🤓 Expert Deep Dive

CAP-Theorem: Bei einer Netzwerkpartition (P) muss man sich zwischen Konsistenz (C) und Verfügbarkeit (A) entscheiden. Arten: 1. Synchron (hohe Konsistenz, hohe Latenz). 2. Asynchron (geringe Latenz, Risiko von Datenverlust, 'Eventual Consistency'). 3. Konsensbasiert (Paxos, Raft via Quorum). Blockchains nutzen asynchrone P2P-Replikation.

❓ Häufig gestellte Fragen

Why do databases use data replication?

To prevent data loss if a server crashes (fault tolerance), and to allow more people to read the data simultaneously without overloading a single server.

What is the difference between synchronous and asynchronous replication?

Synchronous replication makes sure every copy is updated before finishing a task (slower but safer). Asynchronous replication finishes the task immediately and updates the copies in the background (faster, but risks data loss if it crashes before syncing).

Is a blockchain a replicated database?

Yes. A blockchain is a decentralized, peer-to-peer replicated database. Every full node on the network holds a complete, identical copy of the entire transaction history.

📚 Quellen