Cloud Computing
Cloud Computing
&
Resource Replication
Cloud Computing
Server Consolidation
• Combines multiple physical servers into fewer machines by hosting multiple VMs
on a single physical server.
• Reduces physical hardware requirements, lowering operational costs (e.g., power,
cooling, and maintenance).
• Improves data center efficiency by optimizing resource utilization.
Key Concepts
Resource Replication
• Virtualization replicates physical resources (CPU, memory, storage, network
interfaces) for each VM, creating isolated environments.
• Supports fault tolerance, high availability, and disaster recovery by duplicating
critical resources.
• Enables testing and development environments without affecting production
systems.
Key Applications
Disaster recovery setups.
Load balancing in distributed databases.
Application Replication
The replication of application services or
components across different servers or
environments to ensure reliability and
scalability.
Types of Application Replication
Stateful Application Replication:
Includes replication of session data or application state.
Typically uses distributed caching or shared storage solutions.
Stateless Application Replication:
Applications don’t retain state between requests, relying on external data stores.
Easier to scale and manage.
Use Cases
Cloud-native applications with micro services architecture.
Content delivery networks (CDNs) replicating web applications globally.
Virtual Machine (VM)
Replication
The process of duplicating virtual machines across
physical hosts or data centers for disaster recovery
or high availability.
Types of VM Replication
Full VM Replication:
Entire VM images, including OS, applications, and data, are duplicated.
Incremental VM Replication:
Only changes made since the last replication are transferred.
Popular Technologies
VMware vSphere Replication
Microsoft Hyper-V Replica
Open-source tools like DRBD
Key Benefits:
Simplifies failover during host or site failures.
Speeds up recovery processes with minimal data loss.
Consistency Models
Consistency models define how and when updates to
replicated data become visible to different systems or
users.
Common Models
Strong Consistency:
Ensures all replicas reflect the same data immediately after an update.
Ideal for critical systems but can be slower.
Eventual Consistency:
Updates eventually propagate to all replicas, ensuring consistency over time.
Common in distributed databases like Cassandra.
Causal Consistency:
Guarantees that operations with causal relationships are executed in the correct order.
Read-Your-Writes Consistency:
Ensures that a user sees their own updates immediately.
Monotonic Reads/Updates:
Prevents "backtracking" to older versions of data.
Applications
Replication in Cloud
Architectures
In cloud environments, replication ensures data,
applications, and infrastructure are available and
resilient across regions or zones.
Key Features
Multi-Zone Replication: Ensures availability within a single region.
Multi-Region Replication: Provides redundancy and fault tolerance
across geographic locations.
Cloud-Native Solutions
• Storage Replication:
• AWS S3 Cross-Region Replication
• Google Cloud Storage Multi-Regional Buckets
• Database Replication:
• Amazon Aurora Global Databases
• Google Cloud Spanner
Replication in Cloud
Architectures
Challenges
Bandwidth and latency in cross-region replication.
Balancing cost, consistency, and performance.
Managing compliance and data sovereignty laws.
Best Practices
Automate replication using managed cloud services.
Monitor performance and replication lag.
Use appropriate consistency models for different workloads.